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;
137 virtual bool setFromNet(
const char* contentBuffer,
unsigned contentSize)
override;
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 const DtString & sensorName() const
Gets the name of the sensor for which 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:171
DtString mySubscriberId
Unique identifier for the subscriber requesting the data.
Definition ifVreSensorDataRequest.h:168
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 for which data is being requested.
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 void printDataToString(DtString &str) override
Formats the message data as a string.
virtual const DtString & subscriberId() const
Gets the subscriber identifier.
virtual ~DtIfVreSensorDataRequest() override
Virtual destructor.
DtIfVreSensorDataRequest(const DtIfVreSensorDataRequest &orig)
Copy constructor.
static DtSimInterfaceContent * creator()
Static creator function for factory registration.
DtIfVreSensorDataRequest()
Default constructor.
virtual void setSensorName(const DtString &name)
Sets the name of the sensor for which data is being requested.
virtual int sensorType() const
Gets the sensor type for which data is being requested.
DtString mySensorName
\ brief Name of sensor for which data is being requested
Definition ifVreSensorDataRequest.h:162
virtual void setSubscriberId(const DtString &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:159
virtual int type() const override
Gets the interface message type.
DtU32 mySensorType
Type of sensor(s) for which data is being requested.
Definition ifVreSensorDataRequest.h:165
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