VR-Forces Developer's Guide
 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
DtIfRollbackToSnapshot Class Reference

class DtIfRollbackToSnapshot:

Instances of DtIfRollbackToSnapshot will try and rollback to a snapshot id (if it exists) or the closest sim time given

Content-Type: DtRollbackToSnapshotMessageType

Inheritance diagram for DtIfRollbackToSnapshot:
Inheritance graph
[legend]

Public Member Functions

 DtIfRollbackToSnapshot ()
 
virtual ~DtIfRollbackToSnapshot () override
 
 DtIfRollbackToSnapshot (const DtIfRollbackToSnapshot &orig)
 
DtIfRollbackToSnapshotoperator= (const DtIfRollbackToSnapshot &orig)
 
virtual int type () const override
 
virtual DtSimInterfaceContentclone () const override
 
virtual int netRepSize () const override
 
virtual bool setFromNet (const char *contentBuffer, unsigned contentSize) override
 
virtual bool setToNet () override
 
virtual void printDataToString (DtString &str) override
 
virtual void setSimTime (double)
 
virtual double simTime () const
 
virtual void setSnapshotId (int)
 
virtual int snapshotId () const
 
virtual void setScenarioRunId (int)
 
virtual int scenarioRunId () const
 
- Public Member Functions inherited from DtSimInterfaceContent
virtual ~DtSimInterfaceContent ()
 
virtual bool update (const DtSimInterfaceContent *data)
 
virtual charnetRep ()
 
virtual void printContentType (DtString &str)
 
virtual void setUseSessionId (bool yesNo)
 
virtual bool useSessionId () const
 

Static Public Member Functions

static DtSimInterfaceContentcreator ()
 
- Static Public Member Functions inherited from DtSimInterfaceContent
static DtSimInterfaceContentcreateInterfaceContent (int type)
 
static void addInterfaceContentCreatorFcn (int type, DtInterfaceContentCreatorFcn fcn)
 
static void setFactory (DtInterfaceContentFactory *factory)
 
static DtInterfaceContentFactoryfactory ()
 
static void registerContentTypePrinter (DtSimInterfaceContentTypePrinterFcn printFcn)
 

Protected Attributes

double mySimTime
 
int mySnapshotId
 
int myScenarioRunId
 
- Protected Attributes inherited from DtSimInterfaceContent
charmyNetRep
 
bool myUseSessionId
 

Additional Inherited Members

- Protected Member Functions inherited from DtSimInterfaceContent
 DtSimInterfaceContent ()
 
 DtSimInterfaceContent (const DtSimInterfaceContent &orig)
 
const DtSimInterfaceContentoperator= (const DtSimInterfaceContent &orig)
 
virtual charcreateNetworkBuffer ()
 
- Static Protected Attributes inherited from DtSimInterfaceContent
static DtInterfaceContentFactorymyFactory
 
static
DtSimInterfaceContentTypePrinterFcn 
theContentTypePrinterFcn
 

Constructor & Destructor Documentation

DtIfRollbackToSnapshot::DtIfRollbackToSnapshot ( )

default constructor

virtual DtIfRollbackToSnapshot::~DtIfRollbackToSnapshot ( )
overridevirtual

destructor

DtIfRollbackToSnapshot::DtIfRollbackToSnapshot ( const DtIfRollbackToSnapshot orig)

copy constructor

Member Function Documentation

DtIfRollbackToSnapshot& DtIfRollbackToSnapshot::operator= ( const DtIfRollbackToSnapshot orig)
virtual int DtIfRollbackToSnapshot::type ( ) const
overridevirtual

Returns the type of Interface Content.

Implements DtSimInterfaceContent.

virtual DtSimInterfaceContent* DtIfRollbackToSnapshot::clone ( ) const
overridevirtual

Implements DtSimInterfaceContent.

virtual int DtIfRollbackToSnapshot::netRepSize ( ) const
overridevirtual

Reimplemented from DtSimInterfaceContent.

virtual bool DtIfRollbackToSnapshot::setFromNet ( const char contentBuffer,
unsigned  contentSize 
)
overridevirtual

Reimplemented from DtSimInterfaceContent.

virtual bool DtIfRollbackToSnapshot::setToNet ( )
overridevirtual

Reimplemented from DtSimInterfaceContent.

virtual void DtIfRollbackToSnapshot::printDataToString ( DtString str)
overridevirtual

Reimplemented from DtSimInterfaceContent.

static DtSimInterfaceContent* DtIfRollbackToSnapshot::creator ( )
static
virtual void DtIfRollbackToSnapshot::setSimTime ( double  )
virtual

Simulation time to roll back to. If this is given and Snapshot id is given Snapshot id will be used first, and, if that does not exist, sim time second.

virtual double DtIfRollbackToSnapshot::simTime ( ) const
virtual
virtual void DtIfRollbackToSnapshot::setSnapshotId ( int  )
virtual
virtual int DtIfRollbackToSnapshot::snapshotId ( ) const
virtual
virtual void DtIfRollbackToSnapshot::setScenarioRunId ( int  )
virtual

An ID that is used to now uniquely identify messages sent with this scenario rollback. Used to try and prevent messages from a previous scenario interfering with the new. In each new construct of this message, the scenario run id is set to a random number.

virtual int DtIfRollbackToSnapshot::scenarioRunId ( ) const
virtual

Member Data Documentation

double DtIfRollbackToSnapshot::mySimTime
protected
int DtIfRollbackToSnapshot::mySnapshotId
protected
int DtIfRollbackToSnapshot::myScenarioRunId
protected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)