Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes
MAKLogger::DtLoggerApplication Class Reference

The logger application class responsible for creating a logger, its gui and its console. More...

+ Collaboration diagram for MAKLogger::DtLoggerApplication:

List of all members.

Public Types

typedef void(* GuiStartupCallback )(DtLgrAppGuiInterfaceSP)
 Callback function format.
typedef bool(* WinEventFilterFunction )(tagMSG *msg, long *result)

Public Member Functions

virtual void initialize (int argc, char **argv, DtString configFile)
 Initialize the logger.
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'.
virtual void run ()
 Run the logger application.
DtString language () const
 Get logger language.
virtual DtLgrAppGuiInterfaceSP gui ()
 Pointer to the gui.
virtual DtLgrConsoleSP console ()
 Pointer to the console.
virtual void registerGuiStartupCallback (GuiStartupCallback callback)
 Register a gui startup callback.
virtual void executeGuiStartupCallbacks ()
 Called by Gui interface after it has initialized.
virtual DtLoggerlogger ()
 Get a reference to the logger.
virtual const DtLoggerlogger () const
 Get a reference to the logger.

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).

Protected Types

typedef std::list
< GuiStartupCallback
GuiStartupCallbackList

Protected Member Functions

void setOutputLog (const DtString &logFilename)
 Set the output log file name.
virtual void processConfigurationFile (const DtString &configFile)
 Process the configuration file.
virtual void processCommandLineArguments (int argc, char **argv)
 Process the command line arguments.
virtual void initializeGui ()
 Initialize the language.
virtual void initializeConsole ()
 Initialize the command console.
virtual void enableLoggerAppPlugins ()
 Enables all loaded plug-ins.

Protected Attributes

DtThreadedLoggerSP myLogger
DtLgrConsoleSP myConsole
DtLgrAppGuiInterfaceSP myGui
DtLoggerAppConfigLoadermyLoader
DtLgrAppCommandLinemyCommandLine
DtString myLogFileName
DtPrinter * myLogFilePrinter
GuiStartupCallbackList myStartupCallbacks

Static Protected Attributes

static WinEventFilterFunction theCurrentWinEventFunction

Detailed Description

The logger application class responsible for creating a logger, its gui and its console.


Member Function Documentation

virtual void MAKLogger::DtLoggerApplication::enableLoggerAppPlugins ( ) [protected, virtual]

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 DtString MAKLogger::DtLoggerApplication::getConfigFilename ( int  argc,
char **  argv,
DtString  configFile 
) [virtual]

Get the config file name from the command line arguments or use the default which is 'lgrConfig.xml'.

virtual DtLgrAppGuiInterfaceSP MAKLogger::DtLoggerApplication::gui ( ) [virtual]

Pointer to the gui.

This pointer will be null is the GUI is not initialized.

static void MAKLogger::DtLoggerApplication::initFPUnit ( ) [static]

Initilaize the Floating point unit to be 64 bits (needed on some platforms).

virtual void MAKLogger::DtLoggerApplication::initialize ( int  argc,
char **  argv,
DtString  configFile 
) [virtual]

Initialize the logger.

This must be called before any other actions.

virtual void MAKLogger::DtLoggerApplication::run ( ) [virtual]

Run the logger application.

The application must have bee initialized first via the initialize function.

void MAKLogger::DtLoggerApplication::setOutputLog ( const DtString &  logFilename) [protected]

Set the output log file name.

Not virtual since called in CTOR.


The documentation for this class was generated from the following file:

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)