14 #include <vlutil/vlPrint.h>
61 virtual bool setFromNet(
const char* contentBuffer,
unsigned contentSize)
override;
virtual const DtSimCommandMessageType & type() const override
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 bool setToNet() override
Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimSimCommand*...
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...
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
virtual ~MySimCommand() override
virtual void setMessageText(const DtString &text)
MySimCommand & operator=(const MySimCommand &orig)
static DtSimCommand * creator()
Definition: mySimCommand.h:22
virtual DtString messageText() const
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 DtString stringRep() const override
Returns a human-readable string representation of the command. This string representation is used to ...
virtual DtSimCommand * clone() const
Version of clone that preserves the existing name, and assigns a null parent registry.
DtRwString myMessageText
Definition: mySimCommand.h:70
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.