MagAO-X
Operations Applications Utilities Source
git_state_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_GITSTATE_MAGAOX_LOGGER_H_
5 #define FLATBUFFERS_GENERATED_GITSTATE_MAGAOX_LOGGER_H_
6 
7 #include "flatbuffers/flatbuffers.h"
8 
9 namespace MagAOX {
10 namespace logger {
11 
12 struct Git_state_fb;
13 
14 struct Git_state_fb FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
15  enum {
16  VT_REPO = 4,
17  VT_SHA1 = 6,
18  VT_MODIFIED = 8
19  };
20  const flatbuffers::String *repo() const {
21  return GetPointer<const flatbuffers::String *>(VT_REPO);
22  }
23  const flatbuffers::String *sha1() const {
24  return GetPointer<const flatbuffers::String *>(VT_SHA1);
25  }
26  uint8_t modified() const {
27  return GetField<uint8_t>(VT_MODIFIED, 0);
28  }
29  bool Verify(flatbuffers::Verifier &verifier) const {
30  return VerifyTableStart(verifier) &&
31  VerifyOffset(verifier, VT_REPO) &&
32  verifier.VerifyString(repo()) &&
33  VerifyOffset(verifier, VT_SHA1) &&
34  verifier.VerifyString(sha1()) &&
35  VerifyField<uint8_t>(verifier, VT_MODIFIED) &&
36  verifier.EndTable();
37  }
38 };
39 
41  flatbuffers::FlatBufferBuilder &fbb_;
42  flatbuffers::uoffset_t start_;
43  void add_repo(flatbuffers::Offset<flatbuffers::String> repo) {
44  fbb_.AddOffset(Git_state_fb::VT_REPO, repo);
45  }
46  void add_sha1(flatbuffers::Offset<flatbuffers::String> sha1) {
47  fbb_.AddOffset(Git_state_fb::VT_SHA1, sha1);
48  }
49  void add_modified(uint8_t modified) {
50  fbb_.AddElement<uint8_t>(Git_state_fb::VT_MODIFIED, modified, 0);
51  }
52  explicit Git_state_fbBuilder(flatbuffers::FlatBufferBuilder &_fbb)
53  : fbb_(_fbb) {
54  start_ = fbb_.StartTable();
55  }
56  Git_state_fbBuilder &operator=(const Git_state_fbBuilder &);
57  flatbuffers::Offset<Git_state_fb> Finish() {
58  const auto end = fbb_.EndTable(start_);
59  auto o = flatbuffers::Offset<Git_state_fb>(end);
60  return o;
61  }
62 };
63 
64 inline flatbuffers::Offset<Git_state_fb> CreateGit_state_fb(
65  flatbuffers::FlatBufferBuilder &_fbb,
66  flatbuffers::Offset<flatbuffers::String> repo = 0,
67  flatbuffers::Offset<flatbuffers::String> sha1 = 0,
68  uint8_t modified = 0) {
69  Git_state_fbBuilder builder_(_fbb);
70  builder_.add_sha1(sha1);
71  builder_.add_repo(repo);
72  builder_.add_modified(modified);
73  return builder_.Finish();
74 }
75 
76 inline flatbuffers::Offset<Git_state_fb> CreateGit_state_fbDirect(
77  flatbuffers::FlatBufferBuilder &_fbb,
78  const char *repo = nullptr,
79  const char *sha1 = nullptr,
80  uint8_t modified = 0) {
82  _fbb,
83  repo ? _fbb.CreateString(repo) : 0,
84  sha1 ? _fbb.CreateString(sha1) : 0,
85  modified);
86 }
87 
88 inline const MagAOX::logger::Git_state_fb *GetGit_state_fb(const void *buf) {
89  return flatbuffers::GetRoot<MagAOX::logger::Git_state_fb>(buf);
90 }
91 
92 inline const MagAOX::logger::Git_state_fb *GetSizePrefixedGit_state_fb(const void *buf) {
93  return flatbuffers::GetSizePrefixedRoot<MagAOX::logger::Git_state_fb>(buf);
94 }
95 
97  flatbuffers::Verifier &verifier) {
98  return verifier.VerifyBuffer<MagAOX::logger::Git_state_fb>(nullptr);
99 }
100 
102  flatbuffers::Verifier &verifier) {
103  return verifier.VerifySizePrefixedBuffer<MagAOX::logger::Git_state_fb>(nullptr);
104 }
105 
107  flatbuffers::FlatBufferBuilder &fbb,
108  flatbuffers::Offset<MagAOX::logger::Git_state_fb> root) {
109  fbb.Finish(root);
110 }
111 
113  flatbuffers::FlatBufferBuilder &fbb,
114  flatbuffers::Offset<MagAOX::logger::Git_state_fb> root) {
115  fbb.FinishSizePrefixed(root);
116 }
117 
118 } // namespace logger
119 } // namespace MagAOX
120 
121 #endif // FLATBUFFERS_GENERATED_GITSTATE_MAGAOX_LOGGER_H_
const MagAOX::logger::Git_state_fb * GetGit_state_fb(const void *buf)
void add_sha1(flatbuffers::Offset< flatbuffers::String > sha1)
flatbuffers::FlatBufferBuilder & fbb_
const MagAOX::logger::Git_state_fb * GetSizePrefixedGit_state_fb(const void *buf)
flatbuffers::Offset< Git_state_fb > Finish()
bool VerifyGit_state_fbBuffer(flatbuffers::Verifier &verifier)
bool Verify(flatbuffers::Verifier &verifier) const
flatbuffers::Offset< Git_state_fb > CreateGit_state_fbDirect(flatbuffers::FlatBufferBuilder &_fbb, const char *repo=nullptr, const char *sha1=nullptr, uint8_t modified=0)
flatbuffers::Offset< Git_state_fb > CreateGit_state_fb(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset< flatbuffers::String > repo=0, flatbuffers::Offset< flatbuffers::String > sha1=0, uint8_t modified=0)
const flatbuffers::String * repo() const
Git_state_fbBuilder(flatbuffers::FlatBufferBuilder &_fbb)
const flatbuffers::String * sha1() const
void FinishGit_state_fbBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< MagAOX::logger::Git_state_fb > root)
bool VerifySizePrefixedGit_state_fbBuffer(flatbuffers::Verifier &verifier)
void add_repo(flatbuffers::Offset< flatbuffers::String > repo)
void FinishSizePrefixedGit_state_fbBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< MagAOX::logger::Git_state_fb > root)