VR-Engage  2.3
Loading...
Searching...
No Matches
fireInput.h
Go to the documentation of this file.
1/*********************************************************************************
2** Copyright (c) 2026 MAK Technologies, Inc.
3** All rights reserved.
4*********************************************************************************/
5
6/**
7* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
8* !!!!!!!!!This is an auto-generated file. Any changes will be destroyed!!!!!!!!!!!
9* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10* Generated from: /home/data/exports/DEV-CAM-BML-305/nightly/3375/libsrc/framework/vreMessages/fireInput.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <vlpi/entityIdentifier.h>
18#include <string>
19#include <vlpi/entityType.h>
20#include <matrix/vlVector.h>
21#include <matrix/vlTaitBryan.h>
22
23namespace makVre
24{
25//! \brief Message type identifier for FireInputMessage.
26constexpr const char* FireInputMessageType = "system.input.fireInput";
27
28/**
29 * \class FireInputMessage
30 * \brief Send to cause the ownship entity to fire its weapon.
31 *
32 * Message type: "system.input.fireInput"
33 *
34 * \note This is an auto-generated class. Do not modify directly.
35 */
37{
38public:
39
40 //! \brief Data payload for FireInputMessage.
42 {
43 //! \brief Default constructor.
45
46 //! \name Data Members
47 //! \{
48
49 DtEntityIdentifier myEntityId;
50 std::string myWeaponGroup;
51 DtEntityType myMunitionType;
53 DtTaitBryan myWorldOrientation;
56 //! \}
57
58 //! \name Operators
59 //! \{
60 bool operator==(const FireInputData& rhs) const;
61 bool operator!=(const FireInputData& rhs) const;
62 //! \}
63 };
64
65 //! \brief Destructor.
66 virtual ~FireInputMessage() override;
67
68 //! \name Static Creators
69 //! \{
70 //! \brief Create a new default instance.
71 //! \return A dynamically allocated default message. Caller takes ownership.
73
74 //! \brief Create a copy of the given message.
75 //! \param origMsg The message to copy. Must not be null.
76 //! \return A dynamically allocated copy. Caller takes ownership.
78
79 //! \brief Create a new message initialized with the given data.
80 //! \param data The data payload to initialize the message with.
81 //! \return A dynamically allocated message. Caller takes ownership.
83 //! \}
84
85 //! \name Type Identity
86 //! \{
87 //! \brief Get the message type string for this message class.
88 static const std::string& theType();
89
90 //! \brief Get the message identifier for this message class.
92
93 //! \brief Get the version number for this message class.
95
96 //! \brief Get the message type string for this instance.
97 virtual const std::string& type() const override;
98
99 //! \brief Get the message identifier for this instance.
100 virtual const makVre::DtVreMessageId& messageId() const override;
101 //! \}
102
103 //! \name Accessors
104 //! \{
105 virtual const DtEntityIdentifier& getEntityId() const;
106 virtual void setEntityId(const DtEntityIdentifier& val);
107
108 virtual const std::string& getWeaponGroup() const;
109 virtual void setWeaponGroup(const std::string& val);
110
111 virtual const DtEntityType& getMunitionType() const;
112 virtual void setMunitionType(const DtEntityType& val);
113
114 virtual const DtVector& getWorldPosition() const;
115 virtual void setWorldPosition(const DtVector& val);
116
117 virtual const DtTaitBryan& getWorldOrientation() const;
118 virtual void setWorldOrientation(const DtTaitBryan& val);
119
120 virtual bool getIsFiring() const;
121 virtual void setIsFiring(bool val);
122
123 virtual bool getIsOverride() const;
124 virtual void setIsOverride(bool val);
125 //! \}
126
127 //! \name Serialization
128 //! \{
129 //! \copydoc makVre::DtVreMessage::messageSize()
130 virtual int messageSize() const override;
131
132 //! \brief Decode a message from a byte buffer.
133 //! \param buffer The raw byte buffer to decode from.
134 //! \param length The length of the buffer in bytes.
135 //! \return A dynamically allocated decoded message. Caller takes ownership.
136 static makVre::DtVreMessage* decode(char* buffer, int length);
137
138 //! \brief Get a copy of the message data.
140
141 //! \brief Get a copy of the message data (const).
143 //! \}
144
145 //! \name Operators
146 //! \{
147 bool operator==(const FireInputMessage& rhs) const;
148 bool operator!=(const FireInputMessage& rhs) const;
149 //! \}
150
151protected:
153
154 //! \copydoc makVre::DtVreMessage::serialize()
155 virtual void serialize(DtStreamWriter& writer) const override;
156
157 //! \copydoc makVre::DtVreMessage::deserialize()
158 virtual void deserialize(DtStreamReader& reader) override;
159
160protected:
163
165};
166} // namespace makVre
167
Reader class for decoding values from a byte array.
Definition byteStream.h:43
Writer class for encoding values into a byte array.
Definition byteStream.h:166
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Message identifier class for the VREngage messaging system.
Definition vreMessageId.h:35
virtual void setMunitionType(const DtEntityType &val)
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
static FireInputMessage * createFrom(FireInputMessage *origMsg)
Create a copy of the given message.
virtual void setWorldOrientation(const DtTaitBryan &val)
virtual const DtEntityIdentifier & getEntityId() const
virtual ~FireInputMessage() override
Destructor.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual void setIsOverride(bool val)
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
FireInputData getData()
Get a copy of the message data.
FireInputData myData
Definition fireInput.h:164
virtual void setWorldPosition(const DtVector &val)
virtual void setIsFiring(bool val)
virtual bool getIsOverride() const
virtual const DtEntityType & getMunitionType() const
static const std::string & theType()
Get the message type string for this instance.
virtual bool getIsFiring() const
static UInt64 theVersionNumber()
Get the version number for this message class.
static UInt64 theVersion
Definition fireInput.h:162
virtual int messageSize() const override
Get a copy of the message data.
bool operator==(const FireInputMessage &rhs) const
virtual const DtTaitBryan & getWorldOrientation() const
bool operator!=(const FireInputMessage &rhs) const
virtual void setEntityId(const DtEntityIdentifier &val)
static makVre::DtVreMessageId theMessageId
Definition fireInput.h:161
static FireInputMessage * createFromData(const FireInputData data)
Create a new message initialized with the given data.
virtual void setWeaponGroup(const std::string &val)
static FireInputMessage * create()
Create a copy of the given message.
virtual const std::string & type() const override
Get the message type string for this instance.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
FireInputData getData() const
Get a copy of the message data (const).
virtual const DtVector & getWorldPosition() const
virtual const std::string & getWeaponGroup() const
Defines export macros for the VREngage Messages library.
#define VREMESSAGES_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
!
Definition glsVreMessageUtil.h:50
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
constexpr const char * FireInputMessageType
Message type identifier for FireInputMessage.
Definition fireInput.h:26
Data payload for FireInputMessage.
Definition fireInput.h:42
bool myIsOverride
Definition fireInput.h:55
bool myIsFiring
Definition fireInput.h:54
std::string myWeaponGroup
Definition fireInput.h:50
DtVector myWorldPosition
Definition fireInput.h:52
bool operator!=(const FireInputData &rhs) const
bool operator==(const FireInputData &rhs) const
DtEntityIdentifier myEntityId
Definition fireInput.h:49
DtEntityType myMunitionType
Definition fireInput.h:51
DtTaitBryan myWorldOrientation
Definition fireInput.h:53
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.