38 lines
833 B
C++
Executable File
38 lines
833 B
C++
Executable File
/**
|
|
* Main for CombatNetRadio
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Hannes Fritsche, SLSE, 2017-09-05
|
|
*/
|
|
|
|
#include <nglapplication/nglcoreapplication.h>
|
|
#include <LtsCommandLineParser/LtsCommandLineParser.h>
|
|
|
|
#include "main_handler.h"
|
|
#include "logger.h"
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
NGLCoreApplication app(argc, argv);
|
|
|
|
int iRet = -1;
|
|
LtsCommandLineParser::LtsCommandLineParser options;
|
|
if (!options.init())
|
|
return iRet;
|
|
app.createLogger("CNR", options.exerciseId());
|
|
|
|
{
|
|
CombatNetRadio::MainHandler mainHandler;
|
|
if (mainHandler.init(options.domainId()))
|
|
{
|
|
STARTUP_LOG(app.baseLogger());
|
|
iRet = app.exec();
|
|
SHUTDOWN_LOG(app.baseLogger());
|
|
}
|
|
}
|
|
|
|
return iRet;
|
|
} // end of main()
|
|
//-----------------------------------------------------------------------------
|