![]() |
MAK Data Logger API Documentation for HLA
|
DtLgrSystemDrive defines the lowest level driver which controls the logger. More...
Collaboration diagram for MAKLogger::DtLgrSystemDriver:Public Types | |
| enum | NasmpMode { NasmpMode_None, NasmpMode_Snnf } |
| enum | NasmpFlag { NasmpFlag_Fast } |
| typedef DtLgrSystemCommandFactory | Factory |
Public Member Functions | |
| virtual | ~DtLgrSystemDriver () |
| DTOR. More... | |
| virtual void | tick () |
| Ticks the system. More... | |
| void | init (DtLgrProtocolRegistration *) |
| Verifies that the system has been properly initialized. More... | |
| virtual bool | timeToShutdown () const |
| Returns true if it is time to shutdown. More... | |
| virtual void | submitCommand (const DtCommand &command) |
| Submit a command into the command queue. More... | |
| DtCommandDispatcherSP | dispatcher () |
| Get a smart pointer to the dispatcher. More... | |
| DtMessagePipeline * | requestPipeline (DtLgrCommandHandler *) |
| Request access to the Message Pipeline. More... | |
| bool | releasePipeline () |
| Release the Message pipeline. More... | |
| const DtLgrCommandHandler * | pipelineOwner () const |
| Get the driver who has the pipeline. More... | |
| const DtMessagePipeline * | pipeline () const |
| Get a constant version of the pipeline. More... | |
| DtMessagePipeline * | pipeline () |
| Get the pipeline. More... | |
| void | setPipelineDriver (DtLgrDomainId domain) |
| Notifies the necessary driver to request the pipeline. More... | |
| virtual bool | wasListeningOnIdle () const |
| Return true if the pipeline was listening while idle. More... | |
| virtual bool | isListeningOnIdle () const |
| Return true if the pipeline is listening while idle. More... | |
| void | addDriver (DtLgrCommandType, DtLgrCommandHandlerSP driver) |
| Adds a driver to process a specific type of command. More... | |
| DtLgrCommandHandlerSP | getCommandHandler (const DtLgrCommandType &type) |
| Returns the driver for a given type, if none is available it returns a null pointer. More... | |
| bool | removeDriver (DtLgrCommandType type) |
| Returns true or false depending on if a driver for the type specified was removed. More... | |
| void | setSimManager (DtLgrSimManager *) |
| Sets the simulation manager, this must be done during startup. More... | |
| const DtLgrSimManager * | simManager () const |
| Gets the simulation manager. More... | |
| DtLgrSimManager * | simManager () |
| virtual void | loadPluginLibrary (const DtString &filename) |
| Throws DtLibraryDoesNotExist and DtLibraryFileIsInvalid. More... | |
| void | setNotifyLevel (int vlLevel, int lgrLevel) |
| Set the notify level for messages printed to console. More... | |
| void | setBasicGuiFlag (bool basic) |
| Set whether associated guis should use basic rendering settings. More... | |
| void | setGuiConfigFilename (DtString guiConfigFilename) |
| Set filename for saved GUI config file. More... | |
| void | setPerformanceThreshold (double performanceThreshold) |
| Set threshold (in seconds) for performance warnings. More... | |
| void | issueTextCommand (const DtString &textCommand) |
| Decode and issue a text command. More... | |
| void | setEntityTracking (bool enableEntityTracking) |
| Set the entity tracking switch. More... | |
| bool | entityTracking () const |
| Get the entity tracking switch. More... | |
| void | setFastJumpsWithoutDiff (bool enableFastJumpsWithoutDiff) |
| Set the fast jumps without diff switch. More... | |
| bool | fastJumpsWithoutDiff () const |
| Get the fast jumps without diff switch. More... | |
| void | setPlaybackReadTimeLimit (double readTimeLimit) |
| Set the playback read limit time where <= 0.0 indicates no limit. More... | |
| double | playbackReadTimeLimit () const |
| Get the playback read limit time where <= 0.0 indicates no limit. More... | |
| void | setNasmpMode (const DtString &nasmpMode) |
| Set NASMP mode. More... | |
| int | notifyLevel () const |
| Get the current notify level. More... | |
| bool | basicGuiFlag () const |
| Get the current basic gui flag. More... | |
| DtString | guiConfigFilename () const |
| Get the GUI config filename. More... | |
| DtString | nasmpModeString () const |
| Get the current NASMP mode. More... | |
| NasmpMode | nasmpMode () const |
| Get the current NASMP mode. More... | |
| bool | nasmpFlag (NasmpFlag flag) |
| Get a current NASMP flag. More... | |
| void | sendMessage (const DtString &message) |
| Send a message to the interfaces. More... | |
| DtRuntimeCommandFactory * | runtimeCommandFactory () |
| Get the runtimeCommandFactory. More... | |
| const DtLibraryList & | libraries () const |
| Get a map of the libraries loaded. More... | |
| DtThreadSafe< bool > * | cancelLongOperationFlag () |
| get a pointer to the cancelLongOperationFlag; More... | |
| void | startLongOperation (const DtString &name, bool interruptible) |
| Start a long operation. More... | |
| void | updateLongOperation (const DtString &message, int progress) |
| Update a long operation. More... | |
| void | finishLongOperation () |
| Finish a long operation. More... | |
| void | cancelLongOperation () |
| Cancel a long operation. More... | |
| bool | isLongOperationCanceled () const |
| Get whether a long operation should be canceled. More... | |
| DtLogger * | logger () |
| Get the logger for this driver. More... | |
| const DtLogger * | logger () const |
| Get the logger for this driver. More... | |
Protected Types | |
| typedef DtU32 | NasmpFlags |
| typedef DtResponse(DtLgrSystemDriver::* | CommandHandler )(const DtCommand &) |
| typedef std::map < DtLgrCommandId, CommandHandler > | DtCommandMap |
| typedef std::map < DtLgrCommandType, DtLgrCommandHandlerSP > | DtDriverMap |
| typedef std::set < DtLgrCommandHandlerSP > | DtDriverList |
Protected Member Functions | |
| DtResponse | shutdownCommand (const DtCommand &command) |
| ! Command handlers More... | |
| DtResponse | cancelShutdown (const DtCommand &command) |
| DtResponse | createDriver (const DtCommand &command) |
| DtResponse | loadPlugin (const DtCommand &command) |
| DtResponse | setNotifyLevel (const DtCommand &command) |
| DtResponse | setBasicGuiFlag (const DtCommand &command) |
| DtResponse | setPlaybackReadTimeLimit (const DtCommand &command) |
| DtResponse | setEntityTracking (const DtCommand &command) |
| DtResponse | setFastJumpsWithoutDiff (const DtCommand &command) |
| DtResponse | setNasmpMode (const DtCommand &command) |
| DtResponse | deleteFile (const DtCommand &command) |
| DtResponse | installOutputListener (const DtCommand &command) |
| DtResponse | issueTextCommand (const DtCommand &command) |
| Decode and issue a text based command. More... | |
| DtResponse | helpCommand (const DtCommand &command) |
| DtResponse | infoCommand (const DtCommand &command) |
| DtResponse | setTempDir (const DtCommand &command) |
| DtResponse | setDefaultTapeDirectory (const DtCommand &command) |
| DtResponse | setGuiConfigFilename (const DtCommand &command) |
| DtResponse | setPerformanceThreshold (const DtCommand &command) |
| virtual void | unloadLibraries () |
| void | registerCommandHandler (const DtCommandDefinition &, CommandHandler) |
| Add a commandHandler Called by CTOR. More... | |
| virtual void | tickDrivers () |
| Tick all drivers. More... | |
| virtual void | lockDrivers () |
| Lock all the drivers. More... | |
| virtual void | unlockDrivers () |
| Unlock all the drivers. More... | |
| virtual void | processCommands () |
| Process all commands in the waiting queue. More... | |
| virtual DtString | commandDescription (const DtString &commandName) const |
| Get the command description as a user readable string. More... | |
| void | lookupCommandId (DtCommand &command) |
| If a command has a name only and not an idea, look up its id from the runtime command factory. More... | |
| virtual void | processCommand (const DtCommand &command) |
| Process a command a return a response (if necessary, or NULL) More... | |
Static Protected Attributes | |
| static const int | NasmpModeMask = 0x0f |
| static const int | NasmpModeNone = 0x00 |
| static const int | NasmpModeSnnf = 0x01 |
| static const int | NasmpFlagMask = 0xf0 |
| static const int | NasmpFlagFast = 0x10 |
DtLgrSystemDrive defines the lowest level driver which controls the logger.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
virtual |
DTOR.
| void MAKLogger::DtLgrSystemDriver::addDriver | ( | DtLgrCommandType | , |
| DtLgrCommandHandlerSP | driver | ||
| ) |
Adds a driver to process a specific type of command.
Only one driver map process a specific type, however the same driver can be registered with multiple types.
| bool MAKLogger::DtLgrSystemDriver::basicGuiFlag | ( | ) | const |
Get the current basic gui flag.
| void MAKLogger::DtLgrSystemDriver::cancelLongOperation | ( | ) |
Cancel a long operation.
| DtThreadSafe<bool>* MAKLogger::DtLgrSystemDriver::cancelLongOperationFlag | ( | ) |
get a pointer to the cancelLongOperationFlag;
|
protected |
|
protectedvirtual |
Get the command description as a user readable string.
|
protected |
|
protected |
| DtCommandDispatcherSP MAKLogger::DtLgrSystemDriver::dispatcher | ( | ) |
Get a smart pointer to the dispatcher.
| bool MAKLogger::DtLgrSystemDriver::entityTracking | ( | ) | const |
Get the entity tracking switch.
| bool MAKLogger::DtLgrSystemDriver::fastJumpsWithoutDiff | ( | ) | const |
Get the fast jumps without diff switch.
| void MAKLogger::DtLgrSystemDriver::finishLongOperation | ( | ) |
Finish a long operation.
| DtLgrCommandHandlerSP MAKLogger::DtLgrSystemDriver::getCommandHandler | ( | const DtLgrCommandType & | type | ) |
Returns the driver for a given type, if none is available it returns a null pointer.
| DtString MAKLogger::DtLgrSystemDriver::guiConfigFilename | ( | ) | const |
Get the GUI config filename.
|
protected |
|
protected |
| void MAKLogger::DtLgrSystemDriver::init | ( | DtLgrProtocolRegistration * | ) |
Verifies that the system has been properly initialized.
Should be called after a single tick to ensure all necessary components are loaded.
| DtCorruptedState | exception is thrown if not properly configured. |
|
protected |
|
virtual |
Return true if the pipeline is listening while idle.
| bool MAKLogger::DtLgrSystemDriver::isLongOperationCanceled | ( | ) | const |
Get whether a long operation should be canceled.
| void MAKLogger::DtLgrSystemDriver::issueTextCommand | ( | const DtString & | textCommand | ) |
Decode and issue a text command.
|
protected |
Decode and issue a text based command.
| const DtLibraryList& MAKLogger::DtLgrSystemDriver::libraries | ( | ) | const |
Get a map of the libraries loaded.
|
protected |
|
virtual |
Throws DtLibraryDoesNotExist and DtLibraryFileIsInvalid.
|
protectedvirtual |
Lock all the drivers.
| DtLogger* MAKLogger::DtLgrSystemDriver::logger | ( | ) |
Get the logger for this driver.
| const DtLogger* MAKLogger::DtLgrSystemDriver::logger | ( | ) | const |
Get the logger for this driver.
|
protected |
If a command has a name only and not an idea, look up its id from the runtime command factory.
| bool MAKLogger::DtLgrSystemDriver::nasmpFlag | ( | NasmpFlag | flag | ) |
Get a current NASMP flag.
| NasmpMode MAKLogger::DtLgrSystemDriver::nasmpMode | ( | ) | const |
Get the current NASMP mode.
| DtString MAKLogger::DtLgrSystemDriver::nasmpModeString | ( | ) | const |
Get the current NASMP mode.
| int MAKLogger::DtLgrSystemDriver::notifyLevel | ( | ) | const |
Get the current notify level.
| const DtMessagePipeline* MAKLogger::DtLgrSystemDriver::pipeline | ( | ) | const |
Get a constant version of the pipeline.
| DtMessagePipeline* MAKLogger::DtLgrSystemDriver::pipeline | ( | ) |
Get the pipeline.
| const DtLgrCommandHandler* MAKLogger::DtLgrSystemDriver::pipelineOwner | ( | ) | const |
Get the driver who has the pipeline.
| double MAKLogger::DtLgrSystemDriver::playbackReadTimeLimit | ( | ) | const |
Get the playback read limit time where <= 0.0 indicates no limit.
|
protectedvirtual |
Process a command a return a response (if necessary, or NULL)
|
protectedvirtual |
Process all commands in the waiting queue.
|
protected |
Add a commandHandler Called by CTOR.
| bool MAKLogger::DtLgrSystemDriver::releasePipeline | ( | ) |
Release the Message pipeline.
This function functions similarly to requestPipeline however it does not transfer the pipeline to an existing driver.
| true | The pipeline was released. |
| false | The pipeline was NOT released. |
| bool MAKLogger::DtLgrSystemDriver::removeDriver | ( | DtLgrCommandType | type | ) |
Returns true or false depending on if a driver for the type specified was removed.
| DtMessagePipeline* MAKLogger::DtLgrSystemDriver::requestPipeline | ( | DtLgrCommandHandler * | ) |
Request access to the Message Pipeline.
The driver will then have sole access to the pipeline. If the systemDriver is unable to retrieve the pipeline, it will return null.
| 0 | The pipeline was not able to be requested for sole access. |
| DtRuntimeCommandFactory* MAKLogger::DtLgrSystemDriver::runtimeCommandFactory | ( | ) |
Get the runtimeCommandFactory.
| void MAKLogger::DtLgrSystemDriver::sendMessage | ( | const DtString & | message | ) |
Send a message to the interfaces.
| void MAKLogger::DtLgrSystemDriver::setBasicGuiFlag | ( | bool | basic | ) |
Set whether associated guis should use basic rendering settings.
|
protected |
|
protected |
| void MAKLogger::DtLgrSystemDriver::setEntityTracking | ( | bool | enableEntityTracking | ) |
Set the entity tracking switch.
|
protected |
| void MAKLogger::DtLgrSystemDriver::setFastJumpsWithoutDiff | ( | bool | enableFastJumpsWithoutDiff | ) |
Set the fast jumps without diff switch.
|
protected |
| void MAKLogger::DtLgrSystemDriver::setGuiConfigFilename | ( | DtString | guiConfigFilename | ) |
Set filename for saved GUI config file.
|
protected |
| void MAKLogger::DtLgrSystemDriver::setNasmpMode | ( | const DtString & | nasmpMode | ) |
Set NASMP mode.
|
protected |
| void MAKLogger::DtLgrSystemDriver::setNotifyLevel | ( | int | vlLevel, |
| int | lgrLevel | ||
| ) |
Set the notify level for messages printed to console.
|
protected |
| void MAKLogger::DtLgrSystemDriver::setPerformanceThreshold | ( | double | performanceThreshold | ) |
Set threshold (in seconds) for performance warnings.
|
protected |
| void MAKLogger::DtLgrSystemDriver::setPipelineDriver | ( | DtLgrDomainId | domain | ) |
Notifies the necessary driver to request the pipeline.
| void MAKLogger::DtLgrSystemDriver::setPlaybackReadTimeLimit | ( | double | readTimeLimit | ) |
Set the playback read limit time where <= 0.0 indicates no limit.
|
protected |
| void MAKLogger::DtLgrSystemDriver::setSimManager | ( | DtLgrSimManager * | ) |
Sets the simulation manager, this must be done during startup.
|
protected |
|
protected |
! Command handlers
| const DtLgrSimManager* MAKLogger::DtLgrSystemDriver::simManager | ( | ) | const |
Gets the simulation manager.
| DtLgrSimManager* MAKLogger::DtLgrSystemDriver::simManager | ( | ) |
| void MAKLogger::DtLgrSystemDriver::startLongOperation | ( | const DtString & | name, |
| bool | interruptible | ||
| ) |
Start a long operation.
|
virtual |
Submit a command into the command queue.
|
virtual |
Ticks the system.
|
protectedvirtual |
Tick all drivers.
|
virtual |
Returns true if it is time to shutdown.
|
protectedvirtual |
|
protectedvirtual |
Unlock all the drivers.
| void MAKLogger::DtLgrSystemDriver::updateLongOperation | ( | const DtString & | message, |
| int | progress | ||
| ) |
Update a long operation.
|
virtual |
Return true if the pipeline was listening while idle.
|
protected |
stores flag to signify associated guis should use basic rendering.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Each driver is responsible for handling commands of a specific domain, and Protocol.
|
protected |
|
protected |
Control whether to use entity tracking is allowed.
|
protected |
Control whether to use fast check point mode.
|
protected |
stores the GUI config filename
|
protected |
|
protected |
|
protected |
stores current NASMP mode
|
protected |
Pointer to logger who owns this driver.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
stores flag to signify it is time to shutdown.
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |