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