MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes
MAKLogger::DtLgrPlaybackDriver Class Reference

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. More...
 
virtual bool getPipeline ()
 Attempt to acquire the pipeline. More...
 
virtual bool hasPipeline () const
 Does this object own the pipeline. More...
 
virtual bool releasePipeline ()
 Attempt to release the pipeline. More...
 
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. More...
 
virtual void openVirtualFile (const DtString &actualFileName, const DtString &desiredName, bool checkMediaFile=false)
 Open an actual file name, under a desired name. More...
 
virtual void configurePipeline ()
 Configure pipeline for playback from file to simulation. More...
 
virtual bool isFileSaved () const
 Get whether the file is currently saved. More...
 
virtual bool isFileOpen () const
 Get whether a file is opened. More...
 
virtual bool isPlaying () const
 Get whether playback is started. More...
 
virtual bool isStopped () const
 Get whether playback is stopped. More...
 
virtual bool isPaused () const
 Get whether playback is paused. More...
 
virtual bool isFileIncomplete () const
 Get whether a file is opened but incomplete. More...
 
virtual double playbackSpeed () const
 Get the playback speed. More...
 
virtual bool skippingPlayback () const
 Get the skipping playback flag. More...
 
virtual double skippingPlaybackThreshold () const
 Get the skipping playback threshold. More...
 
virtual bool skippingPlaybackInteractions () const
 Get the skipping playback flag. More...
 
virtual DtAbsoluteTime currentTime () const
 Get the current time of playback. More...
 
virtual DtAbsoluteTime startTime () const
 Get the current start time of playback. More...
 
virtual DtAbsoluteTime stopTime () const
 Get the stop time of the loaded file. More...
 
virtual DtAbsoluteTime firstMessageTime () const
 Get the first time of the loaded file. More...
 
virtual DtAbsoluteTime lastTime () const
 Get the last time of the loaded file. More...
 
virtual const DtString & currentFilename () const
 Get the current name of the actual file being used. More...
 
virtual const DtString & savedFilename () const
 Get the name of the file which has been saved. More...
 
virtual bool loopAtEnd () const
 Get whether the logger will loop at the end of the tape. More...
 
virtual bool playOnLoad () const
 Get whether the file will play after it is loaded. More...
 
virtual bool fileFormatCurrent () const
 Get whether the current file format is the latest format. More...
 
virtual int fileVersion () const
 Get the version number for the current file format. More...
 
virtual bool backupOnSave () const
 Get whether to backup on save. More...
 
virtual DtLgrEntityTrackerentityTracker () const
 Get the current file's entity tracker, or null if there is none. More...
 
virtual void addTemporaryTrackedEntity (const DtString &name)
 Adds a temporary entity to the entity tracker. More...
 
virtual double packetViewInterval () const
 Get packetViewInterval. More...
 
virtual double followingInterval () const
 Get followingInterval. More...
 
virtual double followingExportInterval () const
 Get followingExportInterval. More...
 
virtual const DtString & streamPipeline () const
 Get the play media to stream pipelines. More...
 
virtual const DtString & windowPipeline () const
 Get the play media in window pipelines. More...
 
virtual const DtString & streamConfiguration () const
 Get the play media to stream pipeline configurations. More...
 
virtual const DtString & windowConfiguration () const
 Get the play media in window pipeline configurations. More...
 
virtual double mediaSpeedFactor () const
 Get the media playback speed factor. More...
 
virtual DtRelativeTime mediaOffset () const
 Get the media playback offset. More...
 
virtual bool mediaPlayInWindowByDefault () const
 Get if I play in a window by default. More...
 
virtual bool mediaPlayToStreamByDefault () const
 Get if I play in stream by default. More...
 
virtual const DtString & mediaPlayStreamHost () const
 Get the host to stream a video to. More...
 
virtual int mediaPlayStreamPort () const
 Get the port to stream a video to. More...
 
virtual void stopAllThreads ()
 Stop all running threads. More...
 
virtual void stopThread (DtLgrCommandThread *commandThread)
 Stop a thread and deallocate it's resources. More...
 
- 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. More...
 
virtual ~DtLgrCommandHandler ()
 DTOR. More...
 
void lock ()
 Locks the Command Handler. More...
 
void unlock ()
 Unlocks the Command Handler. More...
 
DtCommandDispatcherSP dispatcher ()
 Get the dispatcher the command handler is connected to. More...
 
virtual const DtString & driverName () const
 Get the name of the driver. More...
 
virtual const DtString & driverInfo ()
 Get the name of the driver. More...
 
virtual void processCommand (const DtCommand &command)
 Process a specific command. More...
 
virtual bool spawnThread (DtLgrCommandThread *commandThread)
 Spawn a new thread. More...
 

Public Attributes

bool myDoJumpSync
 determines whether we need to sync video and playback for a time jump More...
 

Protected Types

typedef std::set
< DtLgrPlaybackMediaToWindow * > 
PlaybackMediaToWindowSet
 
typedef std::set
< DtLgrPlaybackMediaToStream * > 
PlaybackMediaToStreamSet
 
- 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< DtResponseDtResponseQueue
 
typedef std::map
< DtLgrCommandThread
*, DtThread * > 
CommandThreadMap
 A set of running command threads. More...
 

Protected Member Functions

bool prepareDriverForOpen ()
 Prepare driver for open file. More...
 
virtual bool doSwapInFile (const DtString &filename, bool selectAll)
 Implement swap in temp file to use as unsaved file. More...
 
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)
 
virtual bool doRecoverLastPacket ()
 
virtual void buildMediaPipelines (const DtString &filename)
 Build the media pipeline configurations for the given logger tape. More...
 
virtual void createMediaPipelineOperations (const DtString &filename)
 Create the media pipeline operations for the given logger tape. More...
 
virtual bool doOpenFile (DtString filename, bool checkMediaFile=false)
 Implementation of opening a file. More...
 
virtual bool doCloseFile (bool resetTimeStatus)
 Implementation of closing a file Do not reset time status if this close is a precursor to opening another file (doing so causes a race condition). More...
 
void sendFileInputChangedResponses (const DtString &filename)
 Send the necessary open file responses. More...
 
virtual bool writeDescriptionToFile (const DtString &filename, const DtString &description, const bool writeDesc)
 Write the previously set description into the file if the write flag is set to true. More...
 
virtual bool openFileInput (const DtString &filename, DtString &failureReason)
 Open the file input. More...
 
virtual void closeFileInput (bool clearHistory)
 Close the actual file history. More...
 
virtual void setFileHistoryCount (int count)
 Set the file history count. More...
 
virtual void addFileToHistory (const DtString &filename)
 Adds a file to the history, if necessary files are removed and deleted. More...
 
virtual void clearFileHistory ()
 Clears the file history and deletes each file. More...
 
virtual void createWindowMediaPipelineOperation (const DtString &pipelinConfiguration, const DtString &tapeFilePath)
 Using the given pipeline configuration and logger tape file path, create the playback to window media pipeline operations. More...
 
virtual void createStreamMediaPipelineOperation (const DtString &pipelinConfiguration, const DtString &tapeFilePath)
 Using the given pipeline configuration and logger tape file path, create the playback to stream media pipeline operations. More...
 
virtual void startMediaThreads ()
 Start the media pipeline operation threads. More...
 
virtual void stopMediaThreads ()
 Stop the media pipeline operation threads. More...
 
virtual void tickStopPlayback ()
 Various states of ticking playback. More...
 
virtual void tickNormalPlayback ()
 Various states of ticking playback. More...
 
virtual void tickPausePlayback ()
 Various states of ticking playback. More...
 
virtual void tickSkippingPlayback ()
 Various states of ticking playback. More...
 
virtual void tickExtendedStopPlayback ()
 Various states of ticking playback. More...
 
DtResponse openFile (const DtCommand &command)
 Command Handler. More...
 
DtResponse closeFile (const DtCommand &command)
 Command Handler. More...
 
DtResponse saveFile (const DtCommand &command)
 Command Handler. More...
 
DtResponse saveFileAs (const DtCommand &command)
 Command Handler. More...
 
DtResponse revertFile (const DtCommand &command)
 Command Handler. More...
 
DtResponse play (const DtCommand &command)
 Command Handler. More...
 
DtResponse playPause (const DtCommand &command)
 Command Handler. More...
 
DtResponse stop (const DtCommand &command)
 Command Handler. More...
 
DtResponse restart (const DtCommand &command)
 Command Handler. More...
 
DtResponse setStartStopTimes (const DtCommand &command)
 Command Handler. More...
 
DtResponse setPlaybackSpeed (const DtCommand &command)
 Command Handler. More...
 
DtResponse setCurrentTime (const DtCommand &command)
 Command Handler. More...
 
DtResponse skipTime (const DtCommand &command)
 Command Handler. More...
 
DtResponse pause (const DtCommand &command)
 Command Handler. More...
 
DtResponse unpause (const DtCommand &command)
 Command Handler. More...
 
DtResponse setLoopAtEnd (const DtCommand &command)
 Command Handler. More...
 
DtResponse setPlayOnLoad (const DtCommand &command)
 Command Handler. More...
 
DtResponse setBackupOnSave (const DtCommand &command)
 Command Handler. More...
 
DtResponse setSkippingPlaybackThreshold (const DtCommand &command)
 Command Handler. More...
 
DtResponse setSkippingPlaybackInteractions (const DtCommand &command)
 Command Handler. More...
 
DtResponse setPacketViewInterval (const DtCommand &command)
 Command Handler. More...
 
DtResponse setFollowingInterval (const DtCommand &command)
 Command Handler. More...
 
DtResponse setFollowingExportInterval (const DtCommand &command)
 Command Handler. More...
 
DtResponse requestFileList (const DtCommand &command)
 Command Handler. More...
 
DtResponse recoverLastPacket (const DtCommand &command)
 Command Handler. More...
 
DtResponse updateDescription (const DtCommand &command)
 Command Handler. More...
 
DtResponse setMediaPlaybackAdjustments (const DtCommand &command)
 Command Handler. More...
 
DtResponse setMediaWindowHandle (const DtCommand &command)
 Command Handler. More...
 
DtResponse setMediaPlayToStreamConfiguration (const DtCommand &command)
 Command Handler. More...
 
DtResponse setMediaPlayInWindowConfiguration (const DtCommand &command)
 Command Handler. More...
 
DtResponse setPlayToStreamPipeline (const DtCommand &command)
 Command Handler. More...
 
DtResponse setPlayInWindowPipeline (const DtCommand &command)
 Command Handler. More...
 
DtResponse setMediaPlayByDefault (const DtCommand &command)
 Command Handler. More...
 
DtResponse setMediaPlayToStreamParameters (const DtCommand &command)
 Command Handler. More...
 
DtResponse exposePlaybackMedia (const DtCommand &command)
 Command Handler. More...
 
- 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. More...
 
void removeCommandHandler (const DtCommandDefinition &commandDef)
 Remove a commandHandler, this is typically not called but necessary for replacing a command handler. More...
 
virtual void sendResponse (DtResponse response)
 Send a response, for functions that have multiple responses make this call. More...
 
virtual void queueResponse (DtResponse response)
 Queue a response for future sending. More...
 
virtual void sendQueuedResponses ()
 Sends all queued responses and clears the queue. More...
 
virtual void emptyResponseQueue ()
 Empty the response queue (deleting any unsent responses). More...
 
DtResponse finishThread (const DtCommand &command)
 Finish the thread. More...
 

Protected Attributes

std::deque< DtString > myFileStack
 
DtString mySavedFileName
 
DtLgrFileInputmyFileInput
 
DtLgrSystemDrivermyDriver
 
DtMessagePipelinemyPipeline
 
bool myPausedFlag
 
bool myLoopAtEnd
 
bool myPlayOnLoadFlag
 
int mySendPlayCommandAfterTick
 
bool myWindowExposed
 
double myTimeScale
 
DtLgrTimeSteppedClockmyPlaybackClock
 
DtAbsoluteTime myStartTime
 
DtAbsoluteTime myStopTime
 
DtAbsoluteTime myCurrentTime
 
bool myPlayingFlag
 
bool myBackupFlag
 
bool mySkippingPlayback
 
double mySkippingPlaybackThreshold
 
bool mySkippingPlaybackInteractions
 
DtAbsoluteTime myNextSkipTime
 
bool myTimeHasExtended
 
DtTime myExtendedStopTimeout
 
double myPacketViewInterval
 
double myFollowingInterval
 
double myFollowingExportInterval
 
const DtAbsoluteTime myZeroTime
 
DtString myDescription
 
bool myUpdateDescription
 
DtLgrMediaPipelineBuildermyWindowPipelineBuilder
 
DtLgrMediaPipelineBuildermyStreamPipelineBuilder
 
DtString myPlayToStreamConfiguration
 
DtString myPlayInWindowConfiguration
 
DtString myPlayToStreamPipeline
 
DtString myPlayInWindowPipeline
 
PlaybackMediaToWindowSet myPlaybackToWindowPipelines
 
PlaybackMediaToStreamSet myPlaybackToStreamPipelines
 
DtFilename myPlayInWindowFile
 
DtFilename myPlayToStreamFile
 
DtRelativeTime myMediaOffset
 
double myMediaSpeedFactor
 
bool myMediaPlayInWindowByDefault
 
bool myMediaPlayToStreamByDefault
 
DtString myMediaPlayHost
 
int myMediaPlayPort
 
unsigned int myFileHistoryCount
 
- Protected Attributes inherited from MAKLogger::DtLgrCommandHandler
DtRuntimeCommandFactorymyRuntimeCommandFactory
 
DtLgrCommandHandlerMap myCommandMap
 
DtCommandDispatcherSP myDispatcher
 
DtResponseQueue myResponseQueue
 
DtString myName
 
DtString myInfo
 
DtMutex myMutex
 
CommandThreadMap myRunningCommandThreads
 Running command threads. More...
 

Static Protected Attributes

static const unsigned short theDomain = DtLgrCommandType::Domain_Player
 
static const unsigned short theProtocol = DtLgrCommandType::Protocol_None
 
static const int theDefaultFileHistoryCount = 1
 

Detailed Description

The class responsible for controlling the logger playback functionality.

The DtLgrPlaybackDriver is not thread safe. For thread- safe access use the DtLgrPlaybackInterface class.

Member Typedef Documentation

typedef std::set<DtLgrPlaybackMediaToStream*> MAKLogger::DtLgrPlaybackDriver::PlaybackMediaToStreamSet
protected
typedef std::set<DtLgrPlaybackMediaToWindow*> MAKLogger::DtLgrPlaybackDriver::PlaybackMediaToWindowSet
protected

Constructor & Destructor Documentation

virtual MAKLogger::DtLgrPlaybackDriver::~DtLgrPlaybackDriver ( )
virtual

Member Function Documentation

virtual void MAKLogger::DtLgrPlaybackDriver::addFileToHistory ( const DtString &  filename)
protectedvirtual

Adds a file to the history, if necessary files are removed and deleted.

virtual void MAKLogger::DtLgrPlaybackDriver::addTemporaryTrackedEntity ( const DtString &  name)
virtual

Adds a temporary entity to the entity tracker.

virtual bool MAKLogger::DtLgrPlaybackDriver::backupOnSave ( ) const
virtual

Get whether to backup on save.

virtual void MAKLogger::DtLgrPlaybackDriver::buildMediaPipelines ( const DtString &  filename)
protectedvirtual

Build the media pipeline configurations for the given logger tape.

virtual void MAKLogger::DtLgrPlaybackDriver::clearFileHistory ( )
protectedvirtual

Clears the file history and deletes each file.

DtResponse MAKLogger::DtLgrPlaybackDriver::closeFile ( const DtCommand command)
protected

Command Handler.

virtual void MAKLogger::DtLgrPlaybackDriver::closeFileInput ( bool  clearHistory)
protectedvirtual

Close the actual file history.

virtual void MAKLogger::DtLgrPlaybackDriver::configurePipeline ( )
virtual

Configure pipeline for playback from file to simulation.

virtual void MAKLogger::DtLgrPlaybackDriver::createMediaPipelineOperations ( const DtString &  filename)
protectedvirtual

Create the media pipeline operations for the given logger tape.

virtual void MAKLogger::DtLgrPlaybackDriver::createStreamMediaPipelineOperation ( const DtString &  pipelinConfiguration,
const DtString &  tapeFilePath 
)
protectedvirtual

Using the given pipeline configuration and logger tape file path, create the playback to stream media pipeline operations.

virtual void MAKLogger::DtLgrPlaybackDriver::createWindowMediaPipelineOperation ( const DtString &  pipelinConfiguration,
const DtString &  tapeFilePath 
)
protectedvirtual

Using the given pipeline configuration and logger tape file path, create the playback to window media pipeline operations.

virtual const DtString& MAKLogger::DtLgrPlaybackDriver::currentFilename ( ) const
virtual

Get the current name of the actual file being used.

virtual DtAbsoluteTime MAKLogger::DtLgrPlaybackDriver::currentTime ( ) const
virtual

Get the current time of playback.

virtual bool MAKLogger::DtLgrPlaybackDriver::doCloseFile ( bool  resetTimeStatus)
protectedvirtual

Implementation of closing a file Do not reset time status if this close is a precursor to opening another file (doing so causes a race condition).

virtual bool MAKLogger::DtLgrPlaybackDriver::doOpenFile ( DtString  filename,
bool  checkMediaFile = false 
)
protectedvirtual

Implementation of opening a file.

If indicated open the associated media file.

virtual bool MAKLogger::DtLgrPlaybackDriver::doPause ( )
protectedvirtual
virtual bool MAKLogger::DtLgrPlaybackDriver::doPlay ( )
protectedvirtual
virtual bool MAKLogger::DtLgrPlaybackDriver::doPlaybackSpeedChange ( double  speed)
protectedvirtual
virtual bool MAKLogger::DtLgrPlaybackDriver::doRecoverLastPacket ( )
protectedvirtual
virtual void MAKLogger::DtLgrPlaybackDriver::doSkippingPlay ( const DtAbsoluteTime time)
protectedvirtual
virtual bool MAKLogger::DtLgrPlaybackDriver::doStop ( )
protectedvirtual
virtual bool MAKLogger::DtLgrPlaybackDriver::doSwapInFile ( const DtString &  filename,
bool  selectAll 
)
protectedvirtual

Implement swap in temp file to use as unsaved file.

virtual void MAKLogger::DtLgrPlaybackDriver::doTimeJump ( const DtAbsoluteTime time)
protectedvirtual
virtual bool MAKLogger::DtLgrPlaybackDriver::doUnpause ( )
protectedvirtual
virtual DtLgrEntityTracker* MAKLogger::DtLgrPlaybackDriver::entityTracker ( ) const
virtual

Get the current file's entity tracker, or null if there is none.

DtResponse MAKLogger::DtLgrPlaybackDriver::exposePlaybackMedia ( const DtCommand command)
protected

Command Handler.

virtual bool MAKLogger::DtLgrPlaybackDriver::fileFormatCurrent ( ) const
virtual

Get whether the current file format is the latest format.

virtual int MAKLogger::DtLgrPlaybackDriver::fileVersion ( ) const
virtual

Get the version number for the current file format.

virtual DtAbsoluteTime MAKLogger::DtLgrPlaybackDriver::firstMessageTime ( ) const
virtual

Get the first time of the loaded file.

virtual double MAKLogger::DtLgrPlaybackDriver::followingExportInterval ( ) const
virtual

Get followingExportInterval.

virtual double MAKLogger::DtLgrPlaybackDriver::followingInterval ( ) const
virtual

Get followingInterval.

virtual bool MAKLogger::DtLgrPlaybackDriver::getPipeline ( )
virtual

Attempt to acquire the pipeline.

Return values
trueThe pipeline has been acquired.
falseThe pipeline has not been acquired.

Implements MAKLogger::DtLgrCommandHandler.

virtual bool MAKLogger::DtLgrPlaybackDriver::hasPipeline ( ) const
virtual

Does this object own the pipeline.

Return values
trueThe pipeline is owned.
falseThe pipeline is not owned.

Implements MAKLogger::DtLgrCommandHandler.

virtual bool MAKLogger::DtLgrPlaybackDriver::isFileIncomplete ( ) const
virtual

Get whether a file is opened but incomplete.

virtual bool MAKLogger::DtLgrPlaybackDriver::isFileOpen ( ) const
virtual

Get whether a file is opened.

virtual bool MAKLogger::DtLgrPlaybackDriver::isFileSaved ( ) const
virtual

Get whether the file is currently saved.

virtual bool MAKLogger::DtLgrPlaybackDriver::isPaused ( ) const
virtual

Get whether playback is paused.

virtual bool MAKLogger::DtLgrPlaybackDriver::isPlaying ( ) const
virtual

Get whether playback is started.

virtual bool MAKLogger::DtLgrPlaybackDriver::isStopped ( ) const
virtual

Get whether playback is stopped.

virtual DtAbsoluteTime MAKLogger::DtLgrPlaybackDriver::lastTime ( ) const
virtual

Get the last time of the loaded file.

virtual bool MAKLogger::DtLgrPlaybackDriver::loopAtEnd ( ) const
virtual

Get whether the logger will loop at the end of the tape.

virtual DtRelativeTime MAKLogger::DtLgrPlaybackDriver::mediaOffset ( ) const
virtual

Get the media playback offset.

virtual bool MAKLogger::DtLgrPlaybackDriver::mediaPlayInWindowByDefault ( ) const
virtual

Get if I play in a window by default.

virtual const DtString& MAKLogger::DtLgrPlaybackDriver::mediaPlayStreamHost ( ) const
virtual

Get the host to stream a video to.

virtual int MAKLogger::DtLgrPlaybackDriver::mediaPlayStreamPort ( ) const
virtual

Get the port to stream a video to.

virtual bool MAKLogger::DtLgrPlaybackDriver::mediaPlayToStreamByDefault ( ) const
virtual

Get if I play in stream by default.

virtual double MAKLogger::DtLgrPlaybackDriver::mediaSpeedFactor ( ) const
virtual

Get the media playback speed factor.

DtResponse MAKLogger::DtLgrPlaybackDriver::openFile ( const DtCommand command)
protected

Command Handler.

virtual bool MAKLogger::DtLgrPlaybackDriver::openFileInput ( const DtString &  filename,
DtString &  failureReason 
)
protectedvirtual

Open the file input.

virtual void MAKLogger::DtLgrPlaybackDriver::openVirtualFile ( const DtString &  actualFileName,
const DtString &  desiredName,
bool  checkMediaFile = false 
)
virtual

Open an actual file name, under a desired name.

If indicated open the associated media file.

virtual double MAKLogger::DtLgrPlaybackDriver::packetViewInterval ( ) const
virtual

Get packetViewInterval.

DtResponse MAKLogger::DtLgrPlaybackDriver::pause ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::play ( const DtCommand command)
protected

Command Handler.

virtual double MAKLogger::DtLgrPlaybackDriver::playbackSpeed ( ) const
virtual

Get the playback speed.

virtual bool MAKLogger::DtLgrPlaybackDriver::playOnLoad ( ) const
virtual

Get whether the file will play after it is loaded.

DtResponse MAKLogger::DtLgrPlaybackDriver::playPause ( const DtCommand command)
protected

Command Handler.

bool MAKLogger::DtLgrPlaybackDriver::prepareDriverForOpen ( )
protected

Prepare driver for open file.

DtResponse MAKLogger::DtLgrPlaybackDriver::recoverLastPacket ( const DtCommand command)
protected

Command Handler.

virtual bool MAKLogger::DtLgrPlaybackDriver::releasePipeline ( )
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.

Return values
trueThe pipeline has been released.
falseThe pipeline has not been released.

Implements MAKLogger::DtLgrCommandHandler.

DtResponse MAKLogger::DtLgrPlaybackDriver::requestFileList ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::restart ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::revertFile ( const DtCommand command)
protected

Command Handler.

virtual const DtString& MAKLogger::DtLgrPlaybackDriver::savedFilename ( ) const
virtual

Get the name of the file which has been saved.

This is typically what is used.

DtResponse MAKLogger::DtLgrPlaybackDriver::saveFile ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::saveFileAs ( const DtCommand command)
protected

Command Handler.

void MAKLogger::DtLgrPlaybackDriver::sendFileInputChangedResponses ( const DtString &  filename)
protected

Send the necessary open file responses.

DtResponse MAKLogger::DtLgrPlaybackDriver::setBackupOnSave ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::setCurrentTime ( const DtCommand command)
protected

Command Handler.

virtual void MAKLogger::DtLgrPlaybackDriver::setFileHistoryCount ( int  count)
protectedvirtual

Set the file history count.

DtResponse MAKLogger::DtLgrPlaybackDriver::setFollowingExportInterval ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::setFollowingInterval ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::setLoopAtEnd ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::setMediaPlaybackAdjustments ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::setMediaPlayByDefault ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::setMediaPlayInWindowConfiguration ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::setMediaPlayToStreamConfiguration ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::setMediaPlayToStreamParameters ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::setMediaWindowHandle ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::setPacketViewInterval ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::setPlaybackSpeed ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::setPlayInWindowPipeline ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::setPlayOnLoad ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::setPlayToStreamPipeline ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::setSkippingPlaybackInteractions ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::setSkippingPlaybackThreshold ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::setStartStopTimes ( const DtCommand command)
protected

Command Handler.

virtual void MAKLogger::DtLgrPlaybackDriver::setUnsavedFile ( const DtString &  filename,
bool  selectAll 
)
virtual

Set the lgrPlayback driver to use an unsaved file (while still using the filename of the original.

virtual bool MAKLogger::DtLgrPlaybackDriver::skippingPlayback ( ) const
virtual

Get the skipping playback flag.

virtual bool MAKLogger::DtLgrPlaybackDriver::skippingPlaybackInteractions ( ) const
virtual

Get the skipping playback flag.

virtual double MAKLogger::DtLgrPlaybackDriver::skippingPlaybackThreshold ( ) const
virtual

Get the skipping playback threshold.

DtResponse MAKLogger::DtLgrPlaybackDriver::skipTime ( const DtCommand command)
protected

Command Handler.

virtual void MAKLogger::DtLgrPlaybackDriver::startMediaThreads ( )
protectedvirtual

Start the media pipeline operation threads.

virtual DtAbsoluteTime MAKLogger::DtLgrPlaybackDriver::startTime ( ) const
virtual

Get the current start time of playback.

DtResponse MAKLogger::DtLgrPlaybackDriver::stop ( const DtCommand command)
protected

Command Handler.

virtual void MAKLogger::DtLgrPlaybackDriver::stopAllThreads ( )
virtual

Stop all running threads.

Reimplemented from MAKLogger::DtLgrCommandHandler.

virtual void MAKLogger::DtLgrPlaybackDriver::stopMediaThreads ( )
protectedvirtual

Stop the media pipeline operation threads.

virtual void MAKLogger::DtLgrPlaybackDriver::stopThread ( DtLgrCommandThread commandThread)
virtual

Stop a thread and deallocate it's resources.

Reimplemented from MAKLogger::DtLgrCommandHandler.

virtual DtAbsoluteTime MAKLogger::DtLgrPlaybackDriver::stopTime ( ) const
virtual

Get the stop time of the loaded file.

virtual const DtString& MAKLogger::DtLgrPlaybackDriver::streamConfiguration ( ) const
virtual

Get the play media to stream pipeline configurations.

virtual const DtString& MAKLogger::DtLgrPlaybackDriver::streamPipeline ( ) const
virtual

Get the play media to stream pipelines.

virtual void MAKLogger::DtLgrPlaybackDriver::tick ( )
virtual

Tick the driver, cause it to do anything on a regular basis.

Implements MAKLogger::DtLgrCommandHandler.

virtual void MAKLogger::DtLgrPlaybackDriver::tickExtendedStopPlayback ( )
protectedvirtual

Various states of ticking playback.

virtual void MAKLogger::DtLgrPlaybackDriver::tickNormalPlayback ( )
protectedvirtual

Various states of ticking playback.

virtual void MAKLogger::DtLgrPlaybackDriver::tickPausePlayback ( )
protectedvirtual

Various states of ticking playback.

virtual void MAKLogger::DtLgrPlaybackDriver::tickSkippingPlayback ( )
protectedvirtual

Various states of ticking playback.

virtual void MAKLogger::DtLgrPlaybackDriver::tickStopPlayback ( )
protectedvirtual

Various states of ticking playback.

DtResponse MAKLogger::DtLgrPlaybackDriver::unpause ( const DtCommand command)
protected

Command Handler.

DtResponse MAKLogger::DtLgrPlaybackDriver::updateDescription ( const DtCommand command)
protected

Command Handler.

virtual const DtString& MAKLogger::DtLgrPlaybackDriver::windowConfiguration ( ) const
virtual

Get the play media in window pipeline configurations.

virtual const DtString& MAKLogger::DtLgrPlaybackDriver::windowPipeline ( ) const
virtual

Get the play media in window pipelines.

virtual bool MAKLogger::DtLgrPlaybackDriver::writeDescriptionToFile ( const DtString &  filename,
const DtString &  description,
const bool  writeDesc 
)
protectedvirtual

Write the previously set description into the file if the write flag is set to true.

Member Data Documentation

bool MAKLogger::DtLgrPlaybackDriver::myBackupFlag
protected
DtAbsoluteTime MAKLogger::DtLgrPlaybackDriver::myCurrentTime
protected
DtString MAKLogger::DtLgrPlaybackDriver::myDescription
protected
bool MAKLogger::DtLgrPlaybackDriver::myDoJumpSync

determines whether we need to sync video and playback for a time jump

DtLgrSystemDriver* MAKLogger::DtLgrPlaybackDriver::myDriver
protected
DtTime MAKLogger::DtLgrPlaybackDriver::myExtendedStopTimeout
protected
unsigned int MAKLogger::DtLgrPlaybackDriver::myFileHistoryCount
protected
DtLgrFileInput* MAKLogger::DtLgrPlaybackDriver::myFileInput
protected
std::deque<DtString> MAKLogger::DtLgrPlaybackDriver::myFileStack
protected
double MAKLogger::DtLgrPlaybackDriver::myFollowingExportInterval
protected
double MAKLogger::DtLgrPlaybackDriver::myFollowingInterval
protected
bool MAKLogger::DtLgrPlaybackDriver::myLoopAtEnd
protected
DtRelativeTime MAKLogger::DtLgrPlaybackDriver::myMediaOffset
protected
DtString MAKLogger::DtLgrPlaybackDriver::myMediaPlayHost
protected
bool MAKLogger::DtLgrPlaybackDriver::myMediaPlayInWindowByDefault
protected
int MAKLogger::DtLgrPlaybackDriver::myMediaPlayPort
protected
bool MAKLogger::DtLgrPlaybackDriver::myMediaPlayToStreamByDefault
protected
double MAKLogger::DtLgrPlaybackDriver::myMediaSpeedFactor
protected
DtAbsoluteTime MAKLogger::DtLgrPlaybackDriver::myNextSkipTime
protected
double MAKLogger::DtLgrPlaybackDriver::myPacketViewInterval
protected
bool MAKLogger::DtLgrPlaybackDriver::myPausedFlag
protected
DtMessagePipeline* MAKLogger::DtLgrPlaybackDriver::myPipeline
protected
DtLgrTimeSteppedClock* MAKLogger::DtLgrPlaybackDriver::myPlaybackClock
protected
PlaybackMediaToStreamSet MAKLogger::DtLgrPlaybackDriver::myPlaybackToStreamPipelines
protected
PlaybackMediaToWindowSet MAKLogger::DtLgrPlaybackDriver::myPlaybackToWindowPipelines
protected
bool MAKLogger::DtLgrPlaybackDriver::myPlayingFlag
protected
DtString MAKLogger::DtLgrPlaybackDriver::myPlayInWindowConfiguration
protected
DtFilename MAKLogger::DtLgrPlaybackDriver::myPlayInWindowFile
protected
DtString MAKLogger::DtLgrPlaybackDriver::myPlayInWindowPipeline
protected
bool MAKLogger::DtLgrPlaybackDriver::myPlayOnLoadFlag
protected
DtString MAKLogger::DtLgrPlaybackDriver::myPlayToStreamConfiguration
protected
DtFilename MAKLogger::DtLgrPlaybackDriver::myPlayToStreamFile
protected
DtString MAKLogger::DtLgrPlaybackDriver::myPlayToStreamPipeline
protected
DtString MAKLogger::DtLgrPlaybackDriver::mySavedFileName
protected
int MAKLogger::DtLgrPlaybackDriver::mySendPlayCommandAfterTick
protected
bool MAKLogger::DtLgrPlaybackDriver::mySkippingPlayback
protected
bool MAKLogger::DtLgrPlaybackDriver::mySkippingPlaybackInteractions
protected
double MAKLogger::DtLgrPlaybackDriver::mySkippingPlaybackThreshold
protected
DtAbsoluteTime MAKLogger::DtLgrPlaybackDriver::myStartTime
protected
DtAbsoluteTime MAKLogger::DtLgrPlaybackDriver::myStopTime
protected
DtLgrMediaPipelineBuilder* MAKLogger::DtLgrPlaybackDriver::myStreamPipelineBuilder
protected
bool MAKLogger::DtLgrPlaybackDriver::myTimeHasExtended
protected
double MAKLogger::DtLgrPlaybackDriver::myTimeScale
protected
bool MAKLogger::DtLgrPlaybackDriver::myUpdateDescription
protected
bool MAKLogger::DtLgrPlaybackDriver::myWindowExposed
protected
DtLgrMediaPipelineBuilder* MAKLogger::DtLgrPlaybackDriver::myWindowPipelineBuilder
protected
const DtAbsoluteTime MAKLogger::DtLgrPlaybackDriver::myZeroTime
protected
const int MAKLogger::DtLgrPlaybackDriver::theDefaultFileHistoryCount = 1
staticprotected
const unsigned short MAKLogger::DtLgrPlaybackDriver::theDomain = DtLgrCommandType::Domain_Player
staticprotected
const unsigned short MAKLogger::DtLgrPlaybackDriver::theProtocol = DtLgrCommandType::Protocol_None
staticprotected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)