2018-01-29 16:25:32 +08:00
|
|
|
// automatically generated by the FlatBuffers compiler, do not modify
|
2016-02-24 14:59:37 +08:00
|
|
|
|
2019-11-24 23:15:56 +08:00
|
|
|
|
2016-02-24 14:59:37 +08:00
|
|
|
#ifndef FLATBUFFERS_GENERATED_CSLANGUAGEDATABINARY_FLATBUFFERS_H_
|
|
|
|
#define FLATBUFFERS_GENERATED_CSLANGUAGEDATABINARY_FLATBUFFERS_H_
|
|
|
|
|
|
|
|
#include "flatbuffers/flatbuffers.h"
|
|
|
|
|
|
|
|
namespace flatbuffers {
|
|
|
|
|
|
|
|
struct LanguageItem;
|
2019-11-24 23:15:56 +08:00
|
|
|
|
2016-02-24 14:59:37 +08:00
|
|
|
struct LanguageSet;
|
|
|
|
|
2019-11-24 23:15:56 +08:00
|
|
|
struct LanguageItem FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
|
|
|
|
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
|
|
|
|
VT_KEY = 4,
|
|
|
|
VT_VALUE = 6
|
|
|
|
};
|
|
|
|
const flatbuffers::String *key() const {
|
|
|
|
return GetPointer<const flatbuffers::String *>(VT_KEY);
|
|
|
|
}
|
|
|
|
const flatbuffers::String *value() const {
|
|
|
|
return GetPointer<const flatbuffers::String *>(VT_VALUE);
|
|
|
|
}
|
2016-02-24 14:59:37 +08:00
|
|
|
bool Verify(flatbuffers::Verifier &verifier) const {
|
|
|
|
return VerifyTableStart(verifier) &&
|
2019-11-24 23:15:56 +08:00
|
|
|
VerifyOffset(verifier, VT_KEY) &&
|
|
|
|
verifier.VerifyString(key()) &&
|
|
|
|
VerifyOffset(verifier, VT_VALUE) &&
|
|
|
|
verifier.VerifyString(value()) &&
|
2016-02-24 14:59:37 +08:00
|
|
|
verifier.EndTable();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct LanguageItemBuilder {
|
|
|
|
flatbuffers::FlatBufferBuilder &fbb_;
|
|
|
|
flatbuffers::uoffset_t start_;
|
2019-11-24 23:15:56 +08:00
|
|
|
void add_key(flatbuffers::Offset<flatbuffers::String> key) {
|
|
|
|
fbb_.AddOffset(LanguageItem::VT_KEY, key);
|
|
|
|
}
|
|
|
|
void add_value(flatbuffers::Offset<flatbuffers::String> value) {
|
|
|
|
fbb_.AddOffset(LanguageItem::VT_VALUE, value);
|
|
|
|
}
|
|
|
|
explicit LanguageItemBuilder(flatbuffers::FlatBufferBuilder &_fbb)
|
|
|
|
: fbb_(_fbb) {
|
|
|
|
start_ = fbb_.StartTable();
|
|
|
|
}
|
2016-02-24 14:59:37 +08:00
|
|
|
LanguageItemBuilder &operator=(const LanguageItemBuilder &);
|
|
|
|
flatbuffers::Offset<LanguageItem> Finish() {
|
2019-11-24 23:15:56 +08:00
|
|
|
const auto end = fbb_.EndTable(start_);
|
|
|
|
auto o = flatbuffers::Offset<LanguageItem>(end);
|
2016-02-24 14:59:37 +08:00
|
|
|
return o;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2019-11-24 23:15:56 +08:00
|
|
|
inline flatbuffers::Offset<LanguageItem> CreateLanguageItem(
|
|
|
|
flatbuffers::FlatBufferBuilder &_fbb,
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
|
2019-11-24 23:15:56 +08:00
|
|
|
inline flatbuffers::Offset<LanguageItem> CreateLanguageItemDirect(
|
|
|
|
flatbuffers::FlatBufferBuilder &_fbb,
|
|
|
|
const char *key = nullptr,
|
|
|
|
const char *value = nullptr) {
|
|
|
|
auto key__ = key ? _fbb.CreateString(key) : 0;
|
|
|
|
auto value__ = value ? _fbb.CreateString(value) : 0;
|
|
|
|
return flatbuffers::CreateLanguageItem(
|
|
|
|
_fbb,
|
|
|
|
key__,
|
|
|
|
value__);
|
|
|
|
}
|
|
|
|
|
|
|
|
struct LanguageSet FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
|
|
|
|
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
|
|
|
|
VT_LANGUAGEITEMS = 4
|
|
|
|
};
|
|
|
|
const flatbuffers::Vector<flatbuffers::Offset<LanguageItem>> *languageItems() const {
|
|
|
|
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<LanguageItem>> *>(VT_LANGUAGEITEMS);
|
|
|
|
}
|
2016-02-24 14:59:37 +08:00
|
|
|
bool Verify(flatbuffers::Verifier &verifier) const {
|
|
|
|
return VerifyTableStart(verifier) &&
|
2019-11-24 23:15:56 +08:00
|
|
|
VerifyOffset(verifier, VT_LANGUAGEITEMS) &&
|
|
|
|
verifier.VerifyVector(languageItems()) &&
|
2016-02-24 14:59:37 +08:00
|
|
|
verifier.VerifyVectorOfTables(languageItems()) &&
|
|
|
|
verifier.EndTable();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct LanguageSetBuilder {
|
|
|
|
flatbuffers::FlatBufferBuilder &fbb_;
|
|
|
|
flatbuffers::uoffset_t start_;
|
2019-11-24 23:15:56 +08:00
|
|
|
void add_languageItems(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<LanguageItem>>> languageItems) {
|
|
|
|
fbb_.AddOffset(LanguageSet::VT_LANGUAGEITEMS, languageItems);
|
|
|
|
}
|
|
|
|
explicit LanguageSetBuilder(flatbuffers::FlatBufferBuilder &_fbb)
|
|
|
|
: fbb_(_fbb) {
|
|
|
|
start_ = fbb_.StartTable();
|
|
|
|
}
|
2016-02-24 14:59:37 +08:00
|
|
|
LanguageSetBuilder &operator=(const LanguageSetBuilder &);
|
|
|
|
flatbuffers::Offset<LanguageSet> Finish() {
|
2019-11-24 23:15:56 +08:00
|
|
|
const auto end = fbb_.EndTable(start_);
|
|
|
|
auto o = flatbuffers::Offset<LanguageSet>(end);
|
2016-02-24 14:59:37 +08:00
|
|
|
return o;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2019-11-24 23:15:56 +08:00
|
|
|
inline flatbuffers::Offset<LanguageSet> CreateLanguageSet(
|
|
|
|
flatbuffers::FlatBufferBuilder &_fbb,
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
|
2019-11-24 23:15:56 +08:00
|
|
|
inline flatbuffers::Offset<LanguageSet> CreateLanguageSetDirect(
|
|
|
|
flatbuffers::FlatBufferBuilder &_fbb,
|
|
|
|
const std::vector<flatbuffers::Offset<LanguageItem>> *languageItems = nullptr) {
|
|
|
|
auto languageItems__ = languageItems ? _fbb.CreateVector<flatbuffers::Offset<LanguageItem>>(*languageItems) : 0;
|
|
|
|
return flatbuffers::CreateLanguageSet(
|
|
|
|
_fbb,
|
|
|
|
languageItems__);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline const flatbuffers::LanguageSet *GetLanguageSet(const void *buf) {
|
|
|
|
return flatbuffers::GetRoot<flatbuffers::LanguageSet>(buf);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline const flatbuffers::LanguageSet *GetSizePrefixedLanguageSet(const void *buf) {
|
|
|
|
return flatbuffers::GetSizePrefixedRoot<flatbuffers::LanguageSet>(buf);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline bool VerifyLanguageSetBuffer(
|
|
|
|
flatbuffers::Verifier &verifier) {
|
|
|
|
return verifier.VerifyBuffer<flatbuffers::LanguageSet>(nullptr);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline bool VerifySizePrefixedLanguageSetBuffer(
|
|
|
|
flatbuffers::Verifier &verifier) {
|
|
|
|
return verifier.VerifySizePrefixedBuffer<flatbuffers::LanguageSet>(nullptr);
|
|
|
|
}
|
2016-02-24 14:59:37 +08:00
|
|
|
|
2019-11-24 23:15:56 +08:00
|
|
|
inline void FinishLanguageSetBuffer(
|
|
|
|
flatbuffers::FlatBufferBuilder &fbb,
|
|
|
|
flatbuffers::Offset<flatbuffers::LanguageSet> root) {
|
|
|
|
fbb.Finish(root);
|
|
|
|
}
|
2016-02-24 14:59:37 +08:00
|
|
|
|
2019-11-24 23:15:56 +08:00
|
|
|
inline void FinishSizePrefixedLanguageSetBuffer(
|
|
|
|
flatbuffers::FlatBufferBuilder &fbb,
|
|
|
|
flatbuffers::Offset<flatbuffers::LanguageSet> root) {
|
|
|
|
fbb.FinishSizePrefixed(root);
|
|
|
|
}
|
2016-02-24 14:59:37 +08:00
|
|
|
|
|
|
|
} // namespace flatbuffers
|
|
|
|
|
|
|
|
#endif // FLATBUFFERS_GENERATED_CSLANGUAGEDATABINARY_FLATBUFFERS_H_
|