BESInitializer Class Reference

Mechanism for the orderly initialization and termination of objects. More...

#include <BESInitializer.h>

Inheritance diagram for BESInitializer:

Inheritance graph
[legend]
Collaboration diagram for BESInitializer:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

Mechanism for the orderly initialization and termination of objects.

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...

See also:
BESGlobalIQ

BESInitOrder

BESInitList

BESInitFuns


Constructor & Destructor Documentation

virtual BESInitializer::~BESInitializer (  )  [inline, virtual]


Member Function Documentation

virtual bool BESInitializer::initialize ( int  argc,
char **  argv 
) [pure virtual]

function for the initialization of objects, such as globals.

Parameters:
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.
Returns:
returns true if initialization was successful, false if failed and application should exit.
See also:
GlobalIQ

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.

Returns:
returns true if termination was successful, false otherwise
See also:
GlobalIQ

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.

Parameters:
strm output stream to use to dump the contents of this object

Implements BESObj.

Implemented in BESGlobalInit.

Referenced by BESGlobalInit::dump().


The documentation for this class was generated from the following file:

Generated on Thu Sep 11 07:58:39 2008 for OPeNDAP Back End Server (BES) by  doxygen 1.5.6