VR-Engage  2.3
Loading...
Searching...
No Matches
makVre::OwnershipTransferResponseMessage Class Reference

Detailed Description

Mirrors the requestId and entityUuid from the originating request so waiting states can ignore stale responses.

Message type: "vrf.ownership.transferResponse"

Note
This is an auto-generated class. Do not modify directly.

#include <ownershipTransferResponse.h>

Inheritance diagram for makVre::OwnershipTransferResponseMessage:
[legend]

Classes

struct  OwnershipTransferResponseData
 

Public Types

enum  ResponseStatus {
  ResponseStatus_SUCCESS , ResponseStatus_FAILURE , ResponseStatus_PENDING , ResponseStatus_SKIPPED ,
  ResponseStatus_DISABLED
}
 
enum  ResponseType { ResponseType_ACQUIRE , ResponseType_RELEASE }
 

Public Member Functions

virtual ~OwnershipTransferResponseMessage () override
 
RequestId

Echoed from the originating request. Consumer compares against its pending ID to discard stale responses.

virtual unsigned long long getRequestId () const
 
virtual void setRequestId (unsigned long long val)
 
ResponseStatus

Terminal result. Loading-state acquires continue after SUCCESS, SKIPPED, DISABLED, or FAILURE; divest consumers retain their failure handling.

virtual ResponseStatus getResponseStatus () const
 
virtual void setResponseStatus (ResponseStatus val)
 
ResponseType

Mirrors the request type: ACQUIRE or RELEASE.

virtual ResponseType getResponseType () const
 
virtual void setResponseType (ResponseType val)
 
EntityId

DIS entity triple echoed from the request. Not read by the loadingPlayerState consumer.

virtual const DtEntityIdentifier & getEntityId () const
 
virtual void setEntityId (const DtEntityIdentifier &val)
 
EntityUuid

VRF UUID echoed from the request. Not read by the loadingPlayerState consumer.

virtual const DtUUID & getEntityUuid () const
 
virtual void setEntityUuid (const DtUUID &val)
 
Message

Human-readable detail string. Read on FAILURE to provide error context in the UI.

virtual const std::string & getMessage () const
 
virtual void setMessage (const std::string &val)
 
Operators
bool operator== (const OwnershipTransferResponseMessage &rhs) const
 
bool operator!= (const OwnershipTransferResponseMessage &rhs) const
 
- Public Member Functions inherited from makVre::DtVreMessage
 DtVreMessage ()
 
virtual ~DtVreMessage ()
 
virtual char * encode ()
 
virtual void encode (char *buffer, int bufferSize)
 
virtual const UInt64 originatingApplicationId () const
 
virtual void setOriginatingApplicationId (UInt64 appId)
 
virtual void setDelay (double delay)
 
virtual bool isDelayed ()
 
virtual void reduceDelay (double dt)
 
virtual const UInt64 versionNumber () const
 

Static Public Member Functions

Static Creators

Create a new default instance.

Returns
A dynamically allocated default message. Caller takes ownership.
static OwnershipTransferResponseMessage * create ()
 
static OwnershipTransferResponseMessage * createFrom (OwnershipTransferResponseMessage *origMsg)
 
static OwnershipTransferResponseMessage * createFromData (const OwnershipTransferResponseData data)
 

Protected Member Functions

 OwnershipTransferResponseMessage ()
 
virtual void serialize (DtStreamWriter &writer) const override
 
virtual void deserialize (DtStreamReader &reader) override
 

Protected Attributes

OwnershipTransferResponseData myData
 
- Protected Attributes inherited from makVre::DtVreMessage
double myDelay
 
UInt64 myApplicationId
 
UInt64 myVersion
 

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.

Note
Each derived class must implement a static decode function with the signature:
static DtVreMessage* decode(unsigned char* buffer, int length);
DtVreMessage()
Default constructor.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
This function is used by the message factory to create messages from raw data.

Gets the total size of the serialized message in bytes

Returns
Size of the 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
 
OwnershipTransferResponseData getData ()
 
OwnershipTransferResponseData getData () const
 
static makVre::DtVreMessage * decode (char *buffer, int length)
 

Member Enumeration Documentation

◆ ResponseStatus

ResponseStatus enumeration.

Enumerator
ResponseStatus_SUCCESS 
ResponseStatus_FAILURE 
ResponseStatus_PENDING 
ResponseStatus_SKIPPED 
ResponseStatus_DISABLED 

◆ ResponseType

ResponseType enumeration.

Enumerator
ResponseType_ACQUIRE 
ResponseType_RELEASE 

Constructor & Destructor Documentation

◆ ~OwnershipTransferResponseMessage()

virtual makVre::OwnershipTransferResponseMessage::~OwnershipTransferResponseMessage ( )
overridevirtual

Destructor.

◆ OwnershipTransferResponseMessage()

makVre::OwnershipTransferResponseMessage::OwnershipTransferResponseMessage ( )
protected

Member Function Documentation

◆ create()

static OwnershipTransferResponseMessage * makVre::OwnershipTransferResponseMessage::create ( )
static

Create a copy of the given message.

Parameters
origMsgThe message to copy. Must not be null.
Returns
A dynamically allocated copy. Caller takes ownership.

References OwnershipTransferResponseMessage().

◆ createFrom()

static OwnershipTransferResponseMessage * makVre::OwnershipTransferResponseMessage::createFrom ( OwnershipTransferResponseMessage * origMsg)
static

Create a copy of the given message.

Parameters
origMsgThe message to copy. Must not be null.
Returns
A dynamically allocated copy. Caller takes ownership.

References OwnershipTransferResponseMessage().

◆ createFromData()

static OwnershipTransferResponseMessage * makVre::OwnershipTransferResponseMessage::createFromData ( const OwnershipTransferResponseData data)
static

Create a new message initialized with the given data.

Parameters
dataThe data payload to initialize the message with.
Returns
A dynamically allocated message. Caller takes ownership.

References OwnershipTransferResponseMessage().

◆ theType()

static const std::string & makVre::OwnershipTransferResponseMessage::theType ( )
static

Get the message type string for this instance.

◆ theId()

static const makVre::DtVreMessageId & makVre::OwnershipTransferResponseMessage::theId ( )
static

Get the message identifier for this message class.

◆ theVersionNumber()

static UInt64 makVre::OwnershipTransferResponseMessage::theVersionNumber ( )
static

Get the version number for this message class.

◆ type()

virtual const std::string & makVre::OwnershipTransferResponseMessage::type ( ) const
overridevirtual

Get the message type string for this instance.

Implements makVre::DtVreMessage.

◆ messageId()

virtual const makVre::DtVreMessageId & makVre::OwnershipTransferResponseMessage::messageId ( ) const
overridevirtual

Get the message identifier for this instance.

Implements makVre::DtVreMessage.

◆ getRequestId()

virtual unsigned long long makVre::OwnershipTransferResponseMessage::getRequestId ( ) const
virtual

Echoed from the originating request. Consumer compares against its pending ID to discard stale responses.

◆ setRequestId()

virtual void makVre::OwnershipTransferResponseMessage::setRequestId ( unsigned long long val)
virtual

Echoed from the originating request. Consumer compares against its pending ID to discard stale responses.

◆ getResponseStatus()

virtual ResponseStatus makVre::OwnershipTransferResponseMessage::getResponseStatus ( ) const
virtual

Terminal result. Loading-state acquires continue after SUCCESS, SKIPPED, DISABLED, or FAILURE; divest consumers retain their failure handling.

◆ setResponseStatus()

virtual void makVre::OwnershipTransferResponseMessage::setResponseStatus ( ResponseStatus val)
virtual

Terminal result. Loading-state acquires continue after SUCCESS, SKIPPED, DISABLED, or FAILURE; divest consumers retain their failure handling.

◆ getResponseType()

virtual ResponseType makVre::OwnershipTransferResponseMessage::getResponseType ( ) const
virtual

Mirrors the request type: ACQUIRE or RELEASE.

◆ setResponseType()

virtual void makVre::OwnershipTransferResponseMessage::setResponseType ( ResponseType val)
virtual

Mirrors the request type: ACQUIRE or RELEASE.

◆ getEntityId()

virtual const DtEntityIdentifier & makVre::OwnershipTransferResponseMessage::getEntityId ( ) const
virtual

DIS entity triple echoed from the request. Not read by the loadingPlayerState consumer.

◆ setEntityId()

virtual void makVre::OwnershipTransferResponseMessage::setEntityId ( const DtEntityIdentifier & val)
virtual

DIS entity triple echoed from the request. Not read by the loadingPlayerState consumer.

◆ getEntityUuid()

virtual const DtUUID & makVre::OwnershipTransferResponseMessage::getEntityUuid ( ) const
virtual

VRF UUID echoed from the request. Not read by the loadingPlayerState consumer.

◆ setEntityUuid()

virtual void makVre::OwnershipTransferResponseMessage::setEntityUuid ( const DtUUID & val)
virtual

VRF UUID echoed from the request. Not read by the loadingPlayerState consumer.

◆ getMessage()

virtual const std::string & makVre::OwnershipTransferResponseMessage::getMessage ( ) const
virtual

Human-readable detail string. Read on FAILURE to provide error context in the UI.

◆ setMessage()

virtual void makVre::OwnershipTransferResponseMessage::setMessage ( const std::string & val)
virtual

Human-readable detail string. Read on FAILURE to provide error context in the UI.

◆ messageSize()

virtual int makVre::OwnershipTransferResponseMessage::messageSize ( ) const
overridevirtual

Get a copy of the message data.

Reimplemented from makVre::DtVreMessage.

◆ decode()

static makVre::DtVreMessage * makVre::OwnershipTransferResponseMessage::decode ( char * buffer,
int length )
static

Decode a message from a byte buffer.

Parameters
bufferThe raw byte buffer to decode from.
lengthThe length of the buffer in bytes.
Returns
A dynamically allocated decoded message. Caller takes ownership.

◆ getData() [1/2]

OwnershipTransferResponseData makVre::OwnershipTransferResponseMessage::getData ( )

Get a copy of the message data.

◆ getData() [2/2]

OwnershipTransferResponseData makVre::OwnershipTransferResponseMessage::getData ( ) const

Get a copy of the message data (const).

◆ operator==()

bool makVre::OwnershipTransferResponseMessage::operator== ( const OwnershipTransferResponseMessage & rhs) const

◆ operator!=()

bool makVre::OwnershipTransferResponseMessage::operator!= ( const OwnershipTransferResponseMessage & rhs) const

◆ serialize()

virtual void makVre::OwnershipTransferResponseMessage::serialize ( DtStreamWriter & writer) const
overrideprotectedvirtual

Serializes the message to a stream writer.

Parameters
writerReference 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.

◆ deserialize()

virtual void makVre::OwnershipTransferResponseMessage::deserialize ( DtStreamReader & reader)
overrideprotectedvirtual

Deserializes the message from a stream reader.

Parameters
readerReference 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.

Member Data Documentation

◆ theMessageId

makVre::DtVreMessageId makVre::OwnershipTransferResponseMessage::theMessageId
staticprotected

◆ theVersion

UInt64 makVre::OwnershipTransferResponseMessage::theVersion
staticprotected

◆ myData

OwnershipTransferResponseData makVre::OwnershipTransferResponseMessage::myData
protected

The documentation for this class was generated from the following file: