VR-Engage  2.2
Loading...
Searching...
No Matches
cigiStartSession.h
Go to the documentation of this file.
1/*********************************************************************************
2** Copyright (c) 2025 MAK Technologies, Inc.
3** All rights reserved.
4*********************************************************************************/
5
6/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7!!!!!!!!!This is an auto-generated file. Any changes will be destroyed!!!!!!!!!!!
8!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9Generated from: /data/exports/DEV-CAM-BML-043/nightly/3085/libsrc/framework/vreMessages/cigiHostControl.lua
10*/
11
12#pragma once
13
16#include <vreMessages/export.h>
17#include <vlpi/simulationAddress.h>
18#include <string>
19
20
21namespace makVre
22{
23
24
25constexpr const char* VreCigiStartSessionMessageType = "cigi.control.startSession";
26
28{
29public:
33
34
35 // Struct for defining data
37 {
39
40 DtSimulationAddress myHostSimAddress;
41 std::string myHostConfig;
42 std::string myIgAddress;
43 std::string myName;
44
45 bool operator==(const VreCigiStartSessionData& rhs) const;
46 };
47
48 // Default static creators to promote the usage of not using new.
52
53 //! \brief static message identity functions
54 static const std::string& theType();
57
58 //! \brief Get the name of the message type
59 virtual const std::string& type() const override;
60 virtual const makVre::DtVreMessageId& messageId() const override;
61
62 // default destructor
63 virtual ~VreCigiStartSessionMessage() override;
64
65 virtual const DtSimulationAddress& getHostSimAddress() const;
66 virtual void setHostSimAddress(const DtSimulationAddress& val);
67
68 virtual const std::string& getHostConfig() const;
69 virtual void setHostConfig(const std::string& val);
70
71 virtual const std::string& getIgAddress() const;
72 virtual void setIgAddress(const std::string& val);
73
74 virtual const std::string& getName() const;
75 virtual void setName(const std::string& val);
76
77
78 // Accessors
79 virtual int messageSize() const override;
80 static makVre::DtVreMessage* decode(char* buffer, int length);
83
84 // Operators
85 bool operator==(const VreCigiStartSessionMessage& rhs) const;
86
87protected:
88 // Inaccessible default constructor to promote the usage of the static creator functions
90
91 virtual void serialize(DtStreamWriter& writer) const override;
92 virtual void deserialize(DtStreamReader& reader) override;
93
94protected:
97
98 // Store the data for future use
100};
101
102} // ::makVre
103
104
105
Reader class for decoding values from a byte array.
Definition byteStream.h:42
Writer class for encoding values into a byte array.
Definition byteStream.h:161
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Message identifier class for the VREngage messaging system.
Definition vreMessageId.h:35
bool operator==(const VreCigiStartSessionMessage &rhs) const
VreCigiStartSessionData getData()
virtual ~VreCigiStartSessionMessage() override
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static VreCigiStartSessionMessage * createFromData(const VreCigiStartSessionData)
ForceFilter
Definition cigiStartSession.h:31
@ ForceFilter_ALL
Definition cigiStartSession.h:31
@ ForceFilter_HOSTILE
Definition cigiStartSession.h:31
@ ForceFilter_FRIENDLY
Definition cigiStartSession.h:31
virtual const makVre::DtVreMessageId & messageId() const override
Gets the message ID object.
virtual const std::string & type() const override
Get the name of the message type.
static makVre::DtVreMessage * decode(char *buffer, int length)
IgSyncMode
Definition cigiStartSession.h:32
@ IgSyncMode_SYNCHRONOUS
Definition cigiStartSession.h:32
@ IgSyncMode_ASYNCHRONOUS
Definition cigiStartSession.h:32
static UInt64 theVersion
Definition cigiStartSession.h:96
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual const std::string & getIgAddress() const
static const std::string & theType()
static message identity functions
virtual void setIgAddress(const std::string &val)
VreCigiStartSessionData myData
Definition cigiStartSession.h:99
virtual void setHostConfig(const std::string &val)
static VreCigiStartSessionMessage * createFrom(VreCigiStartSessionMessage *)
virtual const DtSimulationAddress & getHostSimAddress() const
virtual int messageSize() const override
Static decode function pattern for derived classes.
static VreCigiStartSessionMessage * create()
static makVre::DtVreMessageId theMessageId
Definition cigiStartSession.h:95
virtual void setName(const std::string &val)
virtual const std::string & getName() const
virtual const std::string & getHostConfig() const
SocketType
Definition cigiStartSession.h:30
@ SocketType_TCP_CLIENT
Definition cigiStartSession.h:30
@ SocketType_UDP
Definition cigiStartSession.h:30
@ SocketType_TCP_SERVER
Definition cigiStartSession.h:30
static const makVre::DtVreMessageId & theId()
virtual void setHostSimAddress(const DtSimulationAddress &val)
VreCigiStartSessionData getData() const
Defines export macros for the VREngage Messages library.
#define VREMESSAGES_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
constexpr const char * VreCigiStartSessionMessageType
Definition cigiStartSession.h:25
std::string myIgAddress
Definition cigiStartSession.h:42
std::string myName
Definition cigiStartSession.h:43
bool operator==(const VreCigiStartSessionData &rhs) const
DtSimulationAddress myHostSimAddress
Definition cigiStartSession.h:40
std::string myHostConfig
Definition cigiStartSession.h:41
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.