17#include <vrftasks/setDataRequest.h>
18#include <vrfutil/rwSimulationAddress.h>
19#include <readerWriter/rwBoolean.h>
20#include <readerWriter/rwString.h>
21#include <vrftasks/radioMessageTypes.h>
78 virtual const DtSetMessageType&
type()
const override;
86 virtual DtSetDataRequest*
clone(
const DtString& name, DtReaderWriterRegistry* parentRegistry = 0)
const override;
141 virtual std::vector<std::string>
roles()
const;
149 virtual void setRoles(
const std::vector<std::string>& description);
178 virtual bool setFromNet(
const char* contentBuffer,
unsigned contentSize)
override;
virtual DtString stringRep() const override
Gets a human-readable string representation.
DtSetVreControlledRequest(const DtString &writeName, DtReaderWriterRegistry *parentRegistry=0)
Named constructor for reader/writer functionality.
DtSetVreControlledRequest()
Default constructor.
DtSetVreControlledRequest(const DtString &writeName, const DtSetVreControlledRequest &orig, DtReaderWriterRegistry *parentRegistry=0)
Copy constructor.
virtual std::string roleName() const
Gets the entity-role name associated with the control request.
virtual ~DtSetVreControlledRequest() override
Virtual destructor.
DtRwSimulationAddress mySimulationAddress
Simulation address of the controlling player station.
Definition setVreControlled.h:195
virtual void setStationId(const std::string &id)
Sets the published ID of the player station.
DtRwBoolean myIsPlayerStationControlled
Flag indicating whether the entity is player station controlled.
Definition setVreControlled.h:204
DtRwString myRoleName
Entity-role name stored for the structured "Role" field.
Definition setVreControlled.h:201
virtual int netRepSize() const override
Gets the network representation size.
virtual const DtSetMessageType & type() const override
Gets the message type.
DtRwString myStationId
Unique identifier for the controlling player station.
Definition setVreControlled.h:198
virtual bool playerStationControlled() const
Gets the player station control state.
virtual void setPlayerStationControlled(bool trueFalse)
Sets the player station control state.
virtual void setRoles(const std::vector< std::string > &description)
Sets the controlled role types for the entity.
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize) override
Deserializes the request from a network buffer.
virtual std::vector< std::string > roles() const
Gets the controlled role types for the entity.
const DtSetVreControlledRequest & operator=(const DtSetVreControlledRequest &orig)
Assignment operator.
virtual void setSimulationAddress(const DtSimulationAddress &address)
Sets the simulation address of the player station.
virtual DtSimulationAddress simulationAddress() const
Gets the simulation address of the player station.
virtual DtSetDataRequest * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const override
Creates a copy of this request.
virtual bool setToNet() override
Serializes the request for network transmission.
static DtSetDataRequest * creator()
Static creator function for factory registration.
DtRwStringList myRoleTypes
List of role-type keys that are controlled.
Definition setVreControlled.h:209
virtual void setRoleName(const std::string &roleName)
Sets the entity-role name associated with the control request.
virtual std::string stationId() const
Gets the published ID of the player station.
Export/import macros for the VRF Messages library.
#define VRFMESSAGES_DLL
Definition export.h:23
!
Definition glsVreMessageUtil.h:50
const DtSetMessageType DtSetVreControlledType("set-vre-controlled")
Message type for VREngage control state requests.