MagAO-X
Operations Applications Utilities Source
software_log_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_SOFTWARELOG_MAGAOX_LOGGER_H_
5 #define FLATBUFFERS_GENERATED_SOFTWARELOG_MAGAOX_LOGGER_H_
6 
7 #include "flatbuffers/flatbuffers.h"
8 
9 namespace MagAOX {
10 namespace logger {
11 
12 struct Software_log_fb;
13 
14 struct Software_log_fb FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
15  enum {
16  VT_FILE = 4,
17  VT_LINE = 6,
18  VT_ERRNOCODE = 8,
19  VT_OTHERCODE = 10,
20  VT_EXPLANATION = 12
21  };
22  const flatbuffers::String *file() const {
23  return GetPointer<const flatbuffers::String *>(VT_FILE);
24  }
25  uint32_t line() const {
26  return GetField<uint32_t>(VT_LINE, 0);
27  }
28  int32_t errnoCode() const {
29  return GetField<int32_t>(VT_ERRNOCODE, 0);
30  }
31  int32_t otherCode() const {
32  return GetField<int32_t>(VT_OTHERCODE, 0);
33  }
34  const flatbuffers::String *explanation() const {
35  return GetPointer<const flatbuffers::String *>(VT_EXPLANATION);
36  }
37  bool Verify(flatbuffers::Verifier &verifier) const {
38  return VerifyTableStart(verifier) &&
39  VerifyOffset(verifier, VT_FILE) &&
40  verifier.VerifyString(file()) &&
41  VerifyField<uint32_t>(verifier, VT_LINE) &&
42  VerifyField<int32_t>(verifier, VT_ERRNOCODE) &&
43  VerifyField<int32_t>(verifier, VT_OTHERCODE) &&
44  VerifyOffset(verifier, VT_EXPLANATION) &&
45  verifier.VerifyString(explanation()) &&
46  verifier.EndTable();
47  }
48 };
49 
51  flatbuffers::FlatBufferBuilder &fbb_;
52  flatbuffers::uoffset_t start_;
53  void add_file(flatbuffers::Offset<flatbuffers::String> file) {
54  fbb_.AddOffset(Software_log_fb::VT_FILE, file);
55  }
56  void add_line(uint32_t line) {
57  fbb_.AddElement<uint32_t>(Software_log_fb::VT_LINE, line, 0);
58  }
59  void add_errnoCode(int32_t errnoCode) {
60  fbb_.AddElement<int32_t>(Software_log_fb::VT_ERRNOCODE, errnoCode, 0);
61  }
62  void add_otherCode(int32_t otherCode) {
63  fbb_.AddElement<int32_t>(Software_log_fb::VT_OTHERCODE, otherCode, 0);
64  }
65  void add_explanation(flatbuffers::Offset<flatbuffers::String> explanation) {
66  fbb_.AddOffset(Software_log_fb::VT_EXPLANATION, explanation);
67  }
68  explicit Software_log_fbBuilder(flatbuffers::FlatBufferBuilder &_fbb)
69  : fbb_(_fbb) {
70  start_ = fbb_.StartTable();
71  }
73  flatbuffers::Offset<Software_log_fb> Finish() {
74  const auto end = fbb_.EndTable(start_);
75  auto o = flatbuffers::Offset<Software_log_fb>(end);
76  return o;
77  }
78 };
79 
80 inline flatbuffers::Offset<Software_log_fb> CreateSoftware_log_fb(
81  flatbuffers::FlatBufferBuilder &_fbb,
82  flatbuffers::Offset<flatbuffers::String> file = 0,
83  uint32_t line = 0,
84  int32_t errnoCode = 0,
85  int32_t otherCode = 0,
86  flatbuffers::Offset<flatbuffers::String> explanation = 0) {
87  Software_log_fbBuilder builder_(_fbb);
88  builder_.add_explanation(explanation);
89  builder_.add_otherCode(otherCode);
90  builder_.add_errnoCode(errnoCode);
91  builder_.add_line(line);
92  builder_.add_file(file);
93  return builder_.Finish();
94 }
95 
96 inline flatbuffers::Offset<Software_log_fb> CreateSoftware_log_fbDirect(
97  flatbuffers::FlatBufferBuilder &_fbb,
98  const char *file = nullptr,
99  uint32_t line = 0,
100  int32_t errnoCode = 0,
101  int32_t otherCode = 0,
102  const char *explanation = nullptr) {
104  _fbb,
105  file ? _fbb.CreateString(file) : 0,
106  line,
107  errnoCode,
108  otherCode,
109  explanation ? _fbb.CreateString(explanation) : 0);
110 }
111 
112 inline const MagAOX::logger::Software_log_fb *GetSoftware_log_fb(const void *buf) {
113  return flatbuffers::GetRoot<MagAOX::logger::Software_log_fb>(buf);
114 }
115 
116 inline const MagAOX::logger::Software_log_fb *GetSizePrefixedSoftware_log_fb(const void *buf) {
117  return flatbuffers::GetSizePrefixedRoot<MagAOX::logger::Software_log_fb>(buf);
118 }
119 
121  flatbuffers::Verifier &verifier) {
122  return verifier.VerifyBuffer<MagAOX::logger::Software_log_fb>(nullptr);
123 }
124 
126  flatbuffers::Verifier &verifier) {
127  return verifier.VerifySizePrefixedBuffer<MagAOX::logger::Software_log_fb>(nullptr);
128 }
129 
131  flatbuffers::FlatBufferBuilder &fbb,
132  flatbuffers::Offset<MagAOX::logger::Software_log_fb> root) {
133  fbb.Finish(root);
134 }
135 
137  flatbuffers::FlatBufferBuilder &fbb,
138  flatbuffers::Offset<MagAOX::logger::Software_log_fb> root) {
139  fbb.FinishSizePrefixed(root);
140 }
141 
142 } // namespace logger
143 } // namespace MagAOX
144 
145 #endif // FLATBUFFERS_GENERATED_SOFTWARELOG_MAGAOX_LOGGER_H_
const MagAOX::logger::Software_log_fb * GetSizePrefixedSoftware_log_fb(const void *buf)
void FinishSoftware_log_fbBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< MagAOX::logger::Software_log_fb > root)
const MagAOX::logger::Software_log_fb * GetSoftware_log_fb(const void *buf)
void add_explanation(flatbuffers::Offset< flatbuffers::String > explanation)
flatbuffers::Offset< Software_log_fb > CreateSoftware_log_fb(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset< flatbuffers::String > file=0, uint32_t line=0, int32_t errnoCode=0, int32_t otherCode=0, flatbuffers::Offset< flatbuffers::String > explanation=0)
bool Verify(flatbuffers::Verifier &verifier) const
flatbuffers::Offset< Software_log_fb > Finish()
Software_log_fbBuilder(flatbuffers::FlatBufferBuilder &_fbb)
const flatbuffers::String * file() const
flatbuffers::Offset< Software_log_fb > CreateSoftware_log_fbDirect(flatbuffers::FlatBufferBuilder &_fbb, const char *file=nullptr, uint32_t line=0, int32_t errnoCode=0, int32_t otherCode=0, const char *explanation=nullptr)
void FinishSizePrefixedSoftware_log_fbBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< MagAOX::logger::Software_log_fb > root)
bool VerifySizePrefixedSoftware_log_fbBuffer(flatbuffers::Verifier &verifier)
flatbuffers::FlatBufferBuilder & fbb_
bool VerifySoftware_log_fbBuffer(flatbuffers::Verifier &verifier)
const flatbuffers::String * explanation() const
void add_file(flatbuffers::Offset< flatbuffers::String > file)