|
VR-Engage
2.3
|
Every request carries a stable requestId so the coordinator and waiting states can ignore stale or unrelated responses.
Message type: "vrf.ownership.transferRequest"
#include <ownershipTransferRequest.h>
Classes | |
| struct | OwnershipTransferRequestData |
Public Types | |
| enum | RequestType { RequestType_ACQUIRE , RequestType_RELEASE } |
Public Member Functions | |
| virtual | ~OwnershipTransferRequestMessage () override |
RequestId | |
Monotonic counter from DtOwnershipTransferSettings::nextRequestId(). Echoed in the response so the waiting state can discard stale replies. | |
| virtual unsigned long long | getRequestId () const |
| virtual void | setRequestId (unsigned long long val) |
RequestType | |
ACQUIRE to take ownership onto the VRE backend, RELEASE to divest back to the original VRF backend. | |
| virtual RequestType | getRequestType () const |
| virtual void | setRequestType (RequestType val) |
EntityId | |
DIS site:host:entity triple. Used for eligibility checks and stored in the attribute store as ownedEntityId. | |
| virtual const DtEntityIdentifier & | getEntityId () const |
| virtual void | setEntityId (const DtEntityIdentifier &val) |
EntityUuid | |
VRF-internal UUID. Primary key for lastVrfSim() lookup and pending-transfer correlation. | |
| virtual const DtUUID & | getEntityUuid () const |
| virtual void | setEntityUuid (const DtUUID &val) |
RequestingStationId | |
Numeric VR-Engage station ID from app().engageStationId(). Forwarded into auto-divest release data. | |
| virtual const std::string & | getRequestingStationId () const |
| virtual void | setRequestingStationId (const std::string &val) |
RequestingRoleName | |
Player-station or role name from app().getPlayerStationName(). Set by loadingPlayerState; left empty by synthetic releases. | |
| virtual const std::string & | getRequestingRoleName () const |
| virtual void | setRequestingRoleName (const std::string &val) |
RetainCurrentOwned | |
When true, the connector should not auto-divest the currently-owned entity. The current entity becomes a secondary owned entity. Used by embarkation-chained acquires. | |
| virtual bool | getRetainCurrentOwned () const |
| virtual void | setRetainCurrentOwned (bool val) |
AllowRemoteVreOwnership | |
When true, role engagement may complete without a wire transfer when the entity is already simulated by a remote VR-Engage ownship backend. False requires local ownership, including for towing. | |
| virtual bool | getAllowRemoteVreOwnership () const |
| virtual void | setAllowRemoteVreOwnership (bool val) |
Operators | |
| bool | operator== (const OwnershipTransferRequestMessage &rhs) const |
| bool | operator!= (const OwnershipTransferRequestMessage &rhs) const |
Static Public Member Functions | |
Static Creators | |
Create a new default instance.
| |
| static OwnershipTransferRequestMessage * | create () |
| static OwnershipTransferRequestMessage * | createFrom (OwnershipTransferRequestMessage *origMsg) |
| static OwnershipTransferRequestMessage * | createFromData (const OwnershipTransferRequestData data) |
Protected Member Functions | |
| OwnershipTransferRequestMessage () | |
| virtual void | serialize (DtStreamWriter &writer) const override |
| virtual void | deserialize (DtStreamReader &reader) override |
Protected Attributes | |
| OwnershipTransferRequestData | myData |
Static Protected Attributes | |
| static makVre::DtVreMessageId | theMessageId |
| static UInt64 | theVersion |
Type Identity | |
Get the message type string for this message class. | |
| virtual const std::string & | type () const override |
| virtual const makVre::DtVreMessageId & | messageId () const override |
| static const std::string & | theType () |
| static const makVre::DtVreMessageId & | theId () |
| static UInt64 | theVersionNumber () |
Serialization | |
Static decode function pattern for derived classes.
Gets the total size of the serialized message in bytes
This method calculates the total size of the message when serialized, including the base message header (message size, type hash, application ID, version, and delay) and any data added by derived classes. Derived classes should override this method to include their own data size while calling the base class implementation. | |
| virtual int | messageSize () const override |
| OwnershipTransferRequestData | getData () |
| OwnershipTransferRequestData | getData () const |
| static makVre::DtVreMessage * | decode (char *buffer, int length) |
RequestType enumeration.
| Enumerator | |
|---|---|
| RequestType_ACQUIRE | |
| RequestType_RELEASE | |
|
overridevirtual |
Destructor.
|
protected |
Referenced by create(), createFrom(), createFromData(), operator!=(), and operator==().
|
static |
Create a copy of the given message.
| origMsg | The message to copy. Must not be null. |
References OwnershipTransferRequestMessage().
|
static |
Create a copy of the given message.
| origMsg | The message to copy. Must not be null. |
References OwnershipTransferRequestMessage().
|
static |
Create a new message initialized with the given data.
| data | The data payload to initialize the message with. |
References OwnershipTransferRequestMessage().
|
static |
Get the message type string for this instance.
|
static |
Get the message identifier for this message class.
|
static |
Get the version number for this message class.
|
overridevirtual |
Get the message type string for this instance.
Implements makVre::DtVreMessage.
|
overridevirtual |
Get the message identifier for this instance.
Implements makVre::DtVreMessage.
|
virtual |
Monotonic counter from DtOwnershipTransferSettings::nextRequestId(). Echoed in the response so the waiting state can discard stale replies.
|
virtual |
Monotonic counter from DtOwnershipTransferSettings::nextRequestId(). Echoed in the response so the waiting state can discard stale replies.
|
virtual |
ACQUIRE to take ownership onto the VRE backend, RELEASE to divest back to the original VRF backend.
|
virtual |
ACQUIRE to take ownership onto the VRE backend, RELEASE to divest back to the original VRF backend.
|
virtual |
DIS site:host:entity triple. Used for eligibility checks and stored in the attribute store as ownedEntityId.
|
virtual |
DIS site:host:entity triple. Used for eligibility checks and stored in the attribute store as ownedEntityId.
|
virtual |
VRF-internal UUID. Primary key for lastVrfSim() lookup and pending-transfer correlation.
|
virtual |
VRF-internal UUID. Primary key for lastVrfSim() lookup and pending-transfer correlation.
|
virtual |
Numeric VR-Engage station ID from app().engageStationId(). Forwarded into auto-divest release data.
|
virtual |
Numeric VR-Engage station ID from app().engageStationId(). Forwarded into auto-divest release data.
|
virtual |
Player-station or role name from app().getPlayerStationName(). Set by loadingPlayerState; left empty by synthetic releases.
|
virtual |
Player-station or role name from app().getPlayerStationName(). Set by loadingPlayerState; left empty by synthetic releases.
|
virtual |
When true, the connector should not auto-divest the currently-owned entity. The current entity becomes a secondary owned entity. Used by embarkation-chained acquires.
|
virtual |
When true, the connector should not auto-divest the currently-owned entity. The current entity becomes a secondary owned entity. Used by embarkation-chained acquires.
|
virtual |
When true, role engagement may complete without a wire transfer when the entity is already simulated by a remote VR-Engage ownship backend. False requires local ownership, including for towing.
|
virtual |
When true, role engagement may complete without a wire transfer when the entity is already simulated by a remote VR-Engage ownship backend. False requires local ownership, including for towing.
|
overridevirtual |
Get a copy of the message data.
Reimplemented from makVre::DtVreMessage.
|
static |
Decode a message from a byte buffer.
| buffer | The raw byte buffer to decode from. |
| length | The length of the buffer in bytes. |
| OwnershipTransferRequestData makVre::OwnershipTransferRequestMessage::getData | ( | ) |
Get a copy of the message data.
| OwnershipTransferRequestData makVre::OwnershipTransferRequestMessage::getData | ( | ) | const |
Get a copy of the message data (const).
| bool makVre::OwnershipTransferRequestMessage::operator== | ( | const OwnershipTransferRequestMessage & | rhs | ) | const |
References OwnershipTransferRequestMessage().
| bool makVre::OwnershipTransferRequestMessage::operator!= | ( | const OwnershipTransferRequestMessage & | rhs | ) | const |
References OwnershipTransferRequestMessage().
|
overrideprotectedvirtual |
Serializes the message to a stream writer.
| writer | Reference to the stream writer |
This method writes the message header fields to the stream writer. Derived classes should override this method to add their own fields while calling the base class implementation.
Reimplemented from makVre::DtVreMessage.
|
overrideprotectedvirtual |
Deserializes the message from a stream reader.
| reader | Reference to the stream reader |
This method reads the message header fields from the stream reader. Derived classes should override this method to read their own fields while calling the base class implementation.
Reimplemented from makVre::DtVreMessage.
|
staticprotected |
|
staticprotected |
|
protected |