ver_type = request.
GetEntry(
"version", &found);
54 boolhasCallback = !request.
GetEntry(
"callback").
empty();
66 if(ver_type.empty() || ver_type ==
"short") {
69 else if(ver_type ==
"full") {
70 out<< app->GetFullVersion().PrintJson(app->GetAppName());
74 "Unsupported ncbi_version argument value");
89 intmax_delaytest = reg.
GetInt(
"debug",
"max_delaytest", 0);
91 if(max_delaytest == 0)
96 SleepSec(delay_sec < max_delaytest ? delay_sec : max_delaytest);
Exception classes used by the NCBI CGI framework.
CCgiRequestException â.
static CNcbiApplication * Instance(void)
Singleton method.
std::ofstream out("events_result.xml")
main entry point for tests
CNcbiOstream & out(void) const
Get output stream. Throw exception if GetOutput() is NULL.
void SetContentType(const string &type)
Set content type (text/html by default if not provided)
CNcbiOstream & WriteHeader(void) const
Write HTTP response header to the output stream.
const CCgiEntry & GetEntry(const string &name, bool *is_found=0) const
Get entry value by name.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
virtual int GetInt(const string §ion, const string &name, int default_value, TFlags flags=0, EErrAction err_action=eThrow) const
Get integer value of specified parameter name.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
static int StringToInt(const CTempString str, TStringToNumFlags flags=0, int base=10)
Convert string to int.
@ fVersionInfo
Print version info.
bool ReportJSONVersion(const CCgiRequest &request, CCgiResponse &response)
Reports version information in JSON format.
void TestDelay(const CCgiRequest &request)
Delay test, simulating Grid framework delay.
Define Returns binary version information in JSON format.
void SleepSec(unsigned long sec, EInterruptOnSignal onsignal=eRestartOnSignal)
Sleep.
Defines the CNcbiApplication and CAppException classes for creating NCBI applications.
Process information in the NCBI Registry, including working with configuration files.
NCBI C++ stream class wrappers for triggering between "new" and "old" C++ stream libraries.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4