46 virtual bool setFromNet(
const char* contentBuffer,
unsigned contentSize)
override;
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)
override;
virtual ~DtAddPersistentTracksCommand() override
Destructor.
Definition: persistentTracksCommand.h:102
DtPersistentTracksCommand & operator=(const DtPersistentTracksCommand &)
Assignment operator.
DtRemovePersistentTracksCommand(const DtString &writeName, const DtRemovePersistentTracksCommand &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Copy constructor.
Definition: persistentTracksCommand.h:163
virtual bool setToNet()
Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimSimCommand*...
virtual DtSimCommand * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const override
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
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 const DtSimCommandMessageType & type() const override
Definition: persistentTracksCommand.h:173
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize) override
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().
virtual DtString stringRep() const =0
Returns a human-readable string representation of the command. This string representation is used to ...
Definition: readerWriterRegistry.h:39
virtual bool setToNet() override
Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimSimCommand*...
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
virtual DtString stringRep() const override=0
Command type (string)
Definition: rwVector.h:23
static std::vector< DtString > theTrackAmountsStringRep
Definition: persistentTracksCommand.h:77
virtual const DtSimCommandMessageType & type() const override
Definition: persistentTracksCommand.h:135
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")
DtRwVectorList myVertices
Definition: persistentTracksCommand.h:59
const DtSimCommand & operator=(const DtSimCommand &orig)
assignment operator; same as copy constructor
virtual DtSimCommand * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const override
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
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
DtRwString myTrackAmount
Definition: persistentTracksCommand.h:144
virtual ~DtRemovePersistentTracksCommand() override
Destructor.
Definition: persistentTracksCommand.h:168
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 int netRepSize() const override
Returns the size in bytes of the network representation of the class. This is the size in bytes of th...