17#include <vlpi/entityIdentifier.h>
18#include <vrfutil/uuid.h>
117 virtual const std::string&
type()
const override;
Reader class for decoding values from a byte array.
Definition byteStream.h:43
Writer class for encoding values into a byte array.
Definition byteStream.h:166
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Message identifier class for the VREngage messaging system.
Definition vreMessageId.h:35
virtual void setRequestType(RequestType val)
ACQUIRE to take ownership onto the VRE backend, RELEASE to divest back to the original VRF backend.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual void setRequestId(unsigned long long val)
Monotonic counter from DtOwnershipTransferSettings::nextRequestId(). Echoed in the response so the wa...
virtual const DtEntityIdentifier & getEntityId() const
DIS site:host:entity triple. Used for eligibility checks and stored in the attribute store as ownedEn...
virtual const std::string & getRequestingStationId() const
Numeric VR-Engage station ID from app().engageStationId(). Forwarded into auto-divest release data.
static makVre::DtVreMessageId theMessageId
Definition ownershipTransferRequest.h:224
static UInt64 theVersion
Definition ownershipTransferRequest.h:225
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual const std::string & type() const override
Get the message type string for this instance.
virtual const DtUUID & getEntityUuid() const
VRF-internal UUID. Primary key for lastVrfSim() lookup and pending-transfer correlation.
static OwnershipTransferRequestMessage * create()
Create a copy of the given message.
virtual RequestType getRequestType() const
ACQUIRE to take ownership onto the VRE backend, RELEASE to divest back to the original VRF backend.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
virtual bool getRetainCurrentOwned() const
When true, the connector should not auto-divest the currently-owned entity. The current entity become...
static UInt64 theVersionNumber()
Get the version number for this message class.
RequestType
RequestType enumeration.
Definition ownershipTransferRequest.h:39
@ RequestType_RELEASE
Definition ownershipTransferRequest.h:41
@ RequestType_ACQUIRE
Definition ownershipTransferRequest.h:40
virtual const std::string & getRequestingRoleName() const
Player-station or role name from app().getPlayerStationName(). Set by loadingPlayerState; left empty ...
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual void setRequestingStationId(const std::string &val)
Numeric VR-Engage station ID from app().engageStationId(). Forwarded into auto-divest release data.
virtual unsigned long long getRequestId() const
Monotonic counter from DtOwnershipTransferSettings::nextRequestId(). Echoed in the response so the wa...
virtual void setEntityUuid(const DtUUID &val)
VRF-internal UUID. Primary key for lastVrfSim() lookup and pending-transfer correlation.
OwnershipTransferRequestMessage()
OwnershipTransferRequestData getData()
Get a copy of the message data.
virtual void setEntityId(const DtEntityIdentifier &val)
DIS site:host:entity triple. Used for eligibility checks and stored in the attribute store as ownedEn...
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual void setRequestingRoleName(const std::string &val)
Player-station or role name from app().getPlayerStationName(). Set by loadingPlayerState; left empty ...
virtual int messageSize() const override
Get a copy of the message data.
static OwnershipTransferRequestMessage * createFrom(OwnershipTransferRequestMessage *origMsg)
Create a copy of the given message.
virtual bool getAllowRemoteVreOwnership() const
When true, role engagement may complete without a wire transfer when the entity is already simulated ...
OwnershipTransferRequestData getData() const
Get a copy of the message data (const).
static const std::string & theType()
Get the message type string for this instance.
virtual void setAllowRemoteVreOwnership(bool val)
When true, role engagement may complete without a wire transfer when the entity is already simulated ...
bool operator!=(const OwnershipTransferRequestMessage &rhs) const
virtual void setRetainCurrentOwned(bool val)
When true, the connector should not auto-divest the currently-owned entity. The current entity become...
virtual ~OwnershipTransferRequestMessage() override
Destructor.
static OwnershipTransferRequestMessage * createFromData(const OwnershipTransferRequestData data)
Create a new message initialized with the given data.
OwnershipTransferRequestData myData
Definition ownershipTransferRequest.h:227
bool operator==(const OwnershipTransferRequestMessage &rhs) const
Defines export macros for the VREngage Messages library.
#define VREMESSAGES_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
!
Definition glsVreMessageUtil.h:50
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
constexpr const char * OwnershipTransferRequestMessageType
Message type identifier for OwnershipTransferRequestMessage.
Definition ownershipTransferRequest.h:24
Data payload for OwnershipTransferRequestMessage.
Definition ownershipTransferRequest.h:46
DtEntityIdentifier myEntityId
DIS site:host:entity triple. Used for eligibility checks and stored in the attribute store as ownedEn...
Definition ownershipTransferRequest.h:60
unsigned long long myRequestId
Monotonic counter from DtOwnershipTransferSettings::nextRequestId(). Echoed in the response so the wa...
Definition ownershipTransferRequest.h:54
bool myAllowRemoteVreOwnership
When true, role engagement may complete without a wire transfer when the entity is already simulated ...
Definition ownershipTransferRequest.h:75
OwnershipTransferRequestData()
Default constructor.
std::string myRequestingStationId
Numeric VR-Engage station ID from app().engageStationId(). Forwarded into auto-divest release data.
Definition ownershipTransferRequest.h:66
bool operator!=(const OwnershipTransferRequestData &rhs) const
DtUUID myEntityUuid
VRF-internal UUID. Primary key for lastVrfSim() lookup and pending-transfer correlation.
Definition ownershipTransferRequest.h:63
RequestType myRequestType
ACQUIRE to take ownership onto the VRE backend, RELEASE to divest back to the original VRF backend.
Definition ownershipTransferRequest.h:57
bool myRetainCurrentOwned
When true, the connector should not auto-divest the currently-owned entity. The current entity become...
Definition ownershipTransferRequest.h:72
std::string myRequestingRoleName
Player-station or role name from app().getPlayerStationName(). Set by loadingPlayerState; left empty ...
Definition ownershipTransferRequest.h:69
bool operator==(const OwnershipTransferRequestData &rhs) const
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.