MAK Data Logger API Documentation for DIS
List of all members | Public Member Functions | Private Attributes
DtLgcyLgrTimeScalePdu Class Reference

Instances of DtLgcyLgrTimeScalePdu are to tell a remote logger to slow down or speed up playback. More...

+ Inheritance diagram for DtLgcyLgrTimeScalePdu:
+ Collaboration diagram for DtLgcyLgrTimeScalePdu:

Public Member Functions

 DtLgcyLgrTimeScalePdu (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 (default) constructor
 DtLgcyLgrTimeScalePdu (const DtNetLgcyLgrControlPdu *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 constructor (construct from network representation)
 DtLgcyLgrTimeScalePdu (DtGlobalObjectDesignator &sender, DtGlobalObjectDesignator &receiver, double scale, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 constructor (construct and prepare for send)
virtual ~DtLgcyLgrTimeScalePdu ()
 destructor
 DtLgcyLgrTimeScalePdu (const DtLgcyLgrTimeScalePdu &src)
 copy constructor
DtLgcyLgrTimeScalePduoperator= (const DtLgcyLgrTimeScalePdu &src)
 assignment operator
virtual double timeScale () const
 Get/set playback speed.
virtual void setTimeScale (DtReal time)
virtual DtLgcyLgrRealParamsparams () const
 Return correctly casted parameters pointer. See legacyLgrControlP.h.
virtual void printData () const
 Diagnostic output.
- Public Member Functions inherited from DtLgcyLgrControlPdu
 DtLgcyLgrControlPdu (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 (default) constructor
 DtLgcyLgrControlPdu (const DtNetLgcyLgrControlPdu *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER, DtPduFactory *pduFactory=0)
 constructor (constructs from network representation)
virtual ~DtLgcyLgrControlPdu ()
 destructor
 DtLgcyLgrControlPdu (const DtLgcyLgrControlPdu &src)
 copy constructor
DtLgcyLgrControlPduoperator= (const DtLgcyLgrControlPdu &src)
 assignment operator
const DtGlobalObjectDesignator & receiverId () const
 Get/set Object Identifier of intended recipient (logger).
virtual void setReceiverId (const DtGlobalObjectDesignator &id)
virtual const
DtGlobalObjectDesignator & 
senderId () const
 Get/set Object Identifier of sender, if applicable.
virtual void setSenderId (const DtGlobalObjectDesignator &id)
DtLgrCommand lgrCommand () const
 Get message-type for proper casting to a subclass.
DtNetLgcyLgrControlParamsdefaultParams () const
 Data place holder.

Private Attributes

DtReal myScale
 Parameter.

Additional Inherited Members

- Static Public Member Functions inherited from DtLgcyLgrControlPdu
static DtPdu * create (const DtNetPacket *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER, DtPduFactory *pduFactory=0)
 Create a PDU representation from a network packet.
static DtLgcyLgrControlPducreate (DtLgrCommand command)
 Create a PDU from DtLgrCommand.
static void addCallback (DtExerciseConn *conn, DtLgcyLgrControlInteractionCb cb, void *usr)
 DIS – install/remove handler to call when receiving a LC packet.
static void removeCallback (DtExerciseConn *conn, DtLgcyLgrControlInteractionCb cb, void *usr)
static const char * lgrModeEnum2string (DtLgcyLgrMode md)
 The name (as a string) of a 'DtLgcyLgrMode'-type enum (from value)
static const char * lgrFilePosEnum2string (DtLgcyLgrFilePosition pos)
 The name (as a string) of a 'DtLgcyLgrFilePosition'-type enum (from value)
static const char * lgrStateFlag2string (DtLgcyLgrCtrlFlagStates flg)
 The name (as a string) of a 'DtLgcyLgrCtrlFlagStates'-type enum (from value)
- Protected Member Functions inherited from DtLgcyLgrControlPdu
DtPduKind internalGetPduKind () const
 Identity for use by toolkit.
void setLgrCommand (DtLgrCommand com)
 Set is done by constructing the proper subclass.

Detailed Description

Instances of DtLgcyLgrTimeScalePdu are to tell a remote logger to slow down or speed up playback.

1.0 is the normal speed.

Constructor & Destructor Documentation

DtLgcyLgrTimeScalePdu::DtLgcyLgrTimeScalePdu ( DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER)

(default) constructor

DtLgcyLgrTimeScalePdu::DtLgcyLgrTimeScalePdu ( const DtNetLgcyLgrControlPdu initial,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
)

constructor (construct from network representation)

DtLgcyLgrTimeScalePdu::DtLgcyLgrTimeScalePdu ( DtGlobalObjectDesignator &  sender,
DtGlobalObjectDesignator &  receiver,
double  scale,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
)

constructor (construct and prepare for send)

virtual DtLgcyLgrTimeScalePdu::~DtLgcyLgrTimeScalePdu ( )
virtual

destructor

DtLgcyLgrTimeScalePdu::DtLgcyLgrTimeScalePdu ( const DtLgcyLgrTimeScalePdu src)

copy constructor

Member Function Documentation

DtLgcyLgrTimeScalePdu& DtLgcyLgrTimeScalePdu::operator= ( const DtLgcyLgrTimeScalePdu src)

assignment operator

virtual DtLgcyLgrRealParams* DtLgcyLgrTimeScalePdu::params ( ) const
virtual

Return correctly casted parameters pointer. See legacyLgrControlP.h.

virtual void DtLgcyLgrTimeScalePdu::printData ( ) const
virtual

Diagnostic output.

Reimplemented from DtLgcyLgrControlPdu.

virtual void DtLgcyLgrTimeScalePdu::setTimeScale ( DtReal  time)
virtual
virtual double DtLgcyLgrTimeScalePdu::timeScale ( ) const
virtual

Get/set playback speed.

Member Data Documentation

DtReal DtLgcyLgrTimeScalePdu::myScale
private

Parameter.


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

Document ID: Generated on Thu Apr 10 18:53:01 EDT 2014 from SVN revision 138105
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)