MagAO-X
Operations Applications Utilities Source
fxngen_params_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_FXNGENPARAMS_MAGAOX_LOGGER_H_
5 #define FLATBUFFERS_GENERATED_FXNGENPARAMS_MAGAOX_LOGGER_H_
6 
7 #include "flatbuffers/flatbuffers.h"
8 
9 namespace MagAOX {
10 namespace logger {
11 
12 struct Fxngen_params_fb;
13 
14 struct Fxngen_params_fb FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
15  enum {
16  VT_C1OUTP = 4,
17  VT_C1FREQ = 6,
18  VT_C1VPP = 8,
19  VT_C1OFST = 10,
20  VT_C1PHSE = 12,
21  VT_C1WVTP = 14,
22  VT_C2OUTP = 16,
23  VT_C2FREQ = 18,
24  VT_C2VPP = 20,
25  VT_C2OFST = 22,
26  VT_C2PHSE = 24,
27  VT_C2WVTP = 26
28  };
29  uint8_t C1outp() const {
30  return GetField<uint8_t>(VT_C1OUTP, 0);
31  }
32  double C1freq() const {
33  return GetField<double>(VT_C1FREQ, 0.0);
34  }
35  double C1vpp() const {
36  return GetField<double>(VT_C1VPP, 0.0);
37  }
38  double C1ofst() const {
39  return GetField<double>(VT_C1OFST, 0.0);
40  }
41  double C1phse() const {
42  return GetField<double>(VT_C1PHSE, 0.0);
43  }
44  uint8_t C1wvtp() const {
45  return GetField<uint8_t>(VT_C1WVTP, 0);
46  }
47  uint8_t C2outp() const {
48  return GetField<uint8_t>(VT_C2OUTP, 0);
49  }
50  double C2freq() const {
51  return GetField<double>(VT_C2FREQ, 0.0);
52  }
53  double C2vpp() const {
54  return GetField<double>(VT_C2VPP, 0.0);
55  }
56  double C2ofst() const {
57  return GetField<double>(VT_C2OFST, 0.0);
58  }
59  double C2phse() const {
60  return GetField<double>(VT_C2PHSE, 0.0);
61  }
62  uint8_t C2wvtp() const {
63  return GetField<uint8_t>(VT_C2WVTP, 0);
64  }
65  bool Verify(flatbuffers::Verifier &verifier) const {
66  return VerifyTableStart(verifier) &&
67  VerifyField<uint8_t>(verifier, VT_C1OUTP) &&
68  VerifyField<double>(verifier, VT_C1FREQ) &&
69  VerifyField<double>(verifier, VT_C1VPP) &&
70  VerifyField<double>(verifier, VT_C1OFST) &&
71  VerifyField<double>(verifier, VT_C1PHSE) &&
72  VerifyField<uint8_t>(verifier, VT_C1WVTP) &&
73  VerifyField<uint8_t>(verifier, VT_C2OUTP) &&
74  VerifyField<double>(verifier, VT_C2FREQ) &&
75  VerifyField<double>(verifier, VT_C2VPP) &&
76  VerifyField<double>(verifier, VT_C2OFST) &&
77  VerifyField<double>(verifier, VT_C2PHSE) &&
78  VerifyField<uint8_t>(verifier, VT_C2WVTP) &&
79  verifier.EndTable();
80  }
81 };
82 
84  flatbuffers::FlatBufferBuilder &fbb_;
85  flatbuffers::uoffset_t start_;
86  void add_C1outp(uint8_t C1outp) {
87  fbb_.AddElement<uint8_t>(Fxngen_params_fb::VT_C1OUTP, C1outp, 0);
88  }
89  void add_C1freq(double C1freq) {
90  fbb_.AddElement<double>(Fxngen_params_fb::VT_C1FREQ, C1freq, 0.0);
91  }
92  void add_C1vpp(double C1vpp) {
93  fbb_.AddElement<double>(Fxngen_params_fb::VT_C1VPP, C1vpp, 0.0);
94  }
95  void add_C1ofst(double C1ofst) {
96  fbb_.AddElement<double>(Fxngen_params_fb::VT_C1OFST, C1ofst, 0.0);
97  }
98  void add_C1phse(double C1phse) {
99  fbb_.AddElement<double>(Fxngen_params_fb::VT_C1PHSE, C1phse, 0.0);
100  }
101  void add_C1wvtp(uint8_t C1wvtp) {
102  fbb_.AddElement<uint8_t>(Fxngen_params_fb::VT_C1WVTP, C1wvtp, 0);
103  }
104  void add_C2outp(uint8_t C2outp) {
105  fbb_.AddElement<uint8_t>(Fxngen_params_fb::VT_C2OUTP, C2outp, 0);
106  }
107  void add_C2freq(double C2freq) {
108  fbb_.AddElement<double>(Fxngen_params_fb::VT_C2FREQ, C2freq, 0.0);
109  }
110  void add_C2vpp(double C2vpp) {
111  fbb_.AddElement<double>(Fxngen_params_fb::VT_C2VPP, C2vpp, 0.0);
112  }
113  void add_C2ofst(double C2ofst) {
114  fbb_.AddElement<double>(Fxngen_params_fb::VT_C2OFST, C2ofst, 0.0);
115  }
116  void add_C2phse(double C2phse) {
117  fbb_.AddElement<double>(Fxngen_params_fb::VT_C2PHSE, C2phse, 0.0);
118  }
119  void add_C2wvtp(uint8_t C2wvtp) {
120  fbb_.AddElement<uint8_t>(Fxngen_params_fb::VT_C2WVTP, C2wvtp, 0);
121  }
122  explicit Fxngen_params_fbBuilder(flatbuffers::FlatBufferBuilder &_fbb)
123  : fbb_(_fbb) {
124  start_ = fbb_.StartTable();
125  }
127  flatbuffers::Offset<Fxngen_params_fb> Finish() {
128  const auto end = fbb_.EndTable(start_);
129  auto o = flatbuffers::Offset<Fxngen_params_fb>(end);
130  return o;
131  }
132 };
133 
134 inline flatbuffers::Offset<Fxngen_params_fb> CreateFxngen_params_fb(
135  flatbuffers::FlatBufferBuilder &_fbb,
136  uint8_t C1outp = 0,
137  double C1freq = 0.0,
138  double C1vpp = 0.0,
139  double C1ofst = 0.0,
140  double C1phse = 0.0,
141  uint8_t C1wvtp = 0,
142  uint8_t C2outp = 0,
143  double C2freq = 0.0,
144  double C2vpp = 0.0,
145  double C2ofst = 0.0,
146  double C2phse = 0.0,
147  uint8_t C2wvtp = 0) {
148  Fxngen_params_fbBuilder builder_(_fbb);
149  builder_.add_C2phse(C2phse);
150  builder_.add_C2ofst(C2ofst);
151  builder_.add_C2vpp(C2vpp);
152  builder_.add_C2freq(C2freq);
153  builder_.add_C1phse(C1phse);
154  builder_.add_C1ofst(C1ofst);
155  builder_.add_C1vpp(C1vpp);
156  builder_.add_C1freq(C1freq);
157  builder_.add_C2wvtp(C2wvtp);
158  builder_.add_C2outp(C2outp);
159  builder_.add_C1wvtp(C1wvtp);
160  builder_.add_C1outp(C1outp);
161  return builder_.Finish();
162 }
163 
164 inline const MagAOX::logger::Fxngen_params_fb *GetFxngen_params_fb(const void *buf) {
165  return flatbuffers::GetRoot<MagAOX::logger::Fxngen_params_fb>(buf);
166 }
167 
168 inline const MagAOX::logger::Fxngen_params_fb *GetSizePrefixedFxngen_params_fb(const void *buf) {
169  return flatbuffers::GetSizePrefixedRoot<MagAOX::logger::Fxngen_params_fb>(buf);
170 }
171 
173  flatbuffers::Verifier &verifier) {
174  return verifier.VerifyBuffer<MagAOX::logger::Fxngen_params_fb>(nullptr);
175 }
176 
178  flatbuffers::Verifier &verifier) {
179  return verifier.VerifySizePrefixedBuffer<MagAOX::logger::Fxngen_params_fb>(nullptr);
180 }
181 
183  flatbuffers::FlatBufferBuilder &fbb,
184  flatbuffers::Offset<MagAOX::logger::Fxngen_params_fb> root) {
185  fbb.Finish(root);
186 }
187 
189  flatbuffers::FlatBufferBuilder &fbb,
190  flatbuffers::Offset<MagAOX::logger::Fxngen_params_fb> root) {
191  fbb.FinishSizePrefixed(root);
192 }
193 
194 } // namespace logger
195 } // namespace MagAOX
196 
197 #endif // FLATBUFFERS_GENERATED_FXNGENPARAMS_MAGAOX_LOGGER_H_
bool VerifySizePrefixedFxngen_params_fbBuffer(flatbuffers::Verifier &verifier)
flatbuffers::Offset< Fxngen_params_fb > Finish()
const MagAOX::logger::Fxngen_params_fb * GetSizePrefixedFxngen_params_fb(const void *buf)
flatbuffers::FlatBufferBuilder & fbb_
Fxngen_params_fbBuilder(flatbuffers::FlatBufferBuilder &_fbb)
bool Verify(flatbuffers::Verifier &verifier) const
flatbuffers::Offset< Fxngen_params_fb > CreateFxngen_params_fb(flatbuffers::FlatBufferBuilder &_fbb, uint8_t C1outp=0, double C1freq=0.0, double C1vpp=0.0, double C1ofst=0.0, double C1phse=0.0, uint8_t C1wvtp=0, uint8_t C2outp=0, double C2freq=0.0, double C2vpp=0.0, double C2ofst=0.0, double C2phse=0.0, uint8_t C2wvtp=0)
bool VerifyFxngen_params_fbBuffer(flatbuffers::Verifier &verifier)
void FinishFxngen_params_fbBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< MagAOX::logger::Fxngen_params_fb > root)
void FinishSizePrefixedFxngen_params_fbBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< MagAOX::logger::Fxngen_params_fb > root)
const MagAOX::logger::Fxngen_params_fb * GetFxngen_params_fb(const void *buf)