55 virtual void Init(
void);
56 virtual int Run(
void);
57 virtual void Exit(
void);
74 arg_desc->SetUsageContext(
GetArguments().GetProgramBasename(),
75 "CLabel label interface test application");
94 for(
int i = 0;
i < 100;
i++ ) {
virtual int Run(void)
Run the application.
CPrimeNumberClient * m_Client1
virtual void Init(void)
Initialize the application.
virtual void Exit(void)
Cleanup on application exit.
CSchedulerEngine CSchedulerEngine is an engine that can be used with CAppJobDispatcher.
int AppMain(int argc, const char *const *argv, const char *const *envp=0, EAppDiagStream diag=eDS_Default, const char *conf=NcbiEmptyCStr, const string &name=NcbiEmptyString)
Main function (entry point) for the NCBI application.
virtual void SetupArgDescriptions(CArgDescriptions *arg_desc)
Setup the command line argument descriptions.
const CNcbiArguments & GetArguments(void) const
Get the application's cached unprocessed command-line arguments.
void SetDiagStream(CNcbiOstream *os, bool quick_flush=true, FDiagCleanup cleanup=0, void *cleanup_data=0, const string &stream_name="")
Set diagnostic stream.
static bool HandlePostRequest()
bool IdleCallback()
this function shall be called in the the application idle function.
bool RegisterEngine(const string &name, IAppJobEngine &engine)
Registers a new Engine, returns true if successful.
void SleepMilliSec(unsigned long ml_sec, EInterruptOnSignal onsignal=eRestartOnSignal)
Defines the CNcbiApplication and CAppException classes for creating NCBI applications.
Defines command line argument related classes.
Defines unified interface to application:
int NcbiSys_main(int argc, ncbi::TXChar *argv[])