20#include <vrfExtProtocol/simInterfaceContent.h>
21#include <vrfutil/rwUUID.h>
22#include <vlutil/vlString.h>
65 virtual int type()
const override;
71 virtual DtSimInterfaceContent*
clone()
const override;
82 virtual const DtUUID&
uuid()
const;
130 virtual bool setFromNet(
const char* contentBuffer,
unsigned contentSize)
override;
DtU64 mySubscriberId
Unique identifier for the subscriber requesting the data.
Definition ifVreSensorDataRequest.h:158
virtual const DtUUID & uuid() const
Gets the UUID of the entity whose sensor data is being requested.
virtual void setUUID(const DtUUID &uuid)
Sets the UUID of the entity whose sensor data is being requested.
virtual DtSimInterfaceContent * clone() const override
Creates a copy of this message.
DtU32 myRequestType
Type of request (ONE_UPDATE, SUBSCRIBE, or UNSUBSCRIBE)
Definition ifVreSensorDataRequest.h:161
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize) override
Deserializes the message from a network buffer.
virtual RequestType requestType() const
Gets the request type.
virtual void setSensorType(const int type)
Sets the sensor type.
virtual void setRequestType(const RequestType type)
Sets the request type.
virtual bool setToNet() override
Serializes the message for network transmission.
RequestType
Enumeration of available request types.
Definition ifVreSensorDataRequest.h:34
@ UNSUBSCRIBE
Cancel an existing subscription.
Definition ifVreSensorDataRequest.h:37
@ SUBSCRIBE
Subscribe to receive continuous sensor data updates.
Definition ifVreSensorDataRequest.h:36
@ ONE_UPDATE
Request a single update of sensor data.
Definition ifVreSensorDataRequest.h:35
virtual unsigned long subscriberId() const
Gets the subscriber identifier.
virtual void printDataToString(DtString &str) override
Formats the message data as a string.
virtual ~DtIfVreSensorDataRequest() override
Virtual destructor.
DtIfVreSensorDataRequest(const DtIfVreSensorDataRequest &orig)
Copy constructor.
static DtSimInterfaceContent * creator()
Static creator function for factory registration.
DtIfVreSensorDataRequest()
Default constructor.
virtual int sensorType() const
Gets the sensor type.
virtual void setSubscriberId(const unsigned long id)
Sets the subscriber identifier.
const DtIfVreSensorDataRequest & operator=(const DtIfVreSensorDataRequest &orig)
Assignment operator.
DtUUID myUUID
UUID of the entity whose sensor data is being requested.
Definition ifVreSensorDataRequest.h:152
virtual int type() const override
Gets the interface message type.
DtU32 mySensorType
Type of sensor for which data is being requested.
Definition ifVreSensorDataRequest.h:155
virtual int netRepSize() const override
Gets the network representation size.
Export/import macros for the VRF Messages library.
#define VRFMESSAGES_DLL
Definition export.h:23