33 lines
618 B
C++
Executable File
33 lines
618 B
C++
Executable File
|
|
|
|
|
|
#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;
|
|
}
|
|
|