40 #include "BESInternalError.h"
42 BESApp *BESApp::_theApplication = 0;
74 _isInitialized =
true;
104 _isInitialized =
false;
117 strm << BESIndent::LMarg <<
"BESApp::dump - (" << (
void *)
this <<
")" << endl;
119 strm << BESIndent::LMarg <<
"appName: " <<
appName() << endl;
120 strm << BESIndent::LMarg <<
"is initialized: " << _isInitialized << endl;
121 BESIndent::UnIndent();
Application class for BES applications.
virtual int initialize(int argC, char **argV)
Initialize the application using the passed argc and argv values.
virtual int terminate(int sig=0)
Clean up after the application.
virtual void dump(std::ostream &strm) const =0
dumps information about this object
virtual int run(void)
The body of the application, implementing the primary functionality of the BES application.
std::string appName(void) const
Returns the name of the application.
virtual int main(int argC, char **argV)
main routine, the main entry point for any BES applications.
exception thrown if internal error encountered