#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 | |
| void | Exit () |
| APP_BASE * | GetBaseInstance () |
| 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 174 of file appmain.h.
|
|
Constructor.
|
|
|
Destructor.
|
|
|
Terminate the event loop and exit application normally.
|
|
|
Get reference to the single APP_BASE instance for this executable.
|
|
|
Get command-line parameter for specified index.
|
|
|
Get number of command-line parameters.
|
|
|
Get reference to the single APP_MAIN instance for this executable.
|
|
|
Remove command-line parameter at specified index. Note, idx must be > 0 as first entry cannot be removed. |
|
|
Called just prior to application exit. May be overridden to clean up allocated instance resource. |
|
|
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.3.8-20040913