![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cAppImpl.h>
Public Member Functions | |
| cAppImpl (const FILECHAR_t *pszAppName=nullptr) | |
| virtual | ~cAppImpl () |
| virtual cString | get_HelpText () const |
| virtual bool | ShowHelp () |
| virtual bool | CheckHelpArgs () |
| virtual BOOL | InitInstance () |
| virtual bool | OnTickApp () |
| virtual int | Run () |
| virtual int | ExitInstance () |
| APP_EXITCODE_t | Main (HMODULE hInstance=((HMODULE) nullptr)) |
Static Public Member Functions | |
| static HINSTANCE | get_HInstance () |
Static Public Member Functions inherited from Gray::cSingletonStatic< cAppImpl > | |
| static bool | isSingleCreated () noexcept |
| static cAppImpl * | get_SingleU () noexcept |
| static cAppImpl * | get_Single () |
| static TYPE2 *__stdcall | get_SingleCast () |
| static cAppImpl & | I () noexcept |
Public Attributes | |
| const FILECHAR_t * | m_pszAppName |
| Specifies the name of my application. (display friendly) More... | |
| TIMESYSD_t | m_nMinTickTime |
| Minimum amount of time to spend in the OnTickApp() (mSec). cThreadId::SleepCurrent() if there is extra time. More... | |
| cAppState & | m_State |
| Quick reference to cAppState singleton. More... | |
| bool | m_bCloseSignal |
| Polite request to close the application. checked in Run() and OnTickApp() More... | |
Static Public Attributes | |
| static const char * | k_HelpText |
Additional Inherited Members | |
Protected Member Functions inherited from Gray::cSingletonStatic< cAppImpl > | |
| cSingletonStatic (cAppImpl *pObject) noexcept | |
| virtual | ~cSingletonStatic () noexcept |
Static Protected Attributes inherited from Gray::cSingletonStatic< cAppImpl > | |
| static cAppImpl * | sm_pThe |
| pointer to the one and only object of this TYPE. ASSUME automatically init to = nullptr. More... | |
Entry point for my implemented application. like (CWinApp for MFC) (maybe windowed or console) I am NOT a library/DLL. I am an application implementation. NOT the same as (or to be merged with) cAppState. Basic framework for my application I implement. Assume a static like cAppImpl theApp is defined some place.
| Gray::cAppImpl::cAppImpl | ( | const FILECHAR_t * | pszAppName = nullptr | ) |
|
virtual |
|
virtual |
Is the caller requesting help text via the command line? All apps should support "-help" "-?" requests for assistance. Is this arg present on the command line ? like FindCommandArg()
|
virtual |
APPSTATE_RunExit Override this to make the application do something to clean up. This should be called if Run() fails. NOT called if InitInstance fails. Like CWinApp for MFC
|
virtual |
|
inlinestatic |
|
virtual |
APPSTATE_RunInit Override this to make the application do something. Like CWinApp for MFC
Reimplemented in GrayLib::CWinApp.
| APP_EXITCODE_t Gray::cAppImpl::Main | ( | HMODULE | hInstance = ((HMODULE)nullptr) | ) |
The main application entry point and process loop. Like MFC AfxWinMain() Assume cAppStateMain was used.
|
virtual |
Override this to make the application do something. Main loop of main thread.
Reimplemented in GrayLib::CWinApp.
|
virtual |
APPSTATE_Run Override this to make the application do something. Main loop of main thread. Like CWinApp for MFC
|
virtual |
Show my help text via console or dialog .
|
static |
| bool Gray::cAppImpl::m_bCloseSignal |
Polite request to close the application. checked in Run() and OnTickApp()
| TIMESYSD_t Gray::cAppImpl::m_nMinTickTime |
Minimum amount of time to spend in the OnTickApp() (mSec). cThreadId::SleepCurrent() if there is extra time.
| const FILECHAR_t* Gray::cAppImpl::m_pszAppName |
Specifies the name of my application. (display friendly)