#include <ConsoleMainThread.h>
Public Member Functions | |
| void | initControlHandler () |
| void | start () |
Static Public Member Functions | |
| static TConsoleMainThread & | getInstance () |
| static void | terminate () |
| static bool | isTerminated () |
Protected Member Functions | |
| TConsoleMainThread () | |
| virtual | ~TConsoleMainThread () |
Static Protected Member Functions | |
| static BOOL __stdcall | breakRoutine (DWORD dwCtrlType) |
Static Protected Attributes | |
| static TConsoleMainThread | m_Instance |
| Static singleton object. | |
The class wraps the main thread of a console application. It includes the runtime environment and controller object
| TConsoleMainThread::TConsoleMainThread | ( | ) | [protected] |
Creates an new console main thread object
| TConsoleMainThread::~TConsoleMainThread | ( | ) | [protected, virtual] |
Destroys the thread object
| BOOL __stdcall TConsoleMainThread::breakRoutine | ( | DWORD | dwCtrlType ) | [static, protected] |
Handles CTRL-C and Break- Events of a console application
| static TConsoleMainThread& zeus::TConsoleMainThread::getInstance | ( | ) | [inline, static] |
returns the instance of the console main thread
| void TConsoleMainThread::initControlHandler | ( | ) |
Initialises all handlers
| bool TConsoleMainThread::isTerminated | ( | ) | [static] |
Checks if the application has been terminated
| true | : terminated |
| false,: | not terminated |
| void TConsoleMainThread::start | ( | ) |
Starts the application and keeps it running, until Control + C is pressed
| void TConsoleMainThread::terminate | ( | ) | [static] |
Terminates the application
TConsoleMainThread TConsoleMainThread::m_Instance [static, protected] |
Static singleton object.
Initialises the static object.