VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::SetBackendConfigMessage Class Reference

#include <setBackendConfig.h>

Inheritance diagram for makVre::SetBackendConfigMessage:
[legend]

Classes

struct  SetBackendConfigData
 

Public Member Functions

virtual const std::string & type () const override
 
virtual const makVre::DtVreMessageIdmessageId () const override
 
virtual ~SetBackendConfigMessage () override
 
virtual int getSiteId () const
 
virtual void setSiteId (int val)
 
virtual int getApplicationId () const
 
virtual void setApplicationId (int val)
 
virtual int getSessionId () const
 
virtual void setSessionId (int val)
 
virtual const std::vector< std::string > & getPlugins () const
 
virtual void setPlugins (const std::vector< std::string > &val)
 
virtual bool getShowConsole () const
 
virtual void setShowConsole (bool val)
 
virtual const std::string & getAdditionalCommandLineArguments () const
 
virtual void setAdditionalCommandLineArguments (const std::string &val)
 
virtual int messageSize () const override
 
SetBackendConfigData getData ()
 
SetBackendConfigData getData () const
 
bool operator== (const SetBackendConfigMessage &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 SetBackendConfigMessagecreate ()
 
static SetBackendConfigMessagecreateFrom (SetBackendConfigMessage *)
 
static SetBackendConfigMessagecreateFromData (const SetBackendConfigData)
 
static const std::string & theType ()
 
static const makVre::DtVreMessageIdtheId ()
 
static UInt64 theVersionNumber ()
 
static makVre::DtVreMessagedecode (char *buffer, int length)
 

Protected Member Functions

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

Protected Attributes

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

Static Protected Attributes

static makVre::DtVreMessageId theMessageId
 
static UInt64 theVersion
 

Constructor & Destructor Documentation

◆ ~SetBackendConfigMessage()

virtual makVre::SetBackendConfigMessage::~SetBackendConfigMessage ( )
overridevirtual

◆ SetBackendConfigMessage()

makVre::SetBackendConfigMessage::SetBackendConfigMessage ( )
protected

Member Function Documentation

◆ create()

static SetBackendConfigMessage * makVre::SetBackendConfigMessage::create ( )
static

◆ createFrom()

static SetBackendConfigMessage * makVre::SetBackendConfigMessage::createFrom ( SetBackendConfigMessage * )
static

◆ createFromData()

static SetBackendConfigMessage * makVre::SetBackendConfigMessage::createFromData ( const SetBackendConfigData )
static

◆ theType()

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

static message identity functions

◆ theId()

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

◆ theVersionNumber()

static UInt64 makVre::SetBackendConfigMessage::theVersionNumber ( )
static

◆ type()

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

Get the name of the message type.

Implements makVre::DtVreMessage.

◆ messageId()

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

Gets the message ID object.

Returns
Reference to the message ID object

This pure virtual method must be implemented by derived classes to return a unique identifier object for the message. The message ID contains both the type name and a hash value for efficient routing.

Implements makVre::DtVreMessage.

◆ getSiteId()

virtual int makVre::SetBackendConfigMessage::getSiteId ( ) const
virtual

◆ setSiteId()

virtual void makVre::SetBackendConfigMessage::setSiteId ( int val)
virtual

◆ getApplicationId()

virtual int makVre::SetBackendConfigMessage::getApplicationId ( ) const
virtual

◆ setApplicationId()

virtual void makVre::SetBackendConfigMessage::setApplicationId ( int val)
virtual

◆ getSessionId()

virtual int makVre::SetBackendConfigMessage::getSessionId ( ) const
virtual

◆ setSessionId()

virtual void makVre::SetBackendConfigMessage::setSessionId ( int val)
virtual

◆ getPlugins()

virtual const std::vector< std::string > & makVre::SetBackendConfigMessage::getPlugins ( ) const
virtual

◆ setPlugins()

virtual void makVre::SetBackendConfigMessage::setPlugins ( const std::vector< std::string > & val)
virtual

◆ getShowConsole()

virtual bool makVre::SetBackendConfigMessage::getShowConsole ( ) const
virtual

◆ setShowConsole()

virtual void makVre::SetBackendConfigMessage::setShowConsole ( bool val)
virtual

◆ getAdditionalCommandLineArguments()

virtual const std::string & makVre::SetBackendConfigMessage::getAdditionalCommandLineArguments ( ) const
virtual

◆ setAdditionalCommandLineArguments()

virtual void makVre::SetBackendConfigMessage::setAdditionalCommandLineArguments ( const std::string & val)
virtual

◆ messageSize()

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

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)
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.

Reimplemented from makVre::DtVreMessage.

◆ decode()

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

◆ getData() [1/2]

SetBackendConfigData makVre::SetBackendConfigMessage::getData ( )

◆ getData() [2/2]

SetBackendConfigData makVre::SetBackendConfigMessage::getData ( ) const

◆ operator==()

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

◆ serialize()

virtual void makVre::SetBackendConfigMessage::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::SetBackendConfigMessage::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::SetBackendConfigMessage::theMessageId
staticprotected

◆ theVersion

UInt64 makVre::SetBackendConfigMessage::theVersion
staticprotected

◆ myData

SetBackendConfigData makVre::SetBackendConfigMessage::myData
protected

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