14 #include <vlutil/vlPrint.h>
47 parentRegistry = 0)
const;
62 virtual bool setFromNet(
const char* contentBuffer,
63 unsigned contentSize);
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
virtual void setMessageText(const DtString &text)
MySimCommand & operator=(const MySimCommand &orig)
virtual bool setToNet()
Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimSimCommand*...
static DtSimCommand * creator()
Definition: mySimCommand.h:22
virtual DtString messageText() const
virtual DtString stringRep() const
Returns a human-readable string representation of the command. This string representation is used to ...
const DtSimCommandMessageType MySimCommandType("my-sim-command")
Define constants for types of tasks, sets, admin messages, reports, and sim commands (all sent via ra...
DtSimCommand is an abstract base class from which commands can derive. It manages the read/write capa...
Definition: simCommand.h:32
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().
virtual DtSimCommand * clone() const
Version of clone that preserves the existing name, and assigns a null parent registry.
virtual int netRepSize() const
Returns the size in bytes of the network representation of the class. This is the size in bytes of th...
const DtSimCommandMessageType & type() const
DtRwString myMessageText
Definition: mySimCommand.h:72
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.