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>
75 virtual const DtSetMessageType&
type()
const override;
83 virtual DtSetDataRequest*
clone(
const DtString& name, DtReaderWriterRegistry* parentRegistry = 0)
const override;
150 virtual std::vector<std::string>
roles()
const;
158 virtual void setRoles(
const std::vector<std::string>& description);
173 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 ~DtSetVreControlledRequest() override
Virtual destructor.
DtRwSimulationAddress mySimulationAddress
Simulation address of the controlling player station.
Definition setVreControlled.h:190
DtRwBoolean myIsPlayerStationControlled
Flag indicating whether the entity is player station controlled.
Definition setVreControlled.h:199
virtual unsigned stationId() const
Gets the published ID of the player station.
DtRwStringList myRoles
List of roles/stations that are controlled.
Definition setVreControlled.h:204
virtual int netRepSize() const override
Gets the network representation size.
virtual const DtSetMessageType & type() const override
Gets the message type.
virtual std::string stationName() const
Gets the published name of the player station.
virtual bool playerStationControlled() const
Gets the player station control state.
virtual void setStationName(const std::string &name)
Sets the published name of the player station.
virtual void setPlayerStationControlled(bool trueFalse)
Sets the player station control state.
DtRwUnsigned myStationId
Unique identifier for the controlling player station.
Definition setVreControlled.h:193
virtual void setRoles(const std::vector< std::string > &description)
Sets the controlled roles 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 roles for the entity.
const DtSetVreControlledRequest & operator=(const DtSetVreControlledRequest &orig)
Assignment operator.
virtual void setStationId(unsigned id)
Sets the published ID of the player station.
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.
DtRwString myStationName
Name of the controlling player station.
Definition setVreControlled.h:196
static DtSetDataRequest * creator()
Static creator function for factory registration.
Export/import macros for the VRF Messages library.
#define VRFMESSAGES_DLL
Definition export.h:23
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
const DtSetMessageType DtSetVreControlledType("set-vre-controlled")
Message type for VREngage control state requests.