API
 
Loading...
Searching...
No Matches
telem_dmspeck_generated.h
Go to the documentation of this file.
1// automatically generated by the FlatBuffers compiler, do not modify
2
3
4#ifndef FLATBUFFERS_GENERATED_TELEMDMSPECK_MAGAOX_LOGGER_H_
5#define FLATBUFFERS_GENERATED_TELEMDMSPECK_MAGAOX_LOGGER_H_
6
7#include "flatbuffers/flatbuffers.h"
8
9// Ensure the included flatbuffers.h is the same version as when this file was
10// generated, otherwise it may not be compatible.
11static_assert(FLATBUFFERS_VERSION_MAJOR == 23 &&
12 FLATBUFFERS_VERSION_MINOR == 5 &&
13 FLATBUFFERS_VERSION_REVISION == 26,
14 "Non-compatible flatbuffers version included");
15
16namespace MagAOX {
17namespace logger {
18
19struct Telem_dmspeck_fb;
20struct Telem_dmspeck_fbBuilder;
21
22inline const ::flatbuffers::TypeTable *Telem_dmspeck_fbTypeTable();
23
24struct Telem_dmspeck_fb FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
26 static const ::flatbuffers::TypeTable *MiniReflectTypeTable() {
28 }
29 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
36 VT_CROSSES = 16
37 };
38 /// whether or not the speckle is being modulated
39 bool modulating() const {
40 return GetField<uint8_t>(VT_MODULATING, 0) != 0;
41 }
42 /// whether or not the speckle is being triggered
43 bool trigger() const {
44 return GetField<uint8_t>(VT_TRIGGER, 0) != 0;
45 }
46 /// frequency of modulation is not triggered
47 float frequency() const {
48 return GetField<float>(VT_FREQUENCY, 0.0f);
49 }
50 /// the separations of the speckle(s)
51 const ::flatbuffers::Vector<float> *separations() const {
52 return GetPointer<const ::flatbuffers::Vector<float> *>(VT_SEPARATIONS);
53 }
54 /// the angles of the speckle(s)
55 const ::flatbuffers::Vector<float> *angles() const {
56 return GetPointer<const ::flatbuffers::Vector<float> *>(VT_ANGLES);
57 }
58 /// the amplitudes of the speckle(s)
59 const ::flatbuffers::Vector<float> *amplitudes() const {
60 return GetPointer<const ::flatbuffers::Vector<float> *>(VT_AMPLITUDES);
61 }
62 /// whether or not the cross speckle(s) are produced
63 const ::flatbuffers::Vector<uint8_t> *crosses() const {
64 return GetPointer<const ::flatbuffers::Vector<uint8_t> *>(VT_CROSSES);
65 }
66 bool Verify(::flatbuffers::Verifier &verifier) const {
67 return VerifyTableStart(verifier) &&
68 VerifyField<uint8_t>(verifier, VT_MODULATING, 1) &&
69 VerifyField<uint8_t>(verifier, VT_TRIGGER, 1) &&
70 VerifyField<float>(verifier, VT_FREQUENCY, 4) &&
71 VerifyOffset(verifier, VT_SEPARATIONS) &&
72 verifier.VerifyVector(separations()) &&
73 VerifyOffset(verifier, VT_ANGLES) &&
74 verifier.VerifyVector(angles()) &&
75 VerifyOffset(verifier, VT_AMPLITUDES) &&
76 verifier.VerifyVector(amplitudes()) &&
77 VerifyOffset(verifier, VT_CROSSES) &&
78 verifier.VerifyVector(crosses()) &&
79 verifier.EndTable();
80 }
81};
82
84 typedef Telem_dmspeck_fb Table;
85 ::flatbuffers::FlatBufferBuilder &fbb_;
86 ::flatbuffers::uoffset_t start_;
87 void add_modulating(bool modulating) {
88 fbb_.AddElement<uint8_t>(Telem_dmspeck_fb::VT_MODULATING, static_cast<uint8_t>(modulating), 0);
89 }
90 void add_trigger(bool trigger) {
91 fbb_.AddElement<uint8_t>(Telem_dmspeck_fb::VT_TRIGGER, static_cast<uint8_t>(trigger), 0);
92 }
93 void add_frequency(float frequency) {
94 fbb_.AddElement<float>(Telem_dmspeck_fb::VT_FREQUENCY, frequency, 0.0f);
95 }
96 void add_separations(::flatbuffers::Offset<::flatbuffers::Vector<float>> separations) {
97 fbb_.AddOffset(Telem_dmspeck_fb::VT_SEPARATIONS, separations);
98 }
99 void add_angles(::flatbuffers::Offset<::flatbuffers::Vector<float>> angles) {
100 fbb_.AddOffset(Telem_dmspeck_fb::VT_ANGLES, angles);
101 }
102 void add_amplitudes(::flatbuffers::Offset<::flatbuffers::Vector<float>> amplitudes) {
103 fbb_.AddOffset(Telem_dmspeck_fb::VT_AMPLITUDES, amplitudes);
104 }
105 void add_crosses(::flatbuffers::Offset<::flatbuffers::Vector<uint8_t>> crosses) {
106 fbb_.AddOffset(Telem_dmspeck_fb::VT_CROSSES, crosses);
107 }
108 explicit Telem_dmspeck_fbBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
109 : fbb_(_fbb) {
110 start_ = fbb_.StartTable();
111 }
112 ::flatbuffers::Offset<Telem_dmspeck_fb> Finish() {
113 const auto end = fbb_.EndTable(start_);
114 auto o = ::flatbuffers::Offset<Telem_dmspeck_fb>(end);
115 return o;
116 }
117};
118
119inline ::flatbuffers::Offset<Telem_dmspeck_fb> CreateTelem_dmspeck_fb(
120 ::flatbuffers::FlatBufferBuilder &_fbb,
121 bool modulating = false,
122 bool trigger = false,
123 float frequency = 0.0f,
124 ::flatbuffers::Offset<::flatbuffers::Vector<float>> separations = 0,
125 ::flatbuffers::Offset<::flatbuffers::Vector<float>> angles = 0,
126 ::flatbuffers::Offset<::flatbuffers::Vector<float>> amplitudes = 0,
127 ::flatbuffers::Offset<::flatbuffers::Vector<uint8_t>> crosses = 0) {
128 Telem_dmspeck_fbBuilder builder_(_fbb);
129 builder_.add_crosses(crosses);
130 builder_.add_amplitudes(amplitudes);
131 builder_.add_angles(angles);
132 builder_.add_separations(separations);
133 builder_.add_frequency(frequency);
134 builder_.add_trigger(trigger);
135 builder_.add_modulating(modulating);
136 return builder_.Finish();
137}
138
139inline ::flatbuffers::Offset<Telem_dmspeck_fb> CreateTelem_dmspeck_fbDirect(
140 ::flatbuffers::FlatBufferBuilder &_fbb,
141 bool modulating = false,
142 bool trigger = false,
143 float frequency = 0.0f,
144 const std::vector<float> *separations = nullptr,
145 const std::vector<float> *angles = nullptr,
146 const std::vector<float> *amplitudes = nullptr,
147 const std::vector<uint8_t> *crosses = nullptr) {
148 auto separations__ = separations ? _fbb.CreateVector<float>(*separations) : 0;
149 auto angles__ = angles ? _fbb.CreateVector<float>(*angles) : 0;
150 auto amplitudes__ = amplitudes ? _fbb.CreateVector<float>(*amplitudes) : 0;
151 auto crosses__ = crosses ? _fbb.CreateVector<uint8_t>(*crosses) : 0;
153 _fbb,
154 modulating,
155 trigger,
156 frequency,
157 separations__,
158 angles__,
159 amplitudes__,
160 crosses__);
161}
162
163inline const ::flatbuffers::TypeTable *Telem_dmspeck_fbTypeTable() {
164 static const ::flatbuffers::TypeCode type_codes[] = {
165 { ::flatbuffers::ET_BOOL, 0, -1 },
166 { ::flatbuffers::ET_BOOL, 0, -1 },
167 { ::flatbuffers::ET_FLOAT, 0, -1 },
168 { ::flatbuffers::ET_FLOAT, 1, -1 },
169 { ::flatbuffers::ET_FLOAT, 1, -1 },
170 { ::flatbuffers::ET_FLOAT, 1, -1 },
171 { ::flatbuffers::ET_BOOL, 1, -1 }
172 };
173 static const char * const names[] = {
174 "modulating",
175 "trigger",
176 "frequency",
177 "separations",
178 "angles",
179 "amplitudes",
180 "crosses"
181 };
182 static const ::flatbuffers::TypeTable tt = {
183 ::flatbuffers::ST_TABLE, 7, type_codes, nullptr, nullptr, nullptr, names
184 };
185 return &tt;
186}
187
188inline const MagAOX::logger::Telem_dmspeck_fb *GetTelem_dmspeck_fb(const void *buf) {
189 return ::flatbuffers::GetRoot<MagAOX::logger::Telem_dmspeck_fb>(buf);
190}
191
192inline const MagAOX::logger::Telem_dmspeck_fb *GetSizePrefixedTelem_dmspeck_fb(const void *buf) {
193 return ::flatbuffers::GetSizePrefixedRoot<MagAOX::logger::Telem_dmspeck_fb>(buf);
194}
195
197 ::flatbuffers::Verifier &verifier) {
198 return verifier.VerifyBuffer<MagAOX::logger::Telem_dmspeck_fb>(nullptr);
199}
200
202 ::flatbuffers::Verifier &verifier) {
203 return verifier.VerifySizePrefixedBuffer<MagAOX::logger::Telem_dmspeck_fb>(nullptr);
204}
205
207 ::flatbuffers::FlatBufferBuilder &fbb,
208 ::flatbuffers::Offset<MagAOX::logger::Telem_dmspeck_fb> root) {
209 fbb.Finish(root);
210}
211
213 ::flatbuffers::FlatBufferBuilder &fbb,
214 ::flatbuffers::Offset<MagAOX::logger::Telem_dmspeck_fb> root) {
215 fbb.FinishSizePrefixed(root);
216}
217
218} // namespace logger
219} // namespace MagAOX
220
221#endif // FLATBUFFERS_GENERATED_TELEMDMSPECK_MAGAOX_LOGGER_H_
void FinishSizePrefixedTelem_dmspeck_fbBuffer(::flatbuffers::FlatBufferBuilder &fbb, ::flatbuffers::Offset< MagAOX::logger::Telem_dmspeck_fb > root)
inline ::flatbuffers::Offset< Telem_dmspeck_fb > CreateTelem_dmspeck_fbDirect(::flatbuffers::FlatBufferBuilder &_fbb, bool modulating=false, bool trigger=false, float frequency=0.0f, const std::vector< float > *separations=nullptr, const std::vector< float > *angles=nullptr, const std::vector< float > *amplitudes=nullptr, const std::vector< uint8_t > *crosses=nullptr)
const MagAOX::logger::Telem_dmspeck_fb * GetTelem_dmspeck_fb(const void *buf)
void FinishTelem_dmspeck_fbBuffer(::flatbuffers::FlatBufferBuilder &fbb, ::flatbuffers::Offset< MagAOX::logger::Telem_dmspeck_fb > root)
bool VerifyTelem_dmspeck_fbBuffer(::flatbuffers::Verifier &verifier)
const MagAOX::logger::Telem_dmspeck_fb * GetSizePrefixedTelem_dmspeck_fb(const void *buf)
const ::flatbuffers::TypeTable * Telem_dmspeck_fbTypeTable()
inline ::flatbuffers::Offset< Telem_dmspeck_fb > CreateTelem_dmspeck_fb(::flatbuffers::FlatBufferBuilder &_fbb, bool modulating=false, bool trigger=false, float frequency=0.0f, ::flatbuffers::Offset<::flatbuffers::Vector< float > > separations=0, ::flatbuffers::Offset<::flatbuffers::Vector< float > > angles=0, ::flatbuffers::Offset<::flatbuffers::Vector< float > > amplitudes=0, ::flatbuffers::Offset<::flatbuffers::Vector< uint8_t > > crosses=0)
bool VerifySizePrefixedTelem_dmspeck_fbBuffer(::flatbuffers::Verifier &verifier)
Definition dm.hpp:28
bool trigger() const
whether or not the speckle is being triggered
const ::flatbuffers::Vector< float > * angles() const
the angles of the speckle(s)
const ::flatbuffers::Vector< float > * amplitudes() const
the amplitudes of the speckle(s)
bool modulating() const
whether or not the speckle is being modulated
const ::flatbuffers::Vector< float > * separations() const
the separations of the speckle(s)
static const ::flatbuffers::TypeTable * MiniReflectTypeTable()
float frequency() const
frequency of modulation is not triggered
const ::flatbuffers::Vector< uint8_t > * crosses() const
whether or not the cross speckle(s) are produced
bool Verify(::flatbuffers::Verifier &verifier) const
Telem_dmspeck_fbBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
void add_crosses(::flatbuffers::Offset<::flatbuffers::Vector< uint8_t > > crosses)
void add_angles(::flatbuffers::Offset<::flatbuffers::Vector< float > > angles)
void add_amplitudes(::flatbuffers::Offset<::flatbuffers::Vector< float > > amplitudes)
::flatbuffers::FlatBufferBuilder & fbb_
::flatbuffers::Offset< Telem_dmspeck_fb > Finish()
void add_separations(::flatbuffers::Offset<::flatbuffers::Vector< float > > separations)