OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
BESInitializer Class Referenceabstract

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

#include <BESInitializer.h>

Inheritance diagram for BESInitializer:
Inheritance graph
Collaboration diagram for BESInitializer:
Collaboration graph

Public Member Functions

virtual void dump (ostream &strm) const =0
 Displays debug information about this object. More...
 
virtual bool initialize (int argc, char **argv)=0
 function for the initialization of objects, such as globals. More...
 
virtual bool terminate (void)=0
 function for the termination of objects, such as global objects. More...
 
virtual ~BESInitializer ()
 

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

Definition at line 54 of file BESInitializer.h.

Constructor & Destructor Documentation

◆ ~BESInitializer()

virtual BESInitializer::~BESInitializer ( )
inlinevirtual

Definition at line 57 of file BESInitializer.h.

References dump(), initialize(), and terminate().

Here is the call graph for this function:

Member Function Documentation

◆ dump()

virtual void BESInitializer::dump ( ostream &  strm) const
pure virtual

Displays debug information about this object.

Parameters
strmoutput stream to use to dump the contents of this object

Implements BESObj.

Implemented in BESGlobalInit.

Referenced by BESGlobalInit::dump(), and ~BESInitializer().

◆ initialize()

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

function for the initialization of objects, such as globals.

Parameters
argcnumber of arguments passed on the command line, same as command line argc.
argvcommand 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(), BESGlobalInit::initialize(), and ~BESInitializer().

◆ terminate()

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(), BESGlobalInit::terminate(), and ~BESInitializer().


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