11 #include <vlpi/netStructs.h>
15 namespace vrfAddSetExample
62 virtual DtReal
speed()
const;
74 virtual bool setFromNet(
const char* contentBuffer,
unsigned contentSize)
override;
const DtSetMessageType DtSetSpeedAndHeadingType("set-speed-and-heading")
DtRwReal myHeading
Definition: setSpeedAndHeading.h:85
Definition: readerWriterRegistry.h:39
Definition: setSpeedAndHeading.h:30
virtual int netRepSize() const override
virtual DtReal speed() const
DtRwReal mySpeed
Definition: setSpeedAndHeading.h:84
DtSetDataRequest is an abstract base class from which real setDataRequests can derive. It manages the read/write capability; derived classes need only use and register read/writatble data types for derived information.
Definition: setDataRequest.h:41
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize) override
Sets the contents of this set request based on the network buffer. Base class does nothing and return...
virtual const DtSetMessageType & type() const override
What kind of setDataRequest am I? (from radioMsgTypes.h). Returns a string representing the kind of d...
virtual bool setToNet() override
Sets netRep buffer to the contents of this set request. Base class does nothing and returns true...
const char DtSetSpeedAndHeadingMenuItemIdName[]
Definition: setSpeedAndHeading.h:28
Define constants for types of tasks, sets, admin messages, reports, and sim commands (all sent via ra...
static DtSetDataRequest * creator()
const DtSetSpeedAndHeadingRequest & operator=(const DtSetSpeedAndHeadingRequest &orig)
virtual DtSetDataRequest * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const override
Make a copy of this request. Returns a pointer to a newly created copy of this data request...
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
virtual DtReal heading() const
virtual void setHeading(DtReal heading)
virtual ~DtSetSpeedAndHeadingRequest() override
virtual DtString stringRep() const override
Get a readable string representation of this setDataRequest. Returns a human readable string represen...
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.
virtual void setSpeed(DtReal speed)
DtSetSpeedAndHeadingRequest()