36#include "BESInternalError.h"
40BESApp *BESApp::_theApplication =
nullptr;
72 _isInitialized =
true;
102 _isInitialized =
false;
115 strm << BESIndent::LMarg <<
"BESApp::dump - (" << (
void *)
this <<
")" << endl;
117 strm << BESIndent::LMarg <<
"appName: " <<
appName() << endl;
118 strm << BESIndent::LMarg <<
"is initialized: " << _isInitialized << endl;
119 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.
std::string appName() const
Returns the name of the application.
void dump(std::ostream &strm) const override=0
dumps information about this object
virtual int main(int argC, char **argV)
main routine, the main entry point for any BES applications.
virtual int run()
The body of the application, implementing the primary functionality of the BES application.
exception thrown if internal error encountered