![]() |
MAK Data Logger API Documentation for DIS
|
The logger application class responsible for creating a logger, its gui and its console. More...
Collaboration diagram for MAKLogger::DtLoggerApplication:Public Types | |
| typedef void(* | GuiStartupCallback )(DtLgrAppGuiInterfaceSP) |
| Callback function format. More... | |
| typedef bool(* | WinEventFilterFunction )(tagMSG *msg, long *result) |
Public Member Functions | |
| DtLoggerApplication () | |
| virtual | ~DtLoggerApplication () |
| virtual void | initialize (int argc, char **argv, DtString configFile) |
| Initialize the logger. More... | |
| virtual DtString | getConfigFilename (int argc, char **argv, DtString configFile) |
| Get the config file name from the command line arguments or use the default which is 'lgrConfig.xml'. More... | |
| virtual void | run () |
| Run the logger application. More... | |
| DtString | language () const |
| Get logger language. More... | |
| virtual DtLgrAppGuiInterfaceSP | gui () |
| Pointer to the gui. More... | |
| virtual DtLgrConsoleSP | console () |
| Pointer to the console. More... | |
| virtual void | registerGuiStartupCallback (GuiStartupCallback callback) |
| Register a gui startup callback. More... | |
| virtual void | executeGuiStartupCallbacks () |
| Called by Gui interface after it has initialized. More... | |
| virtual DtLoggerAppConfigLoader * | environmentLoader () |
| virtual DtLogger & | logger () |
| Get a reference to the logger. More... | |
| virtual const DtLogger & | logger () const |
| Get a reference to the logger. More... | |
Static Public Member Functions | |
| static WinEventFilterFunction | winEventFilter () |
| static void | setWinEventFilter (WinEventFilterFunction function) |
| static void | initFPUnit () |
| Initilaize the Floating point unit to be 64 bits (needed on some platforms). More... | |
Protected Types | |
| typedef std::list < GuiStartupCallback > | GuiStartupCallbackList |
Protected Member Functions | |
| void | setOutputLog (const DtString &logFilename) |
| Set the output log file name. More... | |
| virtual void | processConfigurationFile (const DtString &configFile) |
| Process the configuration file. More... | |
| virtual void | processCommandLineArguments (int argc, char **argv) |
| Process the command line arguments. More... | |
| virtual void | initializeGui () |
| Initialize the language. More... | |
| virtual void | initializeConsole () |
| Initialize the command console. More... | |
| virtual void | enableLoggerAppPlugins () |
| Enables all loaded plug-ins. More... | |
Protected Attributes | |
| DtThreadedLoggerSP | myLogger |
| DtLgrConsoleSP | myConsole |
| DtLgrAppGuiInterfaceSP | myGui |
| DtLoggerAppConfigLoader * | myLoader |
| DtLgrAppCommandLine * | myCommandLine |
| DtString | myLogFileName |
| DtPrinter * | myLogFilePrinter |
| GuiStartupCallbackList | myStartupCallbacks |
Static Protected Attributes | |
| static WinEventFilterFunction | theCurrentWinEventFunction |
The logger application class responsible for creating a logger, its gui and its console.
| typedef void(* MAKLogger::DtLoggerApplication::GuiStartupCallback)(DtLgrAppGuiInterfaceSP) |
Callback function format.
|
protected |
| typedef bool(* MAKLogger::DtLoggerApplication::WinEventFilterFunction)(tagMSG *msg, long *result) |
| MAKLogger::DtLoggerApplication::DtLoggerApplication | ( | ) |
|
virtual |
|
virtual |
Pointer to the console.
|
protectedvirtual |
Enables all loaded plug-ins.
Called at beginning of run(), and calls the enableLogger*Plugin functions passing in the Logger and LoggerApplication as necessary;
|
virtual |
|
virtual |
Called by Gui interface after it has initialized.
|
virtual |
Get the config file name from the command line arguments or use the default which is 'lgrConfig.xml'.
|
virtual |
Pointer to the gui.
This pointer will be null is the GUI is not initialized.
|
static |
Initilaize the Floating point unit to be 64 bits (needed on some platforms).
|
virtual |
Initialize the logger.
This must be called before any other actions.
|
protectedvirtual |
Initialize the command console.
|
protectedvirtual |
Initialize the language.
| DtString MAKLogger::DtLoggerApplication::language | ( | ) | const |
Get logger language.
|
virtual |
Get a reference to the logger.
|
virtual |
Get a reference to the logger.
|
protectedvirtual |
Process the command line arguments.
|
protectedvirtual |
Process the configuration file.
|
virtual |
Register a gui startup callback.
|
virtual |
Run the logger application.
The application must have bee initialized first via the initialize function.
|
protected |
Set the output log file name.
Not virtual since called in CTOR.
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |