The Nebula Device 3: App::Application Class Reference

The Nebula Device 3

App::Application Class Reference

#include <application.h>

Inheritance diagram for App::Application:

App::AsyncRenderApplication App::ConsoleApplication App::GameApplication App::RenderApplication App::AsyncViewerApplication App::ViewerApplication


Detailed Description

Provides a simple application model for Nebula3 apps.

(C) 2006 Radon Labs GmbH

Public Member Functions

 Application ()
 constructor
virtual ~Application ()
 destructor
void SetCompanyName (const Util::String &n)
 set company name
const Util::StringGetCompanyName () const
 get company name
void SetAppName (const Util::String &n)
 set application name
const Util::StringGetAppName () const
 get application name
void SetCmdLineArgs (const Util::CmdLineArgs &a)
 set command line args
const Util::CmdLineArgsGetCmdLineArgs () 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