38 #include "BESBaseApp.h" 39 #include "BESInternalError.h" 41 BESApp *BESApp::_theApplication = 0;
50 BESApp::_theApplication =
this;
60 BESApp::_theApplication = 0;
96 _isInitialized = true ;
112 __FILE__, __LINE__ ) ;
128 _isInitialized = false ;
142 strm << BESIndent::LMarg <<
"BESBaseApp::dump - (" << (
void *)
this <<
")" << endl ;
143 BESIndent::Indent() ;
144 strm << BESIndent::LMarg <<
"appName: " <<
appName() << endl ;
145 strm << BESIndent::LMarg <<
"is initialized: " << _isInitialized << endl ;
146 BESIndent::UnIndent() ;
virtual int initialize(int argC, char **argV)
initialize the BES application
exception thrown if inernal error encountered
virtual int main(int argC, char **argV)
main method of the BES application
virtual void dump(ostream &strm) const
dumps information about this object
virtual ~BESBaseApp(void)
Default destructor.
string appName(void) const
Returns the name of the application.
virtual int terminate(int sig=0)
clean up after the application
BESBaseApp(void)
Default constructor.
Application class for BES applications.
virtual int run(void)
the applications functionality is implemented in the run method