#include <BESInitializer.h>
Public Member Functions | |
virtual | ~BESInitializer () |
virtual bool | initialize (int argc, char **argv)=0 |
function for the initialization of objects, such as globals. | |
virtual bool | terminate (void)=0 |
function for the termination of objects, such as global objects. | |
virtual void | dump (ostream &strm) const =0 |
Displays debug information about this object. |
The BESInitializer abstraction provides a mechanism for the initialization and termination of objects in an orderly fasion. In many instances C++ does not provide an orderly means of initializing and destroying objects, such as during global initialization. This interface provides that mechanism and can be used for such things as global initialization and termination, thread initialization and termination, initialization of RPC calls and termination upon return, etc...
BESInitOrder
BESInitList
BESInitFuns
virtual BESInitializer::~BESInitializer | ( | ) | [inline, virtual] |
virtual bool BESInitializer::initialize | ( | int | argc, | |
char ** | argv | |||
) | [pure virtual] |
function for the initialization of objects, such as globals.
argc | number of arguments passed on the command line, same as command line argc. | |
argv | command line arguments passed to the C++ application that can be used to initialize the object. |
Implemented in BESGlobalInit.
Referenced by BESGlobalIQ::BESGlobalInit(), and BESGlobalInit::initialize().
virtual bool BESInitializer::terminate | ( | void | ) | [pure virtual] |
function for the termination of objects, such as global objects.
Implemented in BESGlobalInit.
Referenced by BESGlobalIQ::BESGlobalQuit(), and BESGlobalInit::terminate().
virtual void BESInitializer::dump | ( | ostream & | strm | ) | const [pure virtual] |
Displays debug information about this object.
strm | output stream to use to dump the contents of this object |
Implements BESObj.
Implemented in BESGlobalInit.
Referenced by BESGlobalInit::dump().