MagAO-X
Operations Applications Utilities Source
string_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_STRINGLOG_MAGAOX_LOGGER_H_
5 #define FLATBUFFERS_GENERATED_STRINGLOG_MAGAOX_LOGGER_H_
6 
7 #include "flatbuffers/flatbuffers.h"
8 
9 namespace MagAOX {
10 namespace logger {
11 
12 struct String_log_fb;
13 
14 struct String_log_fb FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
15  enum {
16  VT_MESSAGE = 4
17  };
18  const flatbuffers::String *message() const {
19  return GetPointer<const flatbuffers::String *>(VT_MESSAGE);
20  }
21  bool Verify(flatbuffers::Verifier &verifier) const {
22  return VerifyTableStart(verifier) &&
23  VerifyOffset(verifier, VT_MESSAGE) &&
24  verifier.VerifyString(message()) &&
25  verifier.EndTable();
26  }
27 };
28 
30  flatbuffers::FlatBufferBuilder &fbb_;
31  flatbuffers::uoffset_t start_;
32  void add_message(flatbuffers::Offset<flatbuffers::String> message) {
33  fbb_.AddOffset(String_log_fb::VT_MESSAGE, message);
34  }
35  explicit String_log_fbBuilder(flatbuffers::FlatBufferBuilder &_fbb)
36  : fbb_(_fbb) {
37  start_ = fbb_.StartTable();
38  }
39  String_log_fbBuilder &operator=(const String_log_fbBuilder &);
40  flatbuffers::Offset<String_log_fb> Finish() {
41  const auto end = fbb_.EndTable(start_);
42  auto o = flatbuffers::Offset<String_log_fb>(end);
43  return o;
44  }
45 };
46 
47 inline flatbuffers::Offset<String_log_fb> CreateString_log_fb(
48  flatbuffers::FlatBufferBuilder &_fbb,
49  flatbuffers::Offset<flatbuffers::String> message = 0) {
50  String_log_fbBuilder builder_(_fbb);
51  builder_.add_message(message);
52  return builder_.Finish();
53 }
54 
55 inline flatbuffers::Offset<String_log_fb> CreateString_log_fbDirect(
56  flatbuffers::FlatBufferBuilder &_fbb,
57  const char *message = nullptr) {
59  _fbb,
60  message ? _fbb.CreateString(message) : 0);
61 }
62 
63 inline const MagAOX::logger::String_log_fb *GetString_log_fb(const void *buf) {
64  return flatbuffers::GetRoot<MagAOX::logger::String_log_fb>(buf);
65 }
66 
67 inline const MagAOX::logger::String_log_fb *GetSizePrefixedString_log_fb(const void *buf) {
68  return flatbuffers::GetSizePrefixedRoot<MagAOX::logger::String_log_fb>(buf);
69 }
70 
72  flatbuffers::Verifier &verifier) {
73  return verifier.VerifyBuffer<MagAOX::logger::String_log_fb>(nullptr);
74 }
75 
77  flatbuffers::Verifier &verifier) {
78  return verifier.VerifySizePrefixedBuffer<MagAOX::logger::String_log_fb>(nullptr);
79 }
80 
82  flatbuffers::FlatBufferBuilder &fbb,
83  flatbuffers::Offset<MagAOX::logger::String_log_fb> root) {
84  fbb.Finish(root);
85 }
86 
88  flatbuffers::FlatBufferBuilder &fbb,
89  flatbuffers::Offset<MagAOX::logger::String_log_fb> root) {
90  fbb.FinishSizePrefixed(root);
91 }
92 
93 } // namespace logger
94 } // namespace MagAOX
95 
96 #endif // FLATBUFFERS_GENERATED_STRINGLOG_MAGAOX_LOGGER_H_
bool VerifySizePrefixedString_log_fbBuffer(flatbuffers::Verifier &verifier)
void add_message(flatbuffers::Offset< flatbuffers::String > message)
void FinishString_log_fbBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< MagAOX::logger::String_log_fb > root)
flatbuffers::FlatBufferBuilder & fbb_
void FinishSizePrefixedString_log_fbBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< MagAOX::logger::String_log_fb > root)
bool Verify(flatbuffers::Verifier &verifier) const
bool VerifyString_log_fbBuffer(flatbuffers::Verifier &verifier)
flatbuffers::Offset< String_log_fb > CreateString_log_fbDirect(flatbuffers::FlatBufferBuilder &_fbb, const char *message=nullptr)
flatbuffers::Offset< String_log_fb > Finish()
flatbuffers::Offset< String_log_fb > CreateString_log_fb(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset< flatbuffers::String > message=0)
const MagAOX::logger::String_log_fb * GetString_log_fb(const void *buf)
const flatbuffers::String * message() const
String_log_fbBuilder(flatbuffers::FlatBufferBuilder &_fbb)
const MagAOX::logger::String_log_fb * GetSizePrefixedString_log_fb(const void *buf)