![]() |
MAK Data Logger API Documentation for HLA
|
The class responsible for controlling the logger playback functionality. More...
Inheritance diagram for MAKLogger::DtLgrPlaybackDriver:
Collaboration diagram for MAKLogger::DtLgrPlaybackDriver:Public Types | |
| typedef DtLgrPlaybackCommandFactory | Factory |
| typedef DtLgrPlaybackInterface | Interface |
Public Member Functions | |
| virtual | ~DtLgrPlaybackDriver () |
| virtual void | tick () |
| Tick the driver, cause it to do anything on a regular basis. | |
| virtual bool | getPipeline () |
| Attempt to acquire the pipeline. | |
| virtual bool | hasPipeline () const |
| Does this object own the pipeline. | |
| virtual bool | releasePipeline () |
| Attempt to release the pipeline. | |
| virtual void | setUnsavedFile (const DtString &filename, bool selectAll) |
| Set the lgrPlayback driver to use an unsaved file (while still using the filename of the original. | |
| virtual void | openVirtualFile (const DtString &actualFileName, const DtString &desiredName) |
| Open an actual file name, under a desired name. | |
| virtual void | configurePipeline () |
| Configure pipeline for playback from file to simulation. | |
| virtual bool | isFileSaved () const |
| Get whether the file is currently saved. | |
| virtual bool | isFileOpen () const |
| Get whether a file is opened. | |
| virtual bool | isPlaying () const |
| Get whether playback is started. | |
| virtual bool | isStopped () const |
| Get whether playback is stopped. | |
| virtual bool | isPaused () const |
| Get whether playback is paused. | |
| virtual bool | isFileIncomplete () const |
| Get whether a file is opened but incomplete. | |
| virtual double | playbackSpeed () const |
| Get the playback speed. | |
| virtual bool | skippingPlayback () const |
| Get the skipping playback flag. | |
| virtual double | skippingPlaybackThreshold () const |
| Get the skipping playback threshold. | |
| virtual DtAbsoluteTime | currentTime () const |
| Get the current time of playback. | |
| virtual DtAbsoluteTime | startTime () const |
| Get the current start time of playback. | |
| virtual DtAbsoluteTime | stopTime () const |
| Get the stop time of the loaded file. | |
| virtual DtAbsoluteTime | firstMessageTime () const |
| Get the first time of the loaded file. | |
| virtual DtAbsoluteTime | lastTime () const |
| Get the last time of the loaded file. | |
| virtual const DtString & | currentFilename () const |
| Get the current name of the actual file being used. | |
| virtual const DtString & | savedFilename () const |
| Get the name of the file which has been saved. | |
| virtual bool | loopAtEnd () const |
| Get whether the logger will loop at the end of the tape. | |
| virtual bool | playOnLoad () const |
| Get whether the file will play after it is loaded. | |
| virtual bool | fileFormatCurrent () const |
| Get whether the current file format is the latest format. | |
| virtual bool | backupOnSave () const |
| Get whether to backup on save. | |
| virtual DtLgrEntityTracker * | entityTracker () const |
| Get the current file's entity tracker, or null if there is none. | |
| virtual void | addTemporaryTrackedEntity (const DtString &name) |
| Adds a temporary entity to the entity tracker. | |
Public Member Functions inherited from MAKLogger::DtLgrCommandHandler | |
| DtLgrCommandHandler (const DtString &name, DtRuntimeCommandFactory *, DtCommandDispatcherSP) | |
| Constructor which provides the name, the runtime factory, and the dispatcher which receives and transmits commands. | |
| virtual | ~DtLgrCommandHandler () |
| DTOR. | |
| void | lock () |
| Locks the Command Handler. | |
| void | unlock () |
| Unlocks the Command Handler. | |
| DtCommandDispatcherSP | dispatcher () |
| Get the dispatcher the command handler is connected to. | |
| virtual const DtString & | driverName () const |
| Get the name of the driver. | |
| virtual const DtString & | driverInfo () |
| Get the name of the driver. | |
| virtual void | processCommand (const DtCommand &command) |
| Process a specific command. | |
Protected Member Functions | |
| bool | prepareDriverForOpen () |
| Prepare driver for open file. | |
| virtual void | tickStopPlayback () |
| virtual void | tickNormalPlayback () |
| virtual void | tickPausePlayback () |
| virtual void | tickSkippingPlayback () |
| virtual bool | doSwapInFile (const DtString &filename, bool selectAll) |
| Implement swap in temp file to use as unsaved file. | |
| virtual bool | doPlay () |
| virtual bool | doStop () |
| virtual bool | doPause () |
| virtual bool | doUnpause () |
| virtual bool | doPlaybackSpeedChange (double speed) |
| virtual void | doTimeJump (const DtAbsoluteTime &time) |
| virtual void | doSkippingPlay (const DtAbsoluteTime &time) |
| DtResponse | openFile (const DtCommand &command) |
| openFile command | |
| virtual bool | doOpenFile (DtString filename) |
| Implementation of opening a file. | |
| void | sendFileInputChangedResponses (const DtString &filename) |
| Send the necessary open file responses. | |
| DtResponse | closeFile (const DtCommand &command) |
| closeFile command | |
| DtResponse | saveFile (const DtCommand &command) |
| Handle the safeFile command. | |
| DtResponse | saveFileAs (const DtCommand &command) |
| Handle the safe file as command. | |
| DtResponse | revertFile (const DtCommand &command) |
| Handle the revert command. | |
| DtResponse | play (const DtCommand &command) |
| play command | |
| DtResponse | playPause (const DtCommand &command) |
| playPause command | |
| DtResponse | stop (const DtCommand &command) |
| stop command | |
| DtResponse | restart (const DtCommand &command) |
| restart command | |
| DtResponse | setStartStopTimes (const DtCommand &command) |
| setStartStopTimes command | |
| DtResponse | setPlaybackSpeed (const DtCommand &command) |
| setPlaybackSpeed command | |
| DtResponse | setCurrentTime (const DtCommand &command) |
| setCurrentTime command | |
| DtResponse | skipTime (const DtCommand &command) |
| SkipTime command. | |
| DtResponse | pause (const DtCommand &command) |
| pause command | |
| DtResponse | unpause (const DtCommand &command) |
| unpause command | |
| DtResponse | setLoopAtEnd (const DtCommand &command) |
| setLoopAtEnd command. | |
| DtResponse | setPlayOnLoad (const DtCommand &command) |
| setPlayOnLoad command. | |
| DtResponse | setBackupOnSave (const DtCommand &command) |
| setBackupOnSave command. | |
| DtResponse | setSkippingPlaybackThreshold (const DtCommand &command) |
| setSkippingPlayback command | |
| DtResponse | requestFileList (const DtCommand &command) |
| requestFileList command | |
| virtual bool | openFileInput (const DtString &filename, DtString &failureReason) |
| Open the file input. | |
| virtual void | closeFileInput (bool clearHistory) |
| Close the actual file history. | |
| virtual void | setFileHistoryCount (int count) |
| Set the file history count. | |
| virtual void | addFileToHistory (const DtString &filename) |
| Adds a file to the history, if necessary files are removed and deleted. | |
| virtual void | clearFileHistory () |
| Clears the file history and deletes each file. | |
Protected Member Functions inherited from MAKLogger::DtLgrCommandHandler | |
| void | addCommandHandler (const DtCommandDefinition &commandDef, DtCommandFunctorSP commandFunctor) |
| Add a commandHandler, this should not be virtual as it is called in constructors. | |
| void | removeCommandHandler (const DtCommandDefinition &commandDef) |
| Remove a commandHandler, this is typically not called but necessary for replacing a command handler. | |
| virtual void | sendResponse (DtResponse response) |
| Send a response, for functions that have multiple responses make this call. | |
| virtual void | queueResponse (DtResponse response) |
| Queue a response for future sending. | |
| virtual void | sendQueuedResponses () |
| Sends all queued responses and clears the queue. | |
| virtual void | emptyResponseQueue () |
| Empty the response queue (deleting any unsent responses). | |
Protected Attributes | |
| std::deque< DtString > | myFileStack |
| DtString | mySavedFileName |
| DtLgrFileInput * | myFileInput |
| DtLgrSystemDriver * | myDriver |
| DtMessagePipeline * | myPipeline |
| bool | myPausedFlag |
| bool | myLoopAtEnd |
| bool | myPlayOnLoadFlag |
| double | myTimeScale |
| DtLgrClock * | myPlaybackClock |
| DtAbsoluteTime | myStartTime |
| DtAbsoluteTime | myStopTime |
| DtAbsoluteTime | myCurrentTime |
| bool | myPlayingFlag |
| bool | myBackupFlag |
| bool | mySkippingPlayback |
| double | mySkippingPlaybackThreshold |
| DtAbsoluteTime | myNextSkipTime |
| unsigned int | myFileHistoryCount |
Protected Attributes inherited from MAKLogger::DtLgrCommandHandler | |
| DtRuntimeCommandFactory * | myRuntimeCommandFactory |
| DtLgrCommandHandlerMap | myCommandMap |
| DtCommandDispatcherSP | myDispatcher |
| DtResponseQueue | myResponseQueue |
| DtString | myName |
| DtString | myInfo |
| DtMutex | myMutex |
Static Protected Attributes | |
| static const unsigned short | theDomain = DtLgrCommandType::Domain_Player |
| static const unsigned short | theProtocol = DtLgrCommandType::Protocol_None |
| static const int | theDefaultFileHistoryCount = 1 |
Additional Inherited Members | |
Protected Types inherited from MAKLogger::DtLgrCommandHandler | |
| typedef DtLgrCommandHandler *(* | DriverCreator )(DtCommandDispatcherSP) |
| typedef std::map < DtLgrCommandId, DtCommandFunctorSP > | DtLgrCommandHandlerMap |
| typedef std::map< DtString, DtLgrCommandId > | DtLgrCommandNameMap |
| typedef std::list< DtResponse > | DtResponseQueue |
The class responsible for controlling the logger playback functionality.
The DtLgrPlaybackDriver is not thread safe. For thread- safe access use the DtLgrPlaybackInterface class.
|
virtual |
|
protectedvirtual |
Adds a file to the history, if necessary files are removed and deleted.
|
virtual |
Adds a temporary entity to the entity tracker.
|
virtual |
Get whether to backup on save.
|
protectedvirtual |
Clears the file history and deletes each file.
|
protected |
closeFile command
|
protectedvirtual |
Close the actual file history.
|
virtual |
Configure pipeline for playback from file to simulation.
|
virtual |
Get the current name of the actual file being used.
|
virtual |
Get the current time of playback.
|
protectedvirtual |
Implementation of opening a file.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Implement swap in temp file to use as unsaved file.
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
Get the current file's entity tracker, or null if there is none.
|
virtual |
Get whether the current file format is the latest format.
|
virtual |
Get the first time of the loaded file.
|
virtual |
Attempt to acquire the pipeline.
| true | The pipeline has been acquired. |
| false | The pipeline has not been acquired. |
Implements MAKLogger::DtLgrCommandHandler.
|
virtual |
Does this object own the pipeline.
| true | The pipeline is owned. |
| false | The pipeline is not owned. |
Implements MAKLogger::DtLgrCommandHandler.
|
virtual |
Get whether a file is opened but incomplete.
|
virtual |
Get whether a file is opened.
|
virtual |
Get whether the file is currently saved.
|
virtual |
Get whether playback is paused.
|
virtual |
Get whether playback is started.
|
virtual |
Get whether playback is stopped.
|
virtual |
Get the last time of the loaded file.
|
virtual |
Get whether the logger will loop at the end of the tape.
|
protected |
openFile command
|
protectedvirtual |
Open the file input.
|
virtual |
Open an actual file name, under a desired name.
|
protected |
pause command
|
protected |
play command
|
virtual |
Get the playback speed.
|
virtual |
Get whether the file will play after it is loaded.
|
protected |
playPause command
|
protected |
Prepare driver for open file.
|
virtual |
Attempt to release the pipeline.
This function is called when the pipeline has been requested by a different driver. If the driver can't release the pipeline it will return false. By default this method simply succeeds. If the driver should override this function if it wishes to deny the request.
| true | The pipeline has been released. |
| false | The pipeline has not been released. |
Implements MAKLogger::DtLgrCommandHandler.
|
protected |
requestFileList command
|
protected |
restart command
|
protected |
Handle the revert command.
|
virtual |
Get the name of the file which has been saved.
This is typically what is used.
|
protected |
Handle the safeFile command.
|
protected |
Handle the safe file as command.
|
protected |
Send the necessary open file responses.
|
protected |
setBackupOnSave command.
|
protected |
setCurrentTime command
|
protectedvirtual |
Set the file history count.
|
protected |
setLoopAtEnd command.
|
protected |
setPlaybackSpeed command
|
protected |
setPlayOnLoad command.
|
protected |
setSkippingPlayback command
|
protected |
setStartStopTimes command
|
virtual |
Set the lgrPlayback driver to use an unsaved file (while still using the filename of the original.
|
virtual |
Get the skipping playback flag.
|
virtual |
Get the skipping playback threshold.
|
protected |
SkipTime command.
|
virtual |
Get the current start time of playback.
|
protected |
stop command
|
virtual |
Get the stop time of the loaded file.
|
virtual |
Tick the driver, cause it to do anything on a regular basis.
Implements MAKLogger::DtLgrCommandHandler.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
unpause command
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |