MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
4 - Creating a Stand-Alone Logger Application

Creating a stand-alone Logger application can be as simple as the embedded Logger examples, or can include more advanced front-end capabilities.

The MÄK Data Logger application is an instance of a complex Logger application.

You can embed the entire Logger application using a DtLoggerApplication object, as follows:

DtLoggerApplication app(argc,argv);
...
app.run();

Typically, you would put additional configuration commands after constructing the application, but before running it. For example, the following simple program opens a specific file and plays it:

DtLoggerApplication app(argc,argv);
DtCommand aCommand = DtLgrPlaybackCommandFactory::createOpenFileCommand(“test.lgr”);
DtCommand bCommand = DtLgrPlaybackCommandFactory::createPlayCommand();
app.logger().submitCommand(aCommand);
app.logger().submitCommand(bCommand);
app.run()

While creating a new application based on DtLoggerApplication gives you a large amount of control over the low level implementation of the Logger, in many cases this level of control is not needed or exceeds what is necessary for the project. It is usually preferable to use the plug-in capability to extend the Logger application.

[<< Embedding the Logger in an Application] [Home] [Top of Page] [The Logger Plug-in API >>]


Document ID: Generated on Wed Jun 5 18:45:18 EDT 2019 from SVN revision 198968
Copyright © 2019 VT MAK. All Rights Reserved (www.mak.com)