9 #ifndef lgrSystemDriver_H_
10 #define lgrSystemDriver_H_
21 #include <vlutil/vlTime.h>
31 class DtLgrDynamicLibrary;
32 class DtLgrSystemCommandFactory;
34 class DtMessagePipeline;
35 class DtRuntimeCommandFactory;
36 class DtLgrProtocolRegistration;
39 typedef std::list<std::shared_ptr<DtLgrDynamicLibrary> >
DtLibraryList;
75 virtual
bool timeToShutdown() const;
78 virtual
void submitCommand(const
DtCommand& command);
94 bool releasePipeline();
97 const DtLgrCommandHandler* pipelineOwner() const;
109 virtual
bool wasListeningOnIdle() const;
112 virtual
bool isListeningOnIdle() const;
125 bool removeDriver(DtLgrCommandType type);
131 const DtLgrSimManager* simManager() const;
133 DtLgrSimManager* simManager();
136 virtual
void loadPluginLibrary(const DtString& filename);
139 void setNotifyLevel(
int vlLevel,
int lgrLevel);
142 void setBasicGuiFlag(
bool basic);
145 void setGuiConfigFilename(DtString guiConfigFilename);
148 void setPerformanceThreshold(
double performanceThreshold);
151 void issueTextCommand(const DtString& textCommand);
154 void setEntityTracking(
bool enableEntityTracking);
157 bool entityTracking() const;
162 void setExConnConfigFile(const DtString& exConnConfigFile);
165 const DtString& exConnConfigFile() const;
170 void setFomModuleList(const std::vector<DtString>& fomModuleList);
173 const std::vector<DtString>& fomModuleList() const;
177 void setAdditionalFomModules(const std::vector<DtString>& additionalFomModules);
180 const std::vector<DtString>& additionalFomModules() const;
183 void setFastJumpsWithoutDiff(
bool enableFastJumpsWithoutDiff);
186 bool fastJumpsWithoutDiff() const;
189 void setPlaybackReadTimeLimit(
double readTimeLimit);
192 double playbackReadTimeLimit() const;
195 void setNasmpMode (const DtString& nasmpMode);
198 int notifyLevel() const;
201 bool basicGuiFlag()const;
204 DtString guiConfigFilename() const;
207 DtString nasmpModeString() const;
210 NasmpMode nasmpMode() const;
213 bool nasmpFlag(NasmpFlag flag);
216 void sendMessage(const DtString& message);
234 void startLongOperation(const DtString& name,
bool interruptible);
237 void updateLongOperation(const DtString& message,
int progress);
240 void finishLongOperation();
243 void cancelLongOperation();
246 bool isLongOperationCanceled() const;
277 static const
int NasmpModeMask = 0x0f;
278 static const
int NasmpModeNone = 0x00;
279 static const
int NasmpModeSnnf = 0x01;
281 static const
int NasmpFlagMask = 0xf0;
282 static const
int NasmpFlagFast = 0x10;
289 virtual
void unloadLibraries();
295 virtual
void tickDrivers();
298 virtual
void lockDrivers();
301 virtual
void unlockDrivers();
304 virtual
void processCommands();
307 virtual DtString commandDescription( const DtString& commandName) const;
311 void lookupCommandId(DtCommand& command);
314 virtual
void processCommand(const DtCommand& command);
321 DtTime myTickOverhead;
322 bool myPerformanceWarning;
323 double myPerformanceThreshold;
325 DtCommandMap myCommandMap;
328 DtDriverList myDriverList;
329 DtDriverMap myDriverMap;
332 DtLgrCommandHandler* myPipelineOwner;
334 DtLgrSimManager* mySimManager;
347 DtString myGuiConfigFilename;
350 DtString myNasmpMode;
353 bool myEntityTracking;
357 DtString myExConnConfigFile;
361 std::vector<DtString> myFomModuleList;
364 std::vector<DtString> myAdditionalFomModules;
367 bool myFastJumpsWithoutDiff;
369 DtMutex myCommandHandlerMutex;
373 NasmpFlags myNasmpFlags;
The logger command which contains the command type and its parameters.
Definition: lgrCommand.h:110
The command type structure.
Definition: lgrCommand.h:29
This class provides the base interface for DtLgrCommandHandler.
Definition: lgrDriver.h:35
#define DT_VIRTUAL_CTR(CLASS_NAME, ARG_TYPES_LIST)
Declare a Virtual Constructor Create using DT_VIRTUAL_CTR(CLASS_NAME,ARG_TYPES_LIST) Where CLASS_NAME...
Definition: virtualConstructor.h:34
NasmpFlag
Definition: lgrSystemDriver.h:55
Relative Time, an elapsed duration of time, no implied measurement, could be seconds/cycles or ticks ...
Definition: absoluteTime.h:28
Definition: lgrSystemDriver.h:51
Contains Logger exceptions.
unsigned char DtLgrDomainId
Definition: lgrCommand.h:23
The factory for creating logger system commands.
Definition: lgrSystemCommandFactory.h:26
Contains DT_VIRTUAL_CTR DT_VIRTUAL_CTR_DEFAULTS DT_VIRTUAL_COPY_ASSIGN DT_VIRTUAL_BASE_CTR DT_PURE_VI...
NasmpMode
Definition: lgrSystemDriver.h:49
Contains MAKLogger::Contains DtCommandDefinition and MAKLogger::DtRuntimeCommandFactory classes...
std::map< DtLgrCommandType, DtLgrCommandHandlerSP > DtDriverMap
Definition: lgrSystemDriver.h:286
Contains MAKLogger::DtScopedSequenceLock and MAKLogger::DtThreadSafe classes.
The factory for decoding text commands.
Definition: lgrRuntimeCommandFactory.h:67
std::shared_ptr< DtLgrCommandHandler > DtLgrCommandHandlerSP
Definition: lgrDriver.h:150
The definition of a command and it's parameters.
Definition: lgrRuntimeCommandFactory.h:40
Implements a protocol independent Simulation manager.
Definition: lgrSimManager.h:40
std::shared_ptr< DtCommandDispatcher > DtCommandDispatcherSP
Definition: lgrCommandDispatcher.h:101
Contains MAKLogger::DtLgrCommandType and MAKLogger::DtCommand classes.
DtLgrSystemCommandFactory Factory
Definition: lgrSystemDriver.h:47
a thread safe interface to a value.
Definition: threadSafe.h:101
#define DT_DLL_LGRCORE
Definition: lgrCore.h:19
A helper class for registering the necessary protocol specific information.
Definition: lgrProtocolRegistration.h:31
The message pipeline which takes messages from the input, passes them through the state and ultimatel...
Definition: messagePipeline.h:28
std::shared_ptr< const DtCommand > DtResponse
Definition: lgrCommand.h:175
DtLogger provides the core system structure and controls the execution model for the underlying objec...
Definition: logger.h:35
Contains MAKLogger::DtCommandDispatcher class.
Contains MAKLogger::DtLgrCommandHandler class.
std::set< DtLgrCommandHandlerSP > DtDriverList
Definition: lgrSystemDriver.h:287
short DtLgrCommandId
Definition: lgrCommand.h:25
std::map< DtLgrCommandId, CommandHandler > DtCommandMap
Definition: lgrSystemDriver.h:285
std::list< std::shared_ptr< DtLgrDynamicLibrary > > DtLibraryList
Definition: lgrSystemDriver.h:37
DtLgrSystemDrive defines the lowest level driver which controls the logger.
Definition: lgrSystemDriver.h:44
DtU32 NasmpFlags
Definition: lgrSystemDriver.h:275
Contains lgrCore library definitions.