NCBI C++ ToolKit
Functions
json_version_info.hpp File Reference

Define Returns binary version information in JSON format. More...

#include <string>
#include <gui/gui_export.h>
#include <cgi/ncbicgi.hpp>
#include <cgi/ncbicgir.hpp>
+ Include dependency graph for json_version_info.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

bool ReportJSONVersion (const CCgiRequest &request, CCgiResponse &response)
 Reports version information in JSON format. More...
 
void TestDelay (const CCgiRequest &request)
 Delay test, simulating Grid framework delay. More...
 

Detailed Description

Define Returns binary version information in JSON format.

Definition in file json_version_info.hpp.

Function Documentation

◆ ReportJSONVersion()

bool ReportJSONVersion ( const CCgiRequest request,
CCgiResponse response 
)

Reports version information in JSON format.

Parameters
[in]requestReference to the CGI request.
[in]responseReference to the CGI response.
Returns
True if this is a version information request, false otherwise.

Definition at line 46 of file json_version_info.cpp.

References eEntry, CCgiEntry::empty(), CVersionAPI::fVersionInfo, CCgiRequest::GetEntry(), CNcbiApplication::Instance(), kEmptyStr, NCBI_THROW, out(), CCgiResponse::out(), CCgiResponse::SetContentType(), and CCgiResponse::WriteHeader().

◆ TestDelay()

void TestDelay ( const CCgiRequest request)

Delay test, simulating Grid framework delay.

Parameters
[in]requestReference to the CGI request.

Definition at line 80 of file json_version_info.cpp.

References CCgiEntry::empty(), CCgiRequest::GetEntry(), IRegistry::GetInt(), CNcbiApplication::Instance(), SleepSec(), and NStr::StringToInt().

Modified on Sat Jul 20 11:10:04 2024 by modify_doxy.py rev. 669887