46 virtual bool setFromNet(
const char* contentBuffer,
unsigned contentSize);
54 virtual void addVertexToVector(
const DtRwVector&);
63 template<
class CommandType>
66 return new CommandType();
81 static int getTrackType(
const DtString&);
84 static int getTrackDepth(
const DtString&);
87 static int getTrackAmount(
const DtString&);
109 virtual void setTrackType(
DtString);
115 virtual void setTrackAmount(
DtString);
116 virtual DtString trackAmount()
const;
121 virtual void setTrackDepth(
DtString);
122 virtual DtString trackDepth()
const;
130 virtual bool setFromNet(
const char* contentBuffer,
unsigned contentSize);
DtPersistentTracksCommand & operator=(const DtPersistentTracksCommand &)
Assignment operator.
virtual int netRepSize() const
Returns the size in bytes of the network representation of the class. This is the size in bytes of th...
DtRemovePersistentTracksCommand(const DtString &writeName, const DtRemovePersistentTracksCommand &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Copy constructor.
Definition: persistentTracksCommand.h:163
virtual const DtSimCommandMessageType & type() const
Definition: persistentTracksCommand.h:173
virtual bool setToNet()
Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimSimCommand*...
DtSimCommand * persistentTracksCommandCreator()
Definition: persistentTracksCommand.h:64
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
virtual DtString stringRep() const =0
Returns a human-readable string representation of the command. This string representation is used to ...
Definition: readerWriterRegistry.h:39
DtRwString myTrackType
Definition: persistentTracksCommand.h:143
const DtSimCommandMessageType DtAddPersistentTracksCommandType("add-persistent-tracks-command")
DtSimCommand which causes a specific list of dynamic terrain changes to take place at the specified g...
Definition: persistentTracksCommand.h:71
Definition: rwVector.h:23
static std::vector< DtString > theTrackAmountsStringRep
Definition: persistentTracksCommand.h:77
virtual DtSimCommand * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const
Make a copy of this sim command. Returns a newly allocated instance of a DtSimCommand. Override this member function to return a pointer to a newly allocated instance of the derived class.
Definition: persistentTracksCommand.h:175
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets mySubsimCommand member from the incoming contentBuffer (cast to type DtNetSimSimCommand). Derived classes should call down to this function first, and then extract their own data starting at the location contentBuffer + DtSimCommand::netRepSize().
DtSimCommand which causes a specific list of dynamic terrain changes to take place at the specified g...
Definition: persistentTracksCommand.h:151
virtual int netRepSize() const
Returns the size in bytes of the network representation of the class. This is the size in bytes of th...
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets mySubsimCommand member from the incoming contentBuffer (cast to type DtNetSimSimCommand). Derived classes should call down to this function first, and then extract their own data starting at the location contentBuffer + DtSimCommand::netRepSize().
const DtSimCommandMessageType DtRemovePersistentTracksCommandType("remove-persistent-tracks-command")
virtual DtString stringRep() const =0
Command type (string)
virtual const DtSimCommandMessageType & type() const
Definition: persistentTracksCommand.h:135
DtRwVectorList myVertices
Definition: persistentTracksCommand.h:59
const DtSimCommand & operator=(const DtSimCommand &orig)
assignment operator; same as copy constructor
DtSimCommand is an abstract base class from which commands can derive. It manages the read/write capa...
Definition: simCommand.h:32
DtRwString myTrackDepth
Definition: persistentTracksCommand.h:145
Base class for any DtSimCommand which persistent changes to be added or removed. Must be subclassed f...
Definition: persistentTracksCommand.h:21
virtual ~DtRemovePersistentTracksCommand()
Destructor.
Definition: persistentTracksCommand.h:168
DtRwString myTrackAmount
Definition: persistentTracksCommand.h:144
virtual bool setToNet()
Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimSimCommand*...
static std::vector< DtString > theTrackDepthsStringRep
Definition: persistentTracksCommand.h:76
#define DT_DLL_vrfplan
This file is used to determine how to build.
Definition: vrfplanDefines.h:28
static std::vector< DtString > theTrackTypesStringRep
Static Vectors.
Definition: persistentTracksCommand.h:75
DtRemovePersistentTracksCommand(const DtString &writeName, DtReaderWriterRegistry *parentRegistry=NULL)
Usual constructor.
Definition: persistentTracksCommand.h:158
class DtRwVectorList:
Definition: rwVectorList.h:22
DtRemovePersistentTracksCommand()
Default constructor.
Definition: persistentTracksCommand.h:155
virtual DtSimCommand * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const
Make a copy of this sim command. Returns a newly allocated instance of a DtSimCommand. Override this member function to return a pointer to a newly allocated instance of the derived class.
Definition: persistentTracksCommand.h:137
virtual ~DtAddPersistentTracksCommand()
Destructor.
Definition: persistentTracksCommand.h:102