1 #ifndef APPLICATION_SHELL_CLASS
2 #define APPLICATION_SHELL_CLASS
The application_shell is a base object for console programs.
virtual basis::outcome log(const basis::base_string &to_print, int filter=basis::ALWAYS_PRINT)
< returns the full name of the current application.
application_shell()
constructs an application_shell to serve as the root of the program.
int exit_value() const
once the application has finished executing, this will contain the exit value.
virtual int execute()=0
< retrieves the command line from the /proc hierarchy on linux.
virtual ~application_shell()
virtual int execute_application()
runs the base class's execute() method and catches any exceptions due to it.
const mathematics::chaos & randomizer() const
provides access to the random number generator owned by this app.
static application_shell * single_instance()
in a program with a single application_shell extant, this gives out the instance.
Provides a base object for the root application portion of a program.
Defines the base class for all string processing objects in hoople.
Outcomes describe the state of completion for an operation.
a platform-independent way to acquire random numbers in a specific range.
#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.