Provides a simple application model for Nebula apps.
Definition application.h:19
Util::String companyName
Definition application.h:63
void SetAppTitle(const Util::String &n)
set application name
Definition application.h:107
Util::String appName
Definition application.h:64
Util::String appVersion
Definition application.h:66
const Util::String & GetAppID() const
get application id
Definition application.h:137
void SetCompanyName(const Util::String &n)
set company name
Definition application.h:87
void SetAppID(const Util::String &n)
set application id
Definition application.h:127
bool isOpen
Definition application.h:68
__DeclareSingleton(Application)
Application()
constructor
Definition application.cc:17
void SetCmdLineArgs(const Util::CommandLineArgs &a)
set command line args
Definition application.h:167
virtual bool Open()
open the application
Definition application.cc:41
const Util::String & GetCompanyName() const
get company name
Definition application.h:97
void SetReturnCode(int c)
set return code
Definition application.h:186
int GetReturnCode() const
get the return code
Definition application.h:195
virtual void Exit()
exit the application, call right before leaving main()
Definition application.cc:75
virtual void Run()
run the application, return when user wants to exit
Definition application.cc:62
virtual ~Application()
destructor
Definition application.cc:32
const Util::String & GetAppTitle() const
get application name
Definition application.h:117
const Util::String & GetAppVersion() const
get application version
Definition application.h:157
int returnCode
Definition application.h:69
virtual void Close()
close the application
Definition application.cc:52
bool IsOpen() const
return true if app is open
Definition application.h:77
const Util::CommandLineArgs & GetCmdLineArgs() const
get command line args
Definition application.h:177
Util::CommandLineArgs args
Definition application.h:67
void SetAppVersion(const Util::String &n)
set application version
Definition application.h:147
Util::String appID
Definition application.h:65
A universal cmd line argument parser.
Definition commandlineargs.h:24
Definition gameapplication.cc:24
Nebula's universal string class.
Definition string.h:50