51 BESApp::_theApplication =
this;
61 BESApp::_theApplication = 0;
112 string newerr =
"Error initializing application: " ;
114 cerr << newerr << endl ;
119 string newerr =
"Error initializing application: " ;
120 newerr +=
"caught unknown exception" ;
121 cerr << newerr << endl ;
140 __FILE__, __LINE__ ) ;
171 strm <<
BESIndent::LMarg <<
"BESBaseApp::dump - (" << (
void *)
this <<
")" << endl ;
virtual int initialize(int argC, char **argV)
initialize the BES application
exception thrown if inernal error encountered
static BESApp * _theApplication
virtual int main(int argC, char **argV)
main method of the BES application
virtual void dump(ostream &strm) const
dumps information about this object
static bool BESGlobalQuit(void)
Runs the termination functions in reverse order of initialization, providing the application to clean...
virtual string get_message()
get the error message for this exception
Abstract exception class for the BES with basic string message.
static ostream & LMarg(ostream &strm)
static bool BESGlobalInit(int argc, char **argv)
initialize global objects in an orderly fashion.
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