12#ifndef WSFSTANDARDAPPLICATION_HPP
13#define WSFSTANDARDAPPLICATION_HPP
15#include "wsf_export.h"
17#include "PakLogServerSubscriber.hpp"
100 unsigned int aRunNumber);
103 unsigned int aRunNumber);
120 void ConnectToLogServer();
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Exception(const std::string &aWhat)
Definition WsfApplication.hpp:53
std::list< std::string > PluginPaths
Definition WsfApplication.hpp:74
WsfApplication(const std::string &aApplicationName, int aArgc, char *aArgv[], const PluginPaths &aPluginPaths=PluginPaths())
Definition WsfApplication.cpp:47
friend class WsfScenario
Definition WsfApplication.hpp:46
The main controller for a simulation.
Definition WsfSimulation.hpp:109
InvalidCommandLineArgument(const std::string &aToken)
Definition WsfStandardApplication.cpp:623
~InvalidCommandLineArgument() override=default
SimType
The simulation type requested from the command line.
Definition WsfStandardApplication.hpp:55
@ cREAL_TIME
'-rt' was specified
Definition WsfStandardApplication.hpp:58
@ cFRAME_STEPPED
'-fs' was specified
Definition WsfStandardApplication.hpp:57
@ cEVENT_STEPPED
'-es' was specified
Definition WsfStandardApplication.hpp:56
void UpdateOptionsP(Options &aOptions, WsfSimulation *aSimPtr)
Definition WsfStandardApplication.cpp:572
log_server::LogSubscriber mLogServer
Log Server members.
Definition WsfStandardApplication.hpp:111
void ProcessCommandLineCommands(WsfScenario &aScenario, const Options &aOptions)
Definition WsfStandardApplication.cpp:217
virtual std::string GetUsageString() const
Definition WsfStandardApplication.cpp:549
WsfStandardApplication(const std::string &aApplicationName, int argc, char *argv[], const PluginPaths &aPluginPaths=PluginPaths())
Definition WsfStandardApplication.cpp:40
bool mShouldConnectToLogServer
Definition WsfStandardApplication.hpp:114
SimulationResult RunEventLoop(WsfSimulation *aSimPtr, Options aOptions)
Definition WsfStandardApplication.cpp:404
void ShowUsage()
Displays the application command-line usage.
Definition WsfStandardApplication.cpp:51
void ProcessInputFiles(WsfScenario &aScenario, const std::vector< std::string > &aFileList)
Definition WsfStandardApplication.cpp:279
RunMode
The type of run from the command line.
Definition WsfStandardApplication.hpp:63
@ cWRITE_GRAMMAR
Write the grammar file out, used by the IDE.
Definition WsfStandardApplication.hpp:67
@ cSHOW_USAGE
Show command line options and exit.
Definition WsfStandardApplication.hpp:66
@ cRUN_SCENARIO
Run the scenario (implied if no other command specified).
Definition WsfStandardApplication.hpp:64
@ cLIST_VARIABLES
List the preprocessor variables.
Definition WsfStandardApplication.hpp:65
void ProcessCommandLine(Options &aOptions)
Definition WsfStandardApplication.cpp:71
~WsfStandardApplication() override=default
bool InitializeSimulation(WsfSimulation *aSimPtr)
Definition WsfStandardApplication.cpp:360
int mLogServerPort
Definition WsfStandardApplication.hpp:113
std::string mLogServerHost
Definition WsfStandardApplication.hpp:112
virtual std::unique_ptr< WsfSimulation > CreateSimulation(WsfScenario &aScenario, SimType aSimulationType, unsigned int aRunNumber)
Definition WsfStandardApplication.cpp:323
Application options; Command line or otherwise.
Definition WsfStandardApplication.hpp:72
std::vector< std::string > mInputFiles
Definition WsfStandardApplication.hpp:75
RunMode mRunMode
Definition WsfStandardApplication.hpp:79
double mRealtimeMessageInterval
Definition WsfStandardApplication.hpp:78
double mDeferredConnectionTime
Definition WsfStandardApplication.hpp:76
SimType mSimType
Definition WsfStandardApplication.hpp:73
bool mFlushIO
Definition WsfStandardApplication.hpp:74
double mMessageInterval
Definition WsfStandardApplication.hpp:77
The result of simulation execution.
Definition WsfStandardApplication.hpp:47
bool mResetRequested
Definition WsfStandardApplication.hpp:50