2017-06-15 13:42:50 +08:00
|
|
|
|
// automatically generated by the FlatBuffers compiler, do not modify
|
2016-02-24 14:59:37 +08:00
|
|
|
|
|
|
|
|
|
#ifndef FLATBUFFERS_GENERATED_CSLANGUAGEDATABINARY_FLATBUFFERS_H_
|
|
|
|
|
#define FLATBUFFERS_GENERATED_CSLANGUAGEDATABINARY_FLATBUFFERS_H_
|
|
|
|
|
|
|
|
|
|
#include "flatbuffers/flatbuffers.h"
|
|
|
|
|
|
2017-06-15 13:42:50 +08:00
|
|
|
|
|
2016-02-24 14:59:37 +08:00
|
|
|
|
namespace flatbuffers {
|
|
|
|
|
|
|
|
|
|
struct LanguageItem;
|
|
|
|
|
struct LanguageSet;
|
|
|
|
|
|
2017-06-15 13:42:50 +08:00
|
|
|
|
struct LanguageItem : private flatbuffers::Table {
|
|
|
|
|
const flatbuffers::String *key() const { return GetPointer<const flatbuffers::String *>(4); }
|
|
|
|
|
const flatbuffers::String *value() const { return GetPointer<const flatbuffers::String *>(6); }
|
2016-02-24 14:59:37 +08:00
|
|
|
|
bool Verify(flatbuffers::Verifier &verifier) const {
|
|
|
|
|
return VerifyTableStart(verifier) &&
|
2017-06-15 13:42:50 +08:00
|
|
|
|
VerifyField<flatbuffers::uoffset_t>(verifier, 4 /* key */) &&
|
2016-02-24 14:59:37 +08:00
|
|
|
|
verifier.Verify(key()) &&
|
2017-06-15 13:42:50 +08:00
|
|
|
|
VerifyField<flatbuffers::uoffset_t>(verifier, 6 /* value */) &&
|
2016-02-24 14:59:37 +08:00
|
|
|
|
verifier.Verify(value()) &&
|
|
|
|
|
verifier.EndTable();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct LanguageItemBuilder {
|
|
|
|
|
flatbuffers::FlatBufferBuilder &fbb_;
|
|
|
|
|
flatbuffers::uoffset_t start_;
|
2017-06-15 13:42:50 +08:00
|
|
|
|
void add_key(flatbuffers::Offset<flatbuffers::String> key) { fbb_.AddOffset(4, key); }
|
|
|
|
|
void add_value(flatbuffers::Offset<flatbuffers::String> value) { fbb_.AddOffset(6, value); }
|
2016-02-24 14:59:37 +08:00
|
|
|
|
LanguageItemBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); }
|
|
|
|
|
LanguageItemBuilder &operator=(const LanguageItemBuilder &);
|
|
|
|
|
flatbuffers::Offset<LanguageItem> Finish() {
|
|
|
|
|
auto o = flatbuffers::Offset<LanguageItem>(fbb_.EndTable(start_, 2));
|
|
|
|
|
return o;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
inline flatbuffers::Offset<LanguageItem> CreateLanguageItem(flatbuffers::FlatBufferBuilder &_fbb,
|
2017-06-15 13:42:50 +08:00
|
|
|
|
flatbuffers::Offset<flatbuffers::String> key = 0,
|
|
|
|
|
flatbuffers::Offset<flatbuffers::String> value = 0) {
|
2016-02-24 14:59:37 +08:00
|
|
|
|
LanguageItemBuilder builder_(_fbb);
|
|
|
|
|
builder_.add_value(value);
|
|
|
|
|
builder_.add_key(key);
|
|
|
|
|
return builder_.Finish();
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-15 13:42:50 +08:00
|
|
|
|
struct LanguageSet : private flatbuffers::Table {
|
|
|
|
|
const flatbuffers::Vector<flatbuffers::Offset<LanguageItem>> *languageItems() const { return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<LanguageItem>> *>(4); }
|
2016-02-24 14:59:37 +08:00
|
|
|
|
bool Verify(flatbuffers::Verifier &verifier) const {
|
|
|
|
|
return VerifyTableStart(verifier) &&
|
2017-06-15 13:42:50 +08:00
|
|
|
|
VerifyField<flatbuffers::uoffset_t>(verifier, 4 /* languageItems */) &&
|
2016-02-24 14:59:37 +08:00
|
|
|
|
verifier.Verify(languageItems()) &&
|
|
|
|
|
verifier.VerifyVectorOfTables(languageItems()) &&
|
|
|
|
|
verifier.EndTable();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct LanguageSetBuilder {
|
|
|
|
|
flatbuffers::FlatBufferBuilder &fbb_;
|
|
|
|
|
flatbuffers::uoffset_t start_;
|
2017-06-15 13:42:50 +08:00
|
|
|
|
void add_languageItems(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<LanguageItem>>> languageItems) { fbb_.AddOffset(4, languageItems); }
|
2016-02-24 14:59:37 +08:00
|
|
|
|
LanguageSetBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); }
|
|
|
|
|
LanguageSetBuilder &operator=(const LanguageSetBuilder &);
|
|
|
|
|
flatbuffers::Offset<LanguageSet> Finish() {
|
|
|
|
|
auto o = flatbuffers::Offset<LanguageSet>(fbb_.EndTable(start_, 1));
|
|
|
|
|
return o;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
inline flatbuffers::Offset<LanguageSet> CreateLanguageSet(flatbuffers::FlatBufferBuilder &_fbb,
|
2017-06-15 13:42:50 +08:00
|
|
|
|
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<LanguageItem>>> languageItems = 0) {
|
2016-02-24 14:59:37 +08:00
|
|
|
|
LanguageSetBuilder builder_(_fbb);
|
|
|
|
|
builder_.add_languageItems(languageItems);
|
|
|
|
|
return builder_.Finish();
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-15 13:42:50 +08:00
|
|
|
|
inline const LanguageSet *GetLanguageSet(const void *buf) { return flatbuffers::GetRoot<LanguageSet>(buf); }
|
2016-02-24 14:59:37 +08:00
|
|
|
|
|
2017-06-15 13:42:50 +08:00
|
|
|
|
inline bool VerifyLanguageSetBuffer(flatbuffers::Verifier &verifier) { return verifier.VerifyBuffer<LanguageSet>(); }
|
2016-02-24 14:59:37 +08:00
|
|
|
|
|
2017-06-15 13:42:50 +08:00
|
|
|
|
inline void FinishLanguageSetBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset<LanguageSet> root) { fbb.Finish(root); }
|
2016-02-24 14:59:37 +08:00
|
|
|
|
|
|
|
|
|
} // namespace flatbuffers
|
|
|
|
|
|
|
|
|
|
#endif // FLATBUFFERS_GENERATED_CSLANGUAGEDATABINARY_FLATBUFFERS_H_
|