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

Detailed Description

Sets which character model to show for the ownship entity.

Message type: "human.setCharacterModel"

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

Note this change is local to this VR-Engage station.

Message type: "human.setCharacterModel"

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

#include <setCharacterModel.h>

Inheritance diagram for makVre::SetCharacterModelMessage:
[legend]

Classes

struct  SetCharacterModelData
 

Public Types

enum  Model { Model_FIRST_PERSON , Model_THIRD_PERSON , Model_FIRST_PERSON , Model_THIRD_PERSON }
 
enum  Model { Model_FIRST_PERSON , Model_THIRD_PERSON , Model_FIRST_PERSON , Model_THIRD_PERSON }
 

Public Member Functions

virtual ~SetCharacterModelMessage () override
 
virtual ~SetCharacterModelMessage () override
 
Accessors
virtual Model getMode () const
 
virtual void setMode (Model val)
 
virtual Model getMode () const
 
virtual void setMode (Model val)
 
Operators
bool operator== (const SetCharacterModelMessage &rhs) const
 
bool operator!= (const SetCharacterModelMessage &rhs) const
 
bool operator== (const SetCharacterModelMessage &rhs) const
 
bool operator!= (const SetCharacterModelMessage &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 SetCharacterModelMessage * create ()
 
static SetCharacterModelMessage * createFrom (SetCharacterModelMessage *origMsg)
 
static SetCharacterModelMessage * createFromData (const SetCharacterModelData data)
 
static SetCharacterModelMessage * create ()
 
static SetCharacterModelMessage * createFrom (SetCharacterModelMessage *origMsg)
 
static SetCharacterModelMessage * createFromData (const SetCharacterModelData data)
 

Protected Member Functions

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

Protected Attributes

SetCharacterModelData 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
 
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 ()
 
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
 
SetCharacterModelData getData ()
 
SetCharacterModelData getData () const
 
virtual int messageSize () const override
 
SetCharacterModelData getData ()
 
SetCharacterModelData getData () const
 
static makVre::DtVreMessage * decode (char *buffer, int length)
 
static makVre::DtVreMessage * decode (char *buffer, int length)
 

Member Enumeration Documentation

◆ Model [1/2]

Model enumeration.

Enumerator
Model_FIRST_PERSON 
Model_THIRD_PERSON 
Model_FIRST_PERSON 
Model_THIRD_PERSON 

◆ Model [2/2]

Model enumeration.

Enumerator
Model_FIRST_PERSON 
Model_THIRD_PERSON 
Model_FIRST_PERSON 
Model_THIRD_PERSON 

Constructor & Destructor Documentation

◆ ~SetCharacterModelMessage() [1/2]

virtual makVre::SetCharacterModelMessage::~SetCharacterModelMessage ( )
overridevirtual

Destructor.

◆ SetCharacterModelMessage() [1/2]

makVre::SetCharacterModelMessage::SetCharacterModelMessage ( )
protected

◆ ~SetCharacterModelMessage() [2/2]

virtual makVre::SetCharacterModelMessage::~SetCharacterModelMessage ( )
overridevirtual

Destructor.

◆ SetCharacterModelMessage() [2/2]

makVre::SetCharacterModelMessage::SetCharacterModelMessage ( )
protected

Member Function Documentation

◆ create() [1/2]

static SetCharacterModelMessage * makVre::SetCharacterModelMessage::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 SetCharacterModelMessage().

◆ createFrom() [1/2]

static SetCharacterModelMessage * makVre::SetCharacterModelMessage::createFrom ( SetCharacterModelMessage * 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 SetCharacterModelMessage().

◆ createFromData() [1/2]

static SetCharacterModelMessage * makVre::SetCharacterModelMessage::createFromData ( const SetCharacterModelData 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 SetCharacterModelMessage().

◆ theType() [1/2]

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

Get the message type string for this instance.

◆ theId() [1/2]

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

Get the message identifier for this message class.

◆ theVersionNumber() [1/2]

static UInt64 makVre::SetCharacterModelMessage::theVersionNumber ( )
static

Get the version number for this message class.

◆ type() [1/2]

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

Get the message type string for this instance.

Implements makVre::DtVreMessage.

◆ messageId() [1/2]

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

Get the message identifier for this instance.

Implements makVre::DtVreMessage.

◆ getMode() [1/2]

virtual Model makVre::SetCharacterModelMessage::getMode ( ) const
virtual

◆ setMode() [1/2]

virtual void makVre::SetCharacterModelMessage::setMode ( Model val)
virtual

◆ messageSize() [1/2]

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

Get a copy of the message data.

Reimplemented from makVre::DtVreMessage.

◆ decode() [1/2]

static makVre::DtVreMessage * makVre::SetCharacterModelMessage::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/4]

SetCharacterModelData makVre::SetCharacterModelMessage::getData ( )

Get a copy of the message data.

◆ getData() [2/4]

SetCharacterModelData makVre::SetCharacterModelMessage::getData ( ) const

Get a copy of the message data (const).

◆ operator==() [1/2]

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

◆ operator!=() [1/2]

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

◆ serialize() [1/2]

virtual void makVre::SetCharacterModelMessage::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() [1/2]

virtual void makVre::SetCharacterModelMessage::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.

◆ create() [2/2]

static SetCharacterModelMessage * makVre::SetCharacterModelMessage::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 SetCharacterModelMessage().

◆ createFrom() [2/2]

static SetCharacterModelMessage * makVre::SetCharacterModelMessage::createFrom ( SetCharacterModelMessage * 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 SetCharacterModelMessage().

◆ createFromData() [2/2]

static SetCharacterModelMessage * makVre::SetCharacterModelMessage::createFromData ( const SetCharacterModelData 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 SetCharacterModelMessage().

◆ theType() [2/2]

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

Get the message type string for this instance.

◆ theId() [2/2]

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

Get the message identifier for this message class.

◆ theVersionNumber() [2/2]

static UInt64 makVre::SetCharacterModelMessage::theVersionNumber ( )
static

Get the version number for this message class.

◆ type() [2/2]

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

Get the message type string for this instance.

Implements makVre::DtVreMessage.

◆ messageId() [2/2]

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

Get the message identifier for this instance.

Implements makVre::DtVreMessage.

◆ getMode() [2/2]

virtual Model makVre::SetCharacterModelMessage::getMode ( ) const
virtual

◆ setMode() [2/2]

virtual void makVre::SetCharacterModelMessage::setMode ( Model val)
virtual

◆ messageSize() [2/2]

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

Get a copy of the message data.

Reimplemented from makVre::DtVreMessage.

◆ decode() [2/2]

static makVre::DtVreMessage * makVre::SetCharacterModelMessage::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() [3/4]

SetCharacterModelData makVre::SetCharacterModelMessage::getData ( )

Get a copy of the message data.

◆ getData() [4/4]

SetCharacterModelData makVre::SetCharacterModelMessage::getData ( ) const

Get a copy of the message data (const).

◆ operator==() [2/2]

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

◆ operator!=() [2/2]

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

◆ serialize() [2/2]

virtual void makVre::SetCharacterModelMessage::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() [2/2]

virtual void makVre::SetCharacterModelMessage::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.

References myData, theMessageId, and theVersion.

Member Data Documentation

◆ theMessageId

static makVre::DtVreMessageId makVre::SetCharacterModelMessage::theMessageId
staticprotected

Referenced by deserialize().

◆ theVersion

static UInt64 makVre::SetCharacterModelMessage::theVersion
staticprotected

Referenced by deserialize().

◆ myData

SetCharacterModelData makVre::SetCharacterModelMessage::myData
protected

Referenced by deserialize().


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