Nebula
|
#include <application.h>
Provides a simple application model for Nebula apps.
Inherited by App::ConsoleApplication, App::GameApplication, and App::RenderApplication.
Public Member Functions | |
Application () | |
constructor | |
virtual | ~Application () |
destructor | |
void | SetCompanyName (const Util::String &n) |
set company name | |
const Util::String & | GetCompanyName () const |
get company name | |
void | SetAppTitle (const Util::String &n) |
set application name | |
const Util::String & | GetAppTitle () const |
get application name | |
void | SetAppID (const Util::String &n) |
set application id | |
const Util::String & | GetAppID () const |
get application id | |
void | SetAppVersion (const Util::String &n) |
set application version | |
const Util::String & | GetAppVersion () const |
get application version | |
void | SetCmdLineArgs (const Util::CommandLineArgs &a) |
set command line args | |
const Util::CommandLineArgs & | GetCmdLineArgs () const |
get command line args | |
virtual bool | Open () |
open the application | |
virtual void | Close () |
close the application | |
virtual void | Exit () |
exit the application, call right before leaving main() | |
virtual void | Run () |
run the application, return when user wants to exit | |
bool | IsOpen () const |
return true if app is open | |
int | GetReturnCode () const |
get the return code | |
Protected Member Functions | |
void | SetReturnCode (int c) |
set return code | |
Protected Attributes | |
Util::String | companyName |
Util::String | appName |
Util::String | appID |
Util::String | appVersion |
Util::CommandLineArgs | args |
bool | isOpen |
int | returnCode |
Private Member Functions | |
__DeclareSingleton (Application) | |
App::Application::Application | ( | ) |
constructor
|
virtual |
destructor
|
private |
|
virtual |
close the application
Reimplemented in App::ConsoleApplication, App::GameApplication, App::RenderApplication, and App::ViewerApplication.
|
virtual |
exit the application, call right before leaving main()
This method must be called right before the main() function's end.
It will properly cleanup the Nebula runtime, its static objects, private heaps and finally produce a refcount leak and mem leak report (debug builds only).
|
inline |
get application id
|
inline |
get application name
|
inline |
get application version
|
inline |
get command line args
|
inline |
get company name
|
inline |
get the return code
|
inline |
return true if app is open
|
virtual |
open the application
Reimplemented in App::ConsoleApplication, App::GameApplication, App::RenderApplication, and App::ViewerApplication.
|
virtual |
run the application, return when user wants to exit
Reimplemented in App::GameApplication, and App::RenderApplication.
|
inline |
set application id
|
inline |
set application name
|
inline |
set application version
|
inline |
set command line args
|
inline |
set company name
|
inlineprotected |
set return code
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |