#include <mgui/appmain.h>
Inheritance diagram for MGUI::APP_MAIN:

Public Member Functions | |
| APP_MAIN () | |
| const char * | GetCmdParm (int idx) const |
| int | GetCmdParmCount () const |
| void | RemoveCmdParm (int idx) |
| virtual | ~APP_MAIN ()=0 |
Static Public Member Functions | |
| static void | Exit () |
| static APP_BASE * | GetBaseInstance () |
| static APP_MAIN * | GetMainInstance () |
Private Member Functions | |
| virtual void | v_ExitInstance () |
| virtual bool | v_InitInstance () |
A class must be derived from APP_MAIN and a single instance must be declared at file (static global) scope in the main application module. Only one instance of this class may be defined per executable. See also: APP_BASE.
Definition at line 226 of file appmain.h.
| MGUI::APP_MAIN::APP_MAIN | ( | ) |
Constructor.
| virtual MGUI::APP_MAIN::~APP_MAIN | ( | ) | [pure virtual] |
Destructor.
| static void MGUI::APP_MAIN::Exit | ( | ) | [inline, static] |
| static APP_BASE* MGUI::APP_MAIN::GetBaseInstance | ( | ) | [inline, static] |
| const char* MGUI::APP_MAIN::GetCmdParm | ( | int | idx | ) | const [inline] |
| int MGUI::APP_MAIN::GetCmdParmCount | ( | ) | const [inline] |
| static APP_MAIN* MGUI::APP_MAIN::GetMainInstance | ( | ) | [inline, static] |
| void MGUI::APP_MAIN::RemoveCmdParm | ( | int | idx | ) |
Remove command-line parameter at specified index.
Note, idx must be > 0 as first entry cannot be removed.
| virtual void MGUI::APP_MAIN::v_ExitInstance | ( | ) | [private, virtual] |
Called just prior to application exit.
May be overridden to clean up allocated instance resource.
| virtual bool MGUI::APP_MAIN::v_InitInstance | ( | ) | [private, virtual] |
Called at application startup.
Normally overridden if multiple 'processes' are built into a single executable. In this case the command line parameters may be processed to determine which process to invoke and call a function or method to create a static instance of a derived APP_BASE class for that process.
1.5.2