1 #ifndef BASE_APPLICATION_CLASS
2 #define BASE_APPLICATION_CLASS
56 int __example__main(
int argc,
char *argv[])
58 example_application root_program;
59 return root_program.execute();
Provides a base object for the root application portion of a program.
virtual const char * class_name() const =0
Returns the bare name of this class as a constant character pointer.
virtual int execute()=0
performs the main activity of this particular application object.
Root object for any class that knows its own name.
#define DEFINE_CLASS_NAME(objname)
Defines the name of a class by providing a couple standard methods.
Implements an application lock to ensure only one is running at once.