API
 
Loading...
Searching...
No Matches
ocam_temps_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_OCAMTEMPS_MAGAOX_LOGGER_H_
5#define FLATBUFFERS_GENERATED_OCAMTEMPS_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 Ocam_temps_fb;
20struct Ocam_temps_fbBuilder;
21
22inline const ::flatbuffers::TypeTable *Ocam_temps_fbTypeTable();
23
24struct Ocam_temps_fb FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
26 static const ::flatbuffers::TypeTable *MiniReflectTypeTable() {
28 }
29 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
30 VT_CCD = 4,
31 VT_CPU = 6,
33 VT_BIAS = 10,
35 VT_LEFT = 14,
37 VT_COOLING = 18
38 };
39 float ccd() const {
40 return GetField<float>(VT_CCD, 0.0f);
41 }
42 float cpu() const {
43 return GetField<float>(VT_CPU, 0.0f);
44 }
45 float power() const {
46 return GetField<float>(VT_POWER, 0.0f);
47 }
48 float bias() const {
49 return GetField<float>(VT_BIAS, 0.0f);
50 }
51 float water() const {
52 return GetField<float>(VT_WATER, 0.0f);
53 }
54 float left() const {
55 return GetField<float>(VT_LEFT, 0.0f);
56 }
57 float right() const {
58 return GetField<float>(VT_RIGHT, 0.0f);
59 }
60 float cooling() const {
61 return GetField<float>(VT_COOLING, 0.0f);
62 }
63 bool Verify(::flatbuffers::Verifier &verifier) const {
64 return VerifyTableStart(verifier) &&
65 VerifyField<float>(verifier, VT_CCD, 4) &&
66 VerifyField<float>(verifier, VT_CPU, 4) &&
67 VerifyField<float>(verifier, VT_POWER, 4) &&
68 VerifyField<float>(verifier, VT_BIAS, 4) &&
69 VerifyField<float>(verifier, VT_WATER, 4) &&
70 VerifyField<float>(verifier, VT_LEFT, 4) &&
71 VerifyField<float>(verifier, VT_RIGHT, 4) &&
72 VerifyField<float>(verifier, VT_COOLING, 4) &&
73 verifier.EndTable();
74 }
75};
76
78 typedef Ocam_temps_fb Table;
79 ::flatbuffers::FlatBufferBuilder &fbb_;
80 ::flatbuffers::uoffset_t start_;
81 void add_ccd(float ccd) {
82 fbb_.AddElement<float>(Ocam_temps_fb::VT_CCD, ccd, 0.0f);
83 }
84 void add_cpu(float cpu) {
85 fbb_.AddElement<float>(Ocam_temps_fb::VT_CPU, cpu, 0.0f);
86 }
87 void add_power(float power) {
88 fbb_.AddElement<float>(Ocam_temps_fb::VT_POWER, power, 0.0f);
89 }
90 void add_bias(float bias) {
91 fbb_.AddElement<float>(Ocam_temps_fb::VT_BIAS, bias, 0.0f);
92 }
93 void add_water(float water) {
94 fbb_.AddElement<float>(Ocam_temps_fb::VT_WATER, water, 0.0f);
95 }
96 void add_left(float left) {
97 fbb_.AddElement<float>(Ocam_temps_fb::VT_LEFT, left, 0.0f);
98 }
99 void add_right(float right) {
100 fbb_.AddElement<float>(Ocam_temps_fb::VT_RIGHT, right, 0.0f);
101 }
102 void add_cooling(float cooling) {
103 fbb_.AddElement<float>(Ocam_temps_fb::VT_COOLING, cooling, 0.0f);
104 }
105 explicit Ocam_temps_fbBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
106 : fbb_(_fbb) {
107 start_ = fbb_.StartTable();
108 }
109 ::flatbuffers::Offset<Ocam_temps_fb> Finish() {
110 const auto end = fbb_.EndTable(start_);
111 auto o = ::flatbuffers::Offset<Ocam_temps_fb>(end);
112 return o;
113 }
114};
115
116inline ::flatbuffers::Offset<Ocam_temps_fb> CreateOcam_temps_fb(
117 ::flatbuffers::FlatBufferBuilder &_fbb,
118 float ccd = 0.0f,
119 float cpu = 0.0f,
120 float power = 0.0f,
121 float bias = 0.0f,
122 float water = 0.0f,
123 float left = 0.0f,
124 float right = 0.0f,
125 float cooling = 0.0f) {
126 Ocam_temps_fbBuilder builder_(_fbb);
127 builder_.add_cooling(cooling);
128 builder_.add_right(right);
129 builder_.add_left(left);
130 builder_.add_water(water);
131 builder_.add_bias(bias);
132 builder_.add_power(power);
133 builder_.add_cpu(cpu);
134 builder_.add_ccd(ccd);
135 return builder_.Finish();
136}
137
138inline const ::flatbuffers::TypeTable *Ocam_temps_fbTypeTable() {
139 static const ::flatbuffers::TypeCode type_codes[] = {
140 { ::flatbuffers::ET_FLOAT, 0, -1 },
141 { ::flatbuffers::ET_FLOAT, 0, -1 },
142 { ::flatbuffers::ET_FLOAT, 0, -1 },
143 { ::flatbuffers::ET_FLOAT, 0, -1 },
144 { ::flatbuffers::ET_FLOAT, 0, -1 },
145 { ::flatbuffers::ET_FLOAT, 0, -1 },
146 { ::flatbuffers::ET_FLOAT, 0, -1 },
147 { ::flatbuffers::ET_FLOAT, 0, -1 }
148 };
149 static const char * const names[] = {
150 "ccd",
151 "cpu",
152 "power",
153 "bias",
154 "water",
155 "left",
156 "right",
157 "cooling"
158 };
159 static const ::flatbuffers::TypeTable tt = {
160 ::flatbuffers::ST_TABLE, 8, type_codes, nullptr, nullptr, nullptr, names
161 };
162 return &tt;
163}
164
165inline const MagAOX::logger::Ocam_temps_fb *GetOcam_temps_fb(const void *buf) {
166 return ::flatbuffers::GetRoot<MagAOX::logger::Ocam_temps_fb>(buf);
167}
168
169inline const MagAOX::logger::Ocam_temps_fb *GetSizePrefixedOcam_temps_fb(const void *buf) {
170 return ::flatbuffers::GetSizePrefixedRoot<MagAOX::logger::Ocam_temps_fb>(buf);
171}
172
174 ::flatbuffers::Verifier &verifier) {
175 return verifier.VerifyBuffer<MagAOX::logger::Ocam_temps_fb>(nullptr);
176}
177
179 ::flatbuffers::Verifier &verifier) {
180 return verifier.VerifySizePrefixedBuffer<MagAOX::logger::Ocam_temps_fb>(nullptr);
181}
182
184 ::flatbuffers::FlatBufferBuilder &fbb,
185 ::flatbuffers::Offset<MagAOX::logger::Ocam_temps_fb> root) {
186 fbb.Finish(root);
187}
188
190 ::flatbuffers::FlatBufferBuilder &fbb,
191 ::flatbuffers::Offset<MagAOX::logger::Ocam_temps_fb> root) {
192 fbb.FinishSizePrefixed(root);
193}
194
195} // namespace logger
196} // namespace MagAOX
197
198#endif // FLATBUFFERS_GENERATED_OCAMTEMPS_MAGAOX_LOGGER_H_
void FinishOcam_temps_fbBuffer(::flatbuffers::FlatBufferBuilder &fbb, ::flatbuffers::Offset< MagAOX::logger::Ocam_temps_fb > root)
bool VerifySizePrefixedOcam_temps_fbBuffer(::flatbuffers::Verifier &verifier)
bool VerifyOcam_temps_fbBuffer(::flatbuffers::Verifier &verifier)
const MagAOX::logger::Ocam_temps_fb * GetSizePrefixedOcam_temps_fb(const void *buf)
void FinishSizePrefixedOcam_temps_fbBuffer(::flatbuffers::FlatBufferBuilder &fbb, ::flatbuffers::Offset< MagAOX::logger::Ocam_temps_fb > root)
const MagAOX::logger::Ocam_temps_fb * GetOcam_temps_fb(const void *buf)
inline ::flatbuffers::Offset< Ocam_temps_fb > CreateOcam_temps_fb(::flatbuffers::FlatBufferBuilder &_fbb, float ccd=0.0f, float cpu=0.0f, float power=0.0f, float bias=0.0f, float water=0.0f, float left=0.0f, float right=0.0f, float cooling=0.0f)
const ::flatbuffers::TypeTable * Ocam_temps_fbTypeTable()
Definition dm.hpp:28
static const ::flatbuffers::TypeTable * MiniReflectTypeTable()
bool Verify(::flatbuffers::Verifier &verifier) const
::flatbuffers::Offset< Ocam_temps_fb > Finish()
::flatbuffers::FlatBufferBuilder & fbb_
Ocam_temps_fbBuilder(::flatbuffers::FlatBufferBuilder &_fbb)