4 #ifndef FLATBUFFERS_GENERATED_SOFTWARELOG_MAGAOX_LOGGER_H_ 5 #define FLATBUFFERS_GENERATED_SOFTWARELOG_MAGAOX_LOGGER_H_ 7 #include "flatbuffers/flatbuffers.h" 12 struct Software_log_fb;
14 struct Software_log_fb FLATBUFFERS_FINAL_CLASS :
private flatbuffers::Table {
22 const flatbuffers::String *
file()
const {
23 return GetPointer<const flatbuffers::String *>(VT_FILE);
26 return GetField<uint32_t>(VT_LINE, 0);
29 return GetField<int32_t>(VT_ERRNOCODE, 0);
32 return GetField<int32_t>(VT_OTHERCODE, 0);
35 return GetPointer<const flatbuffers::String *>(VT_EXPLANATION);
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()) &&
51 flatbuffers::FlatBufferBuilder &
fbb_;
53 void add_file(flatbuffers::Offset<flatbuffers::String> file) {
54 fbb_.AddOffset(Software_log_fb::VT_FILE, file);
57 fbb_.AddElement<uint32_t>(Software_log_fb::VT_LINE, line, 0);
60 fbb_.AddElement<int32_t>(Software_log_fb::VT_ERRNOCODE, errnoCode, 0);
63 fbb_.AddElement<int32_t>(Software_log_fb::VT_OTHERCODE, otherCode, 0);
66 fbb_.AddOffset(Software_log_fb::VT_EXPLANATION, explanation);
70 start_ = fbb_.StartTable();
73 flatbuffers::Offset<Software_log_fb>
Finish() {
74 const auto end = fbb_.EndTable(start_);
75 auto o = flatbuffers::Offset<Software_log_fb>(end);
81 flatbuffers::FlatBufferBuilder &_fbb,
82 flatbuffers::Offset<flatbuffers::String> file = 0,
84 int32_t errnoCode = 0,
85 int32_t otherCode = 0,
86 flatbuffers::Offset<flatbuffers::String> explanation = 0) {
97 flatbuffers::FlatBufferBuilder &_fbb,
98 const char *file =
nullptr,
100 int32_t errnoCode = 0,
101 int32_t otherCode = 0,
102 const char *explanation =
nullptr) {
105 file ? _fbb.CreateString(file) : 0,
109 explanation ? _fbb.CreateString(explanation) : 0);
113 return flatbuffers::GetRoot<MagAOX::logger::Software_log_fb>(buf);
117 return flatbuffers::GetSizePrefixedRoot<MagAOX::logger::Software_log_fb>(buf);
121 flatbuffers::Verifier &verifier) {
122 return verifier.VerifyBuffer<MagAOX::logger::Software_log_fb>(
nullptr);
126 flatbuffers::Verifier &verifier) {
127 return verifier.VerifySizePrefixedBuffer<MagAOX::logger::Software_log_fb>(
nullptr);
131 flatbuffers::FlatBufferBuilder &fbb,
132 flatbuffers::Offset<MagAOX::logger::Software_log_fb> root) {
137 flatbuffers::FlatBufferBuilder &fbb,
138 flatbuffers::Offset<MagAOX::logger::Software_log_fb> root) {
139 fbb.FinishSizePrefixed(root);
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)
void add_line(uint32_t line)
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()
void add_otherCode(int32_t otherCode)
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 add_errnoCode(int32_t errnoCode)
flatbuffers::uoffset_t start_
void FinishSizePrefixedSoftware_log_fbBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< MagAOX::logger::Software_log_fb > root)
bool VerifySizePrefixedSoftware_log_fbBuffer(flatbuffers::Verifier &verifier)
int32_t errnoCode() const
flatbuffers::FlatBufferBuilder & fbb_
bool VerifySoftware_log_fbBuffer(flatbuffers::Verifier &verifier)
const flatbuffers::String * explanation() const
int32_t otherCode() const
void add_file(flatbuffers::Offset< flatbuffers::String > file)