Go to the documentation of this file.
18 #ifndef __LIBAPP_APPLICATION_H
19 #define __LIBAPP_APPLICATION_H
void usage() const
Print usage and terminate.
virtual ~Application()
Class destructor.
void setVersion(const String &version)
Set program version.
virtual int run()
Run the application.
String m_version
Program version.
Generic command-line argument parser.
virtual Result exec()=0
Execute the application event loop.
Application(int argc, char **argv)
Class constructor.
char ** m_argv
Input argument values.
virtual Result output(const char *string) const =0
Print text to output.
const ArgumentContainer & arguments() const
Get program arguments.
unsigned int uint
Unsigned integer number.
Generic command-line argument parser.
static const uint ExitFailure
Exit code for failure termination.
ArgumentContainer m_arguments
Parsed Arguments.
static const uint ExitSuccess
Exit code for successful termination.
virtual Result initialize()
Initialize the application.
ArgumentParser & parser()
Get program arguments parser.
ArgumentParser m_parser
Program argument parser object.
int m_argc
Input argument count.