MagAO-X
Operations Applications Utilities Source
state_change_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_STATECHANGE_MAGAOX_LOGGER_H_
5 #define FLATBUFFERS_GENERATED_STATECHANGE_MAGAOX_LOGGER_H_
6 
7 #include "flatbuffers/flatbuffers.h"
8 
9 namespace MagAOX {
10 namespace logger {
11 
12 struct State_change_fb;
13 
14 struct State_change_fb FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
15  enum {
16  VT_FROM = 4,
17  VT_TO = 6
18  };
19  int16_t from() const {
20  return GetField<int16_t>(VT_FROM, 0);
21  }
22  int16_t to() const {
23  return GetField<int16_t>(VT_TO, 0);
24  }
25  bool Verify(flatbuffers::Verifier &verifier) const {
26  return VerifyTableStart(verifier) &&
27  VerifyField<int16_t>(verifier, VT_FROM) &&
28  VerifyField<int16_t>(verifier, VT_TO) &&
29  verifier.EndTable();
30  }
31 };
32 
34  flatbuffers::FlatBufferBuilder &fbb_;
35  flatbuffers::uoffset_t start_;
36  void add_from(int16_t from) {
37  fbb_.AddElement<int16_t>(State_change_fb::VT_FROM, from, 0);
38  }
39  void add_to(int16_t to) {
40  fbb_.AddElement<int16_t>(State_change_fb::VT_TO, to, 0);
41  }
42  explicit State_change_fbBuilder(flatbuffers::FlatBufferBuilder &_fbb)
43  : fbb_(_fbb) {
44  start_ = fbb_.StartTable();
45  }
47  flatbuffers::Offset<State_change_fb> Finish() {
48  const auto end = fbb_.EndTable(start_);
49  auto o = flatbuffers::Offset<State_change_fb>(end);
50  return o;
51  }
52 };
53 
54 inline flatbuffers::Offset<State_change_fb> CreateState_change_fb(
55  flatbuffers::FlatBufferBuilder &_fbb,
56  int16_t from = 0,
57  int16_t to = 0) {
58  State_change_fbBuilder builder_(_fbb);
59  builder_.add_to(to);
60  builder_.add_from(from);
61  return builder_.Finish();
62 }
63 
64 inline const MagAOX::logger::State_change_fb *GetState_change_fb(const void *buf) {
65  return flatbuffers::GetRoot<MagAOX::logger::State_change_fb>(buf);
66 }
67 
68 inline const MagAOX::logger::State_change_fb *GetSizePrefixedState_change_fb(const void *buf) {
69  return flatbuffers::GetSizePrefixedRoot<MagAOX::logger::State_change_fb>(buf);
70 }
71 
73  flatbuffers::Verifier &verifier) {
74  return verifier.VerifyBuffer<MagAOX::logger::State_change_fb>(nullptr);
75 }
76 
78  flatbuffers::Verifier &verifier) {
79  return verifier.VerifySizePrefixedBuffer<MagAOX::logger::State_change_fb>(nullptr);
80 }
81 
83  flatbuffers::FlatBufferBuilder &fbb,
84  flatbuffers::Offset<MagAOX::logger::State_change_fb> root) {
85  fbb.Finish(root);
86 }
87 
89  flatbuffers::FlatBufferBuilder &fbb,
90  flatbuffers::Offset<MagAOX::logger::State_change_fb> root) {
91  fbb.FinishSizePrefixed(root);
92 }
93 
94 } // namespace logger
95 } // namespace MagAOX
96 
97 #endif // FLATBUFFERS_GENERATED_STATECHANGE_MAGAOX_LOGGER_H_
bool VerifySizePrefixedState_change_fbBuffer(flatbuffers::Verifier &verifier)
void FinishState_change_fbBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< MagAOX::logger::State_change_fb > root)
bool VerifyState_change_fbBuffer(flatbuffers::Verifier &verifier)
const MagAOX::logger::State_change_fb * GetState_change_fb(const void *buf)
const MagAOX::logger::State_change_fb * GetSizePrefixedState_change_fb(const void *buf)
void FinishSizePrefixedState_change_fbBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< MagAOX::logger::State_change_fb > root)
flatbuffers::FlatBufferBuilder & fbb_
bool Verify(flatbuffers::Verifier &verifier) const
flatbuffers::Offset< State_change_fb > Finish()
flatbuffers::Offset< State_change_fb > CreateState_change_fb(flatbuffers::FlatBufferBuilder &_fbb, int16_t from=0, int16_t to=0)
State_change_fbBuilder(flatbuffers::FlatBufferBuilder &_fbb)