4 #ifndef FLATBUFFERS_GENERATED_GITSTATE_MAGAOX_LOGGER_H_ 5 #define FLATBUFFERS_GENERATED_GITSTATE_MAGAOX_LOGGER_H_ 7 #include "flatbuffers/flatbuffers.h" 14 struct Git_state_fb FLATBUFFERS_FINAL_CLASS :
private flatbuffers::Table {
20 const flatbuffers::String *
repo()
const {
21 return GetPointer<const flatbuffers::String *>(VT_REPO);
23 const flatbuffers::String *
sha1()
const {
24 return GetPointer<const flatbuffers::String *>(VT_SHA1);
27 return GetField<uint8_t>(VT_MODIFIED, 0);
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) &&
41 flatbuffers::FlatBufferBuilder &
fbb_;
43 void add_repo(flatbuffers::Offset<flatbuffers::String> repo) {
44 fbb_.AddOffset(Git_state_fb::VT_REPO, repo);
46 void add_sha1(flatbuffers::Offset<flatbuffers::String> sha1) {
47 fbb_.AddOffset(Git_state_fb::VT_SHA1, sha1);
50 fbb_.AddElement<uint8_t>(Git_state_fb::VT_MODIFIED, modified, 0);
54 start_ = fbb_.StartTable();
57 flatbuffers::Offset<Git_state_fb>
Finish() {
58 const auto end = fbb_.EndTable(start_);
59 auto o = flatbuffers::Offset<Git_state_fb>(end);
65 flatbuffers::FlatBufferBuilder &_fbb,
66 flatbuffers::Offset<flatbuffers::String> repo = 0,
67 flatbuffers::Offset<flatbuffers::String> sha1 = 0,
68 uint8_t modified = 0) {
77 flatbuffers::FlatBufferBuilder &_fbb,
78 const char *repo =
nullptr,
79 const char *sha1 =
nullptr,
80 uint8_t modified = 0) {
83 repo ? _fbb.CreateString(repo) : 0,
84 sha1 ? _fbb.CreateString(sha1) : 0,
89 return flatbuffers::GetRoot<MagAOX::logger::Git_state_fb>(buf);
93 return flatbuffers::GetSizePrefixedRoot<MagAOX::logger::Git_state_fb>(buf);
97 flatbuffers::Verifier &verifier) {
98 return verifier.VerifyBuffer<MagAOX::logger::Git_state_fb>(
nullptr);
102 flatbuffers::Verifier &verifier) {
103 return verifier.VerifySizePrefixedBuffer<MagAOX::logger::Git_state_fb>(
nullptr);
107 flatbuffers::FlatBufferBuilder &fbb,
108 flatbuffers::Offset<MagAOX::logger::Git_state_fb> root) {
113 flatbuffers::FlatBufferBuilder &fbb,
114 flatbuffers::Offset<MagAOX::logger::Git_state_fb> root) {
115 fbb.FinishSizePrefixed(root);
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)
flatbuffers::uoffset_t start_
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)
void add_modified(uint8_t modified)
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)