NCBI C++ ToolKit
Public Member Functions
CTestDispatchApp Class Reference

Search Toolkit Book for CTestDispatchApp

+ Inheritance diagram for CTestDispatchApp:
+ Collaboration diagram for CTestDispatchApp:

List of all members.

Public Member Functions

virtual void Init (void)
 Initialize the application.
virtual int Run (void)
 Run the application.
virtual void Exit (void)
 Cleanup on application exit.

Detailed Description

Definition at line 145 of file test_msg.cpp.


Member Function Documentation

void CTestDispatchApp::Exit ( void  ) [virtual]

Cleanup on application exit.

Perform cleanup before exiting. The default behavior of this is "do nothing". If you have special cleanup logic that needs to be performed, then you must override this method with your own logic.

Reimplemented from CNcbiApplication.

Definition at line 254 of file test_msg.cpp.

References SetDiagStream().

void CTestDispatchApp::Init ( void  ) [virtual]

Initialize the application.

The default behavior of this is "do nothing". If you have special initialization logic that needs to be peformed, then you must override this method with your own logic.

Reimplemented from CNcbiApplication.

Definition at line 155 of file test_msg.cpp.

References CNcbiApplication::GetArguments(), auto_ptr< X >::release(), CNcbiApplication::SetupArgDescriptions(), and CArgDescriptions::SetUsageContext().

int CTestDispatchApp::Run ( void  ) [virtual]

Run the application.

It is defined as a pure virtual method -- so you must(!) supply the Run() method to implement the application-specific logic.

Returns:
Exit code.

Implements CNcbiApplication.

Definition at line 169 of file test_msg.cpp.

References CEventHandler::AddListener(), CEventHandler::ePool_Child, CEventHandler::ePool_Parent, CTestDispatcher::Fire(), CTestDispatcher::FireFirst(), CNcbiApplication::GetArgs(), LOG_POST, and Warning().


The documentation for this class was generated from the following file:
Modified on Sat Jan 24 10:48:16 2015 by modify_doxy.py rev. 426318