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 Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions
DtPlaybackInterfacePrinter Class Reference

Prints message for received playback responses. More...

+ Inheritance diagram for DtPlaybackInterfacePrinter:
+ Collaboration diagram for DtPlaybackInterfacePrinter:

Public Member Functions

 DtPlaybackInterfacePrinter (MAKLogger::DtRemoteControlInterface *rci)
 Constructor. More...
 
virtual ~DtPlaybackInterfacePrinter ()
 Destructor. More...
 
Playback Commands
virtual MAKLogger::DtSequenceNumber setPlaybackSpeed (double speed, bool skipping, const DtEntityIdentifier &destination=MAKLogger::DtRemoteControlInterface::wildcardAddress())
 Set playback speed. More...
 
- Public Member Functions inherited from MAKLogger::DtRemoteControlPlaybackInterface
virtual ~DtRemoteControlPlaybackInterface ()
 Destructor. More...
 
virtual void processResponse (const DtLgrResponsePdu &responsePdu)
 Process a playback response PDU. More...
 
virtual void clearReceivedResponseCounts ()
 Clear received responses counts. More...
 
virtual const DtFilename & fileName () const
 Set/Get playback file name. More...
 
virtual void resetFileName (const DtFilename &name)
 Set/Get playback file name. More...
 
virtual const DtAbsoluteTimefirstTime () const
 Set/Get first time. More...
 
virtual void resetFirstTime (const DtAbsoluteTime &time)
 Set/Get first time. More...
 
virtual const DtAbsoluteTimelastTime () const
 Set/Get last time. More...
 
virtual void resetLastTime (const DtAbsoluteTime &time)
 Set/Get last time. More...
 
virtual const DtAbsoluteTimestartTime () const
 Set/Get start time. More...
 
virtual void resetStartTime (const DtAbsoluteTime &time)
 Set/Get start time. More...
 
virtual const DtAbsoluteTimestopTime () const
 Set/Get stop time. More...
 
virtual void resetStopTime (const DtAbsoluteTime &time)
 Set/Get stop time. More...
 
virtual double playbackSpeed () const
 Set/Get the playback speed. More...
 
virtual void resetPlaybackSpeed (double speed)
 Set/Get the playback speed. More...
 
virtual bool isFileOpened () const
 Set/Get is file opened. More...
 
virtual void resetIsFileOpened (bool isOpened)
 Set/Get is file opened. More...
 
virtual bool isFileChanged () const
 Set/Get is file changed. More...
 
virtual void resetIsFileChanged (bool isChanged)
 Set/Get is file changed. More...
 
virtual bool isPlaying () const
 Set/Get is file playing. More...
 
virtual void resetIsPlaying (bool playing)
 Set/Get is file playing. More...
 
virtual bool isPaused () const
 Set/Get is play paused. More...
 
virtual void resetIsPaused (bool paused)
 Set/Get is play paused. More...
 
virtual bool isLoopAtEnd () const
 Set/Get is loop at end enabled. More...
 
virtual void resetIsLoopAtEnd (bool loopAtEnd)
 Set/Get is loop at end enabled. More...
 
virtual bool isPlayOnLoad () const
 Set/Get is play on load enabled. More...
 
virtual void resetIsPlayOnLoad (bool playOnLoad)
 Set/Get is play on load enabled. More...
 
virtual bool isPlaySkipping () const
 Set/Get is play on load enabled. More...
 
virtual void resetIsPlaySkipping (bool skipping)
 Set/Get is play on load enabled. More...
 
virtual DtSequenceNumber openFile (const DtFilename &filename, bool constructFilePathAndName, bool checkMediafile, const DtEntityIdentifier &destination=DtRemoteControlInterface::wildcardAddress())
 Open file for playback. More...
 
virtual DtSequenceNumber closeFile (const DtEntityIdentifier &destination=DtRemoteControlInterface::wildcardAddress())
 Close file Command guard: isFileOpened() More...
 
virtual DtSequenceNumber play (const DtEntityIdentifier &destination=DtRemoteControlInterface::wildcardAddress())
 Play file Command guard: isFileOpened() && (!isPlaying() || isPaused()) More...
 
virtual DtSequenceNumber pause (const DtEntityIdentifier &destination=DtRemoteControlInterface::wildcardAddress())
 Pause Command guard: isPlaying() && !isPaused() More...
 
virtual DtSequenceNumber unPause (const DtEntityIdentifier &destination=DtRemoteControlInterface::wildcardAddress())
 UnPause Command guard: isPlaying() && isPaused() More...
 
virtual DtSequenceNumber stop (const DtEntityIdentifier &destination=DtRemoteControlInterface::wildcardAddress())
 Stop Command guard: isPlaying() More...
 
virtual DtSequenceNumber jumpToStart (const DtEntityIdentifier &destination=DtRemoteControlInterface::wildcardAddress())
 Jump to the start time Command guard: isFileOpened() More...
 
virtual DtSequenceNumber jumpToStop (const DtEntityIdentifier &destination=DtRemoteControlInterface::wildcardAddress())
 Jump to the stop time Command guard: isFileOpened() More...
 
virtual DtSequenceNumber jumpToTime (const DtAbsoluteTime &time, const DtEntityIdentifier &destination=DtRemoteControlInterface::wildcardAddress())
 Jump to the given time Command guard: isFileOpened() More...
 
virtual DtSequenceNumber skipTimeForward (const DtRelativeTime &time, const DtEntityIdentifier &destination=DtRemoteControlInterface::wildcardAddress())
 Skip forward the given amount of time Command guard: isFileOpened() More...
 
virtual DtSequenceNumber skipTimeBackward (const DtRelativeTime &time, const DtEntityIdentifier &destination=DtRemoteControlInterface::wildcardAddress())
 Skip backward the given amount of time Command guard: isFileOpened() More...
 
virtual DtSequenceNumber setStartStopTimes (const DtAbsoluteTime &startTime, const DtAbsoluteTime &stopTime, const DtEntityIdentifier &destination=DtRemoteControlInterface::wildcardAddress())
 Set start/stop times Command guard: isFileOpened() More...
 
virtual DtSequenceNumber setLoopAtEnd (bool enable, const DtEntityIdentifier &destination=DtRemoteControlInterface::wildcardAddress())
 Set loop at end flag. More...
 
virtual DtSequenceNumber setPlayOnLoad (bool enable, const DtEntityIdentifier &destination=DtRemoteControlInterface::wildcardAddress())
 Set play on load flag Command guard: More...
 
virtual DtSequenceNumber requestFileList (bool listDirs, const DtEntityIdentifier &destination=DtRemoteControlInterface::wildcardAddress())
 Request the list of Logger files in the default logger directory Command guard: More...
 
- Public Member Functions inherited from MAKLogger::DtRemoteControlDomainInterface
 DtRemoteControlDomainInterface (DtRemoteControlInterface *remoteControlInterface, int domainId)
 Constructor. More...
 
virtual ~DtRemoteControlDomainInterface ()
 Destructor. More...
 
virtual void commandAccepted (DtSequenceNumber sequenceNumber)
 Command accepted. More...
 
virtual void commandRejected (const DtEntityIdentifier &source, DtSequenceNumber sequenceNumber)
 Command rejected. More...
 
virtual void commandTimedOut (DtSequenceNumber sequenceNumber)
 Command timedOut. More...
 
virtual DtLgrCommandId lastSentCommand () const
 The last sent command ID. More...
 
virtual const DtEntityIdSetsourcesPendingResponse () const
 Get the sources whose response is pending. More...
 
virtual void setSourcesPendingResponse (const DtEntityIdSet &sourceIds)
 Set the sources whose response is pending. More...
 
virtual bool isResponsePending () const
 At least one source is pending response. More...
 
virtual const DtSequenceNumberSetpendingCommands () const
 Pending command sequence number Sequence number equal to 0 indicates command not pending. More...
 
virtual void clearPendingCommand (DtSequenceNumber number=0)
 Clear pending command sequence number Clear all if number = 0. More...
 
virtual const DtString & boolToString (bool value) const
 Convert the bool value to a string. More...
 

Static Public Member Functions

static
MAKLogger::DtRemoteControlPlaybackInterface
create (MAKLogger::DtRemoteControlInterface *rci)
 
- Static Public Member Functions inherited from MAKLogger::DtRemoteControlPlaybackInterface
static const char * commandToString (int command)
 Convert the command/response identifier to a string. More...
 

Protected Member Functions

Process playback responses
virtual void fileOpened (const DtString &fileName, const MAKLogger::DtAbsoluteTime &firstTime, const MAKLogger::DtAbsoluteTime &lastTime)
 The specified file was opened by all connected loggers Called after all connected loggers have responded individually. More...
 
virtual void fileClosed ()
 The playback file was closed by all connected loggers. More...
 
virtual void fileDoesNotExist (const DtEntityIdentifier &source, const DtString &fileName)
 The specified file does not exist for the logger with the specified source ID This response short circuits the fileOpened response, preventing it from being called until another open file is invoked. More...
 
virtual void fileIncomplete (const DtEntityIdentifier &source, const DtString &fileName, bool isIncomplete, bool hasLastPacket, bool lastPacketRecovered)
 The specified file is incomplete for the logger with the specified source ID This response short circuits the fileOpened response, preventing it from being called until another open file is invoked. More...
 
virtual void fileInvalid (const DtEntityIdentifier &source, const DtString &fileName, const DtString &reason)
 The specified file is invalid for the logger with the specified source ID This response short circuits the fileOpened response, preventing it from being called until another open file is invoked. More...
 
virtual void fileChanged ()
 The specified file has changed for all connected loggers Called after all connected loggers have responded individually. More...
 
virtual void fileSaved ()
 The specified file was saved for all connected loggers Called after all connected loggers have responded individually. More...
 
virtual void fileFormatCurrent (bool current)
 The file format is current for all connected loggers Called after all connected loggers have responded individually. More...
 
virtual void playbackChanged (bool currentlyPlaying)
 The playback status has changed for all connected loggers Called after all connected loggers have responded individually. More...
 
virtual void restarted ()
 The playback was restarted for all connected loggers Called after all connected loggers have responded individually. More...
 
virtual void loopAtEndChanged (bool enabled)
 The loop at end flag has changed for all connected loggers Called after all connected loggers have responded individually. More...
 
virtual void playOnLoadChanged (bool play)
 The play on load has changed for all connected loggers Called after all connected loggers have responded individually. More...
 
virtual void playbackSpeedChanged (double speed)
 The playback speed has changed for all connected loggers Called after all connected loggers have responded individually. More...
 
virtual void pausedChanged (bool paused)
 The paused state has changed for all connected loggers Called after all connected loggers have responded individually. More...
 
virtual void startStopTimesChanged (const MAKLogger::DtAbsoluteTime &startTime, const MAKLogger::DtAbsoluteTime &stopTime)
 The start/stop times have changed for all connected loggers Called after all connected loggers have responded individually. More...
 
virtual void firstLastTimesChanged (const MAKLogger::DtAbsoluteTime &firstTime, const MAKLogger::DtAbsoluteTime &lastTime)
 The first/last times have changed for all connected loggers Called after all connected loggers have responded individually. More...
 
virtual void jumpTimeChanged (const MAKLogger::DtAbsoluteTime &jumpTime)
 The specified file was opened by the logger with the specified source ID. More...
 
- Protected Member Functions inherited from MAKLogger::DtRemoteControlPlaybackInterface
virtual void setFirstTime (const DtAbsoluteTime &time, bool initialValue=false)
 Set first time if specified value is less than existing time or its the initial value. More...
 
virtual void setLastTime (const DtAbsoluteTime &time, bool initialValue=false)
 Set last time if specified value is greater than existing time or its the initial value. More...
 
virtual void setStartTime (const DtAbsoluteTime &time, bool initialValue=false)
 Set start time if specified value is less than existing time or its the initial value. More...
 
virtual void setStopTime (const DtAbsoluteTime &time, bool initialValue=false)
 Set stop time if specified value is greater than existing time or its the initial value. More...
 
virtual void fileOpened (const DtEntityIdentifier &source, const DtString &fileName, const DtAbsoluteTime &firstTime, const DtAbsoluteTime &lastTime)
 The specified file was opened by the logger with the specified source ID. More...
 
virtual void fileClosed (const DtEntityIdentifier &source)
 The playback file was closed by the logger with the specified source ID. More...
 
virtual void fileChanged (const DtEntityIdentifier &source)
 The specified file has changed for the logger with the specified source ID. More...
 
virtual void fileSaved (const DtEntityIdentifier &source)
 The specified file was saved for the logger with the specified source ID. More...
 
virtual void fileFormatCurrent (const DtEntityIdentifier &source, bool current)
 The file format is current for the logger with the specified source ID. More...
 
virtual void playbackChanged (const DtEntityIdentifier &source, bool currentlyPlaying)
 The playback status has changed for the logger with the specified source ID. More...
 
virtual void restarted (const DtEntityIdentifier &source)
 The playback was restarted for the logger with the specified source ID. More...
 
virtual void jumpTimeChanged (const DtEntityIdentifier &source, const DtAbsoluteTime &jumpTime)
 The specified file was opened by the logger with the specified source ID. More...
 
virtual void loopAtEndChanged (const DtEntityIdentifier &source, bool enabled)
 The loop at end flag has changed for the logger with the specified source ID. More...
 
virtual void playOnLoadChanged (const DtEntityIdentifier &source, bool enabled)
 The play on load has changed for the logger with the specified source ID. More...
 
virtual void skippingPlaybackChanged (bool enabled)
 The skipping playback has changed for the logger with the specified source ID. More...
 
virtual void skippingPlaybackChanged (const DtEntityIdentifier &source, bool enabled)
 The skipping playback has changed for all connected loggers Called after all connected loggers have responded individually. More...
 
virtual void playbackSpeedChanged (const DtEntityIdentifier &source, double speed)
 The playback speed has changed for the logger with the specified source ID. More...
 
virtual void pausedChanged (const DtEntityIdentifier &source, bool paused)
 The paused state has changed for the logger with the specified source ID. More...
 
virtual void startStopTimesChanged (const DtEntityIdentifier &source, const DtAbsoluteTime &startTime, const DtAbsoluteTime &stopTime)
 The start/stop times have changed for the logger with the specified source ID. More...
 
virtual void firstLastTimesChanged (const DtEntityIdentifier &source, const DtAbsoluteTime &firstTime, const DtAbsoluteTime &lastTime)
 The first/last times have changed for the logger with the specified source ID. More...
 
virtual void fileList (const DtEntityIdentifier &source, bool listIsDirs, const std::vector< DtString > &loggerFiles)
 The list of Logger files for the logger with the specified source ID. More...
 
virtual void fileList (DtOutputStream &outputStream, bool listIsDirs, const std::vector< DtString > &loggerFiles)
 The paused state has changed for all connected loggers Called after all connected loggers have responded individually. More...
 

Protected Attributes

bool mySkipEnabled
 
double mySpeedRequest
 
DtEntityIdentifier mySpeedRequestDestination
 
bool myTransitioningSkip
 
bool myPlayAfterTransitionSkip
 
- Protected Attributes inherited from MAKLogger::DtRemoteControlPlaybackInterface
DtFilename myFileName
 
DtAbsoluteTime myFirstTime
 
DtAbsoluteTime myLastTime
 
DtAbsoluteTime myStartTime
 
DtAbsoluteTime myStopTime
 
DtAbsoluteTime myJumpTime
 
DtAbsoluteTime myPendingJumpTime
 
std::vector< DtString > myFileList
 
bool myFileListIsDirs
 
bool myIsFileOpened
 
bool myIsFileChanged
 
bool myIsPlaying
 
bool myPendingIsPlaying
 
bool myFileFormatCurrent
 
bool myPendingFileFormatCurrent
 
bool myLoopAtEnd
 
bool myPendingLoopAtEnd
 
bool myPlayOnLoad
 
bool myPendingPlayOnLoad
 
bool myPlaybackSkipping
 
bool myPendingPlaybackSkipping
 
double mySpeed
 
double myPendingSpeed
 
bool myIsPaused
 
bool myPendingIsPaused
 
int myReceivedFileOpened
 
int myReceivedFileClosed
 
int myReceivedFileDoesNotExist
 
int myReceivedFileIncomplete
 
int myReceivedFileInvalid
 
int myReceivedFileChanged
 
int myReceivedFileSaved
 
int myReceivedFileFormatCurrent
 
int myReceivedPlaybackChanged
 
int myReceivedRestarted
 
int myReceivedLoopAtEndChanged
 
int myReceivedPlayOnLoadChanged
 
int myReceivedSkippingPlaybackChanged
 
int myReceivedPlaybackSpeedChanged
 
int myReceivedPausedChanged
 
int myReceivedStartStopTimesChanged
 
int myReceivedFirstLastTimesChanged
 
int myReceivedJumpTimeChanged
 
- Protected Attributes inherited from MAKLogger::DtRemoteControlDomainInterface
int myDomainId
 
DtString myDomainName
 
DtRemoteControlInterfacemyInterface
 
DtEntityIdSet mySourcesPendingResponse
 
DtSequenceNumberSet myPendingCommands
 
DtLgrCommandId myLastSentCommand
 
const DtString myTrueString
 
const DtString myFalseString
 

Private Member Functions

 DtPlaybackInterfacePrinter (const DtPlaybackInterfacePrinter &)
 Not Implemented. More...
 
DtPlaybackInterfacePrinteroperator= (const DtPlaybackInterfacePrinter &)
 Not Implemented. More...
 

Detailed Description

Prints message for received playback responses.

Constructor & Destructor Documentation

DtPlaybackInterfacePrinter::DtPlaybackInterfacePrinter ( MAKLogger::DtRemoteControlInterface rci)

Constructor.

virtual DtPlaybackInterfacePrinter::~DtPlaybackInterfacePrinter ( )
virtual

Destructor.

DtPlaybackInterfacePrinter::DtPlaybackInterfacePrinter ( const DtPlaybackInterfacePrinter )
private

Not Implemented.

Member Function Documentation

static MAKLogger::DtRemoteControlPlaybackInterface* DtPlaybackInterfacePrinter::create ( MAKLogger::DtRemoteControlInterface rci)
static
virtual void DtPlaybackInterfacePrinter::fileChanged ( )
protectedvirtual

The specified file has changed for all connected loggers Called after all connected loggers have responded individually.

Reimplemented from MAKLogger::DtRemoteControlPlaybackInterface.

virtual void DtPlaybackInterfacePrinter::fileClosed ( )
protectedvirtual

The playback file was closed by all connected loggers.

Called after all connected loggers have responded individually

Reimplemented from MAKLogger::DtRemoteControlPlaybackInterface.

virtual void DtPlaybackInterfacePrinter::fileDoesNotExist ( const DtEntityIdentifier &  source,
const DtString &  filename 
)
protectedvirtual

The specified file does not exist for the logger with the specified source ID This response short circuits the fileOpened response, preventing it from being called until another open file is invoked.

Reimplemented from MAKLogger::DtRemoteControlPlaybackInterface.

virtual void DtPlaybackInterfacePrinter::fileFormatCurrent ( bool  current)
protectedvirtual

The file format is current for all connected loggers Called after all connected loggers have responded individually.

Reimplemented from MAKLogger::DtRemoteControlPlaybackInterface.

virtual void DtPlaybackInterfacePrinter::fileIncomplete ( const DtEntityIdentifier &  source,
const DtString &  filename,
bool  isIncomplete,
bool  hasLastPacket,
bool  lastPacketRecovered 
)
protectedvirtual

The specified file is incomplete for the logger with the specified source ID This response short circuits the fileOpened response, preventing it from being called until another open file is invoked.

Reimplemented from MAKLogger::DtRemoteControlPlaybackInterface.

virtual void DtPlaybackInterfacePrinter::fileInvalid ( const DtEntityIdentifier &  source,
const DtString &  filename,
const DtString &  reason 
)
protectedvirtual

The specified file is invalid for the logger with the specified source ID This response short circuits the fileOpened response, preventing it from being called until another open file is invoked.

Reimplemented from MAKLogger::DtRemoteControlPlaybackInterface.

virtual void DtPlaybackInterfacePrinter::fileOpened ( const DtString &  fileName,
const MAKLogger::DtAbsoluteTime firstTime,
const MAKLogger::DtAbsoluteTime lastTime 
)
protectedvirtual

The specified file was opened by all connected loggers Called after all connected loggers have responded individually.

Reimplemented from MAKLogger::DtRemoteControlPlaybackInterface.

virtual void DtPlaybackInterfacePrinter::fileSaved ( )
protectedvirtual

The specified file was saved for all connected loggers Called after all connected loggers have responded individually.

Reimplemented from MAKLogger::DtRemoteControlPlaybackInterface.

virtual void DtPlaybackInterfacePrinter::firstLastTimesChanged ( const MAKLogger::DtAbsoluteTime firstTime,
const MAKLogger::DtAbsoluteTime lastTime 
)
protectedvirtual

The first/last times have changed for all connected loggers Called after all connected loggers have responded individually.

Reimplemented from MAKLogger::DtRemoteControlPlaybackInterface.

virtual void DtPlaybackInterfacePrinter::jumpTimeChanged ( const MAKLogger::DtAbsoluteTime jumpTime)
protectedvirtual

The specified file was opened by the logger with the specified source ID.

Reimplemented from MAKLogger::DtRemoteControlPlaybackInterface.

virtual void DtPlaybackInterfacePrinter::loopAtEndChanged ( bool  enabled)
protectedvirtual

The loop at end flag has changed for all connected loggers Called after all connected loggers have responded individually.

Reimplemented from MAKLogger::DtRemoteControlPlaybackInterface.

DtPlaybackInterfacePrinter& DtPlaybackInterfacePrinter::operator= ( const DtPlaybackInterfacePrinter )
private

Not Implemented.

virtual void DtPlaybackInterfacePrinter::pausedChanged ( bool  paused)
protectedvirtual

The paused state has changed for all connected loggers Called after all connected loggers have responded individually.

Reimplemented from MAKLogger::DtRemoteControlPlaybackInterface.

virtual void DtPlaybackInterfacePrinter::playbackChanged ( bool  currentlyPlaying)
protectedvirtual

The playback status has changed for all connected loggers Called after all connected loggers have responded individually.

Reimplemented from MAKLogger::DtRemoteControlPlaybackInterface.

virtual void DtPlaybackInterfacePrinter::playbackSpeedChanged ( double  speed)
protectedvirtual

The playback speed has changed for all connected loggers Called after all connected loggers have responded individually.

Reimplemented from MAKLogger::DtRemoteControlPlaybackInterface.

virtual void DtPlaybackInterfacePrinter::playOnLoadChanged ( bool  enabled)
protectedvirtual

The play on load has changed for all connected loggers Called after all connected loggers have responded individually.

Reimplemented from MAKLogger::DtRemoteControlPlaybackInterface.

virtual void DtPlaybackInterfacePrinter::restarted ( )
protectedvirtual

The playback was restarted for all connected loggers Called after all connected loggers have responded individually.

Reimplemented from MAKLogger::DtRemoteControlPlaybackInterface.

virtual MAKLogger::DtSequenceNumber DtPlaybackInterfacePrinter::setPlaybackSpeed ( double  speed,
bool  skipping,
const DtEntityIdentifier &  destination = MAKLogger::DtRemoteControlInterface::wildcardAddress() 
)
virtual

Set playback speed.

Reimplemented from MAKLogger::DtRemoteControlPlaybackInterface.

virtual void DtPlaybackInterfacePrinter::startStopTimesChanged ( const MAKLogger::DtAbsoluteTime startTime,
const MAKLogger::DtAbsoluteTime stopTime 
)
protectedvirtual

The start/stop times have changed for all connected loggers Called after all connected loggers have responded individually.

Reimplemented from MAKLogger::DtRemoteControlPlaybackInterface.

Member Data Documentation

bool DtPlaybackInterfacePrinter::myPlayAfterTransitionSkip
protected
bool DtPlaybackInterfacePrinter::mySkipEnabled
protected
double DtPlaybackInterfacePrinter::mySpeedRequest
protected
DtEntityIdentifier DtPlaybackInterfacePrinter::mySpeedRequestDestination
protected
bool DtPlaybackInterfacePrinter::myTransitioningSkip
protected

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

Document ID: Generated on Fri May 31 15:45:35 EDT 2024 from SVN revision 266500
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)