Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

BESInitializer Class Reference

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

#include <BESInitializer.h>

Inheritance diagram for BESInitializer:

[legend]
Collaboration diagram for BESInitializer:
[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 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.

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.

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.


The documentation for this class was generated from the following file:
Generated on Thu May 3 23:11:00 2007 for OPeNDAP Back End Server (BES) by  doxygen 1.4.4