VR-Engage  2.2
Loading...
Searching...
No Matches
createNewOwnship.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/ownship.lua
10*/
11/*-----------------COMMENT----------------------
12Send to create a new ownship entity, deleting the existing one if it's a different entity type.
13-------------------COMMENT----------------------*/
14#pragma once
15
18#include <vreMessages/export.h>
19#include <string>
20#include <vlpi/entityType.h>
21#include <matrix/vlVector.h>
22
23
24namespace makVre
25{
26
27
28constexpr const char* CreateNewOwnshipMessageType = "app.ownship.createNew";
29
31{
32public:
33
34
35 // Struct for defining data
37 {
39
40 std::string myEntityName;
41 DtEntityType myEntityType;
42 unsigned short myForceType;
43 DtVector myLocation;
44 double myHeading;
45 double myPitch;
47
48 bool operator==(const CreateNewOwnshipData& rhs) const;
49 };
50
51 // Default static creators to promote the usage of not using new.
55
56 //! \brief static message identity functions
57 static const std::string& theType();
60
61 //! \brief Get the name of the message type
62 virtual const std::string& type() const override;
63 virtual const makVre::DtVreMessageId& messageId() const override;
64
65 // default destructor
66 virtual ~CreateNewOwnshipMessage() override;
67
68 virtual const std::string& getEntityName() const;
69 virtual void setEntityName(const std::string& val);
70
71 virtual const DtEntityType& getEntityType() const;
72 virtual void setEntityType(const DtEntityType& val);
73
74 virtual unsigned short getForceType() const;
75 virtual void setForceType(unsigned short val);
76
77 virtual const DtVector& getLocation() const;
78 virtual void setLocation(const DtVector& val);
79
80 virtual double getHeading() const;
81 virtual void setHeading(double val);
82
83 virtual double getPitch() const;
84 virtual void setPitch(double val);
85
86 virtual bool getGroundClamp() const;
87 virtual void setGroundClamp(bool val);
88
89
90 // Accessors
91 virtual int messageSize() const override;
92 static makVre::DtVreMessage* decode(char* buffer, int length);
95
96 // Operators
97 bool operator==(const CreateNewOwnshipMessage& rhs) const;
98
99protected:
100 // Inaccessible default constructor to promote the usage of the static creator functions
102
103 virtual void serialize(DtStreamWriter& writer) const override;
104 virtual void deserialize(DtStreamReader& reader) override;
105
106protected:
109
110 // Store the data for future use
112};
113
114} // ::makVre
115
116
117
virtual void setLocation(const DtVector &val)
virtual void setForceType(unsigned short val)
virtual ~CreateNewOwnshipMessage() override
virtual void setEntityType(const DtEntityType &val)
static makVre::DtVreMessage * decode(char *buffer, int length)
CreateNewOwnshipData myData
Definition createNewOwnship.h:111
virtual void setGroundClamp(bool val)
virtual unsigned short getForceType() const
virtual const std::string & type() const override
Get the name of the message type.
virtual const std::string & getEntityName() const
static CreateNewOwnshipMessage * create()
static const makVre::DtVreMessageId & theId()
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual double getPitch() const
static CreateNewOwnshipMessage * createFrom(CreateNewOwnshipMessage *)
virtual double getHeading() const
virtual const DtEntityType & getEntityType() const
virtual void setHeading(double val)
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
CreateNewOwnshipData getData()
virtual bool getGroundClamp() const
virtual void setPitch(double val)
virtual int messageSize() const override
Static decode function pattern for derived classes.
virtual const DtVector & getLocation() const
virtual void setEntityName(const std::string &val)
CreateNewOwnshipData getData() const
static const std::string & theType()
static message identity functions
bool operator==(const CreateNewOwnshipMessage &rhs) const
virtual const makVre::DtVreMessageId & messageId() const override
Gets the message ID object.
static CreateNewOwnshipMessage * createFromData(const CreateNewOwnshipData)
static UInt64 theVersion
Definition createNewOwnship.h:108
static makVre::DtVreMessageId theMessageId
Definition createNewOwnship.h:107
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
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 * CreateNewOwnshipMessageType
Definition createNewOwnship.h:28
double myHeading
Definition createNewOwnship.h:44
std::string myEntityName
Definition createNewOwnship.h:40
unsigned short myForceType
Definition createNewOwnship.h:42
bool operator==(const CreateNewOwnshipData &rhs) const
DtVector myLocation
Definition createNewOwnship.h:43
double myPitch
Definition createNewOwnship.h:45
bool myGroundClamp
Definition createNewOwnship.h:46
DtEntityType myEntityType
Definition createNewOwnship.h:41
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.