123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- // automatically generated by the FlatBuffers compiler, do not modify
- #ifndef FLATBUFFERS_GENERATED_GENERICTASK_GENERICDATA_H_
- #define FLATBUFFERS_GENERATED_GENERICTASK_GENERICDATA_H_
- #include "flatbuffers/flatbuffers.h"
- namespace GenericData {
- struct GenericTask;
- struct GenericTaskBuilder;
- struct GenericTask FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
- typedef GenericTaskBuilder Builder;
- enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
- VT_ID = 4,
- VT_FILE_INFO = 6,
- VT_TIME = 8,
- VT_DESCRIPTION = 10,
- VT_IS_VIDEO = 12,
- VT_MASK = 14,
- VT_HEADER = 16,
- VT_USER = 18,
- VT_RECURRING = 20,
- VT_NOTIFY = 22
- };
- int32_t id() const {
- return GetField<int32_t>(VT_ID, 0);
- }
- const flatbuffers::String *file_info() const {
- return GetPointer<const flatbuffers::String *>(VT_FILE_INFO);
- }
- const flatbuffers::String *time() const {
- return GetPointer<const flatbuffers::String *>(VT_TIME);
- }
- const flatbuffers::String *description() const {
- return GetPointer<const flatbuffers::String *>(VT_DESCRIPTION);
- }
- bool is_video() const {
- return GetField<uint8_t>(VT_IS_VIDEO, 0) != 0;
- }
- int32_t mask() const {
- return GetField<int32_t>(VT_MASK, 0);
- }
- const flatbuffers::String *header() const {
- return GetPointer<const flatbuffers::String *>(VT_HEADER);
- }
- const flatbuffers::String *user() const {
- return GetPointer<const flatbuffers::String *>(VT_USER);
- }
- int32_t recurring() const {
- return GetField<int32_t>(VT_RECURRING, 0);
- }
- bool notify() const {
- return GetField<uint8_t>(VT_NOTIFY, 0) != 0;
- }
- bool Verify(flatbuffers::Verifier &verifier) const {
- return VerifyTableStart(verifier) &&
- VerifyField<int32_t>(verifier, VT_ID) &&
- VerifyOffset(verifier, VT_FILE_INFO) &&
- verifier.VerifyString(file_info()) &&
- VerifyOffset(verifier, VT_TIME) &&
- verifier.VerifyString(time()) &&
- VerifyOffset(verifier, VT_DESCRIPTION) &&
- verifier.VerifyString(description()) &&
- VerifyField<uint8_t>(verifier, VT_IS_VIDEO) &&
- VerifyField<int32_t>(verifier, VT_MASK) &&
- VerifyOffset(verifier, VT_HEADER) &&
- verifier.VerifyString(header()) &&
- VerifyOffset(verifier, VT_USER) &&
- verifier.VerifyString(user()) &&
- VerifyField<int32_t>(verifier, VT_RECURRING) &&
- VerifyField<uint8_t>(verifier, VT_NOTIFY) &&
- verifier.EndTable();
- }
- };
- struct GenericTaskBuilder {
- typedef GenericTask Table;
- flatbuffers::FlatBufferBuilder &fbb_;
- flatbuffers::uoffset_t start_;
- void add_id(int32_t id) {
- fbb_.AddElement<int32_t>(GenericTask::VT_ID, id, 0);
- }
- void add_file_info(flatbuffers::Offset<flatbuffers::String> file_info) {
- fbb_.AddOffset(GenericTask::VT_FILE_INFO, file_info);
- }
- void add_time(flatbuffers::Offset<flatbuffers::String> time) {
- fbb_.AddOffset(GenericTask::VT_TIME, time);
- }
- void add_description(flatbuffers::Offset<flatbuffers::String> description) {
- fbb_.AddOffset(GenericTask::VT_DESCRIPTION, description);
- }
- void add_is_video(bool is_video) {
- fbb_.AddElement<uint8_t>(GenericTask::VT_IS_VIDEO, static_cast<uint8_t>(is_video), 0);
- }
- void add_mask(int32_t mask) {
- fbb_.AddElement<int32_t>(GenericTask::VT_MASK, mask, 0);
- }
- void add_header(flatbuffers::Offset<flatbuffers::String> header) {
- fbb_.AddOffset(GenericTask::VT_HEADER, header);
- }
- void add_user(flatbuffers::Offset<flatbuffers::String> user) {
- fbb_.AddOffset(GenericTask::VT_USER, user);
- }
- void add_recurring(int32_t recurring) {
- fbb_.AddElement<int32_t>(GenericTask::VT_RECURRING, recurring, 0);
- }
- void add_notify(bool notify) {
- fbb_.AddElement<uint8_t>(GenericTask::VT_NOTIFY, static_cast<uint8_t>(notify), 0);
- }
- explicit GenericTaskBuilder(flatbuffers::FlatBufferBuilder &_fbb)
- : fbb_(_fbb) {
- start_ = fbb_.StartTable();
- }
- GenericTaskBuilder &operator=(const GenericTaskBuilder &);
- flatbuffers::Offset<GenericTask> Finish() {
- const auto end = fbb_.EndTable(start_);
- auto o = flatbuffers::Offset<GenericTask>(end);
- return o;
- }
- };
- inline flatbuffers::Offset<GenericTask> CreateGenericTask(
- flatbuffers::FlatBufferBuilder &_fbb,
- int32_t id = 0,
- flatbuffers::Offset<flatbuffers::String> file_info = 0,
- flatbuffers::Offset<flatbuffers::String> time = 0,
- flatbuffers::Offset<flatbuffers::String> description = 0,
- bool is_video = false,
- int32_t mask = 0,
- flatbuffers::Offset<flatbuffers::String> header = 0,
- flatbuffers::Offset<flatbuffers::String> user = 0,
- int32_t recurring = 0,
- bool notify = false) {
- GenericTaskBuilder builder_(_fbb);
- builder_.add_recurring(recurring);
- builder_.add_user(user);
- builder_.add_header(header);
- builder_.add_mask(mask);
- builder_.add_description(description);
- builder_.add_time(time);
- builder_.add_file_info(file_info);
- builder_.add_id(id);
- builder_.add_notify(notify);
- builder_.add_is_video(is_video);
- return builder_.Finish();
- }
- inline flatbuffers::Offset<GenericTask> CreateGenericTaskDirect(
- flatbuffers::FlatBufferBuilder &_fbb,
- int32_t id = 0,
- const char *file_info = nullptr,
- const char *time = nullptr,
- const char *description = nullptr,
- bool is_video = false,
- int32_t mask = 0,
- const char *header = nullptr,
- const char *user = nullptr,
- int32_t recurring = 0,
- bool notify = false) {
- auto file_info__ = file_info ? _fbb.CreateString(file_info) : 0;
- auto time__ = time ? _fbb.CreateString(time) : 0;
- auto description__ = description ? _fbb.CreateString(description) : 0;
- auto header__ = header ? _fbb.CreateString(header) : 0;
- auto user__ = user ? _fbb.CreateString(user) : 0;
- return GenericData::CreateGenericTask(
- _fbb,
- id,
- file_info__,
- time__,
- description__,
- is_video,
- mask,
- header__,
- user__,
- recurring,
- notify);
- }
- inline const GenericData::GenericTask *GetGenericTask(const void *buf) {
- return flatbuffers::GetRoot<GenericData::GenericTask>(buf);
- }
- inline const GenericData::GenericTask *GetSizePrefixedGenericTask(const void *buf) {
- return flatbuffers::GetSizePrefixedRoot<GenericData::GenericTask>(buf);
- }
- inline bool VerifyGenericTaskBuffer(
- flatbuffers::Verifier &verifier) {
- return verifier.VerifyBuffer<GenericData::GenericTask>(nullptr);
- }
- inline bool VerifySizePrefixedGenericTaskBuffer(
- flatbuffers::Verifier &verifier) {
- return verifier.VerifySizePrefixedBuffer<GenericData::GenericTask>(nullptr);
- }
- inline void FinishGenericTaskBuffer(
- flatbuffers::FlatBufferBuilder &fbb,
- flatbuffers::Offset<GenericData::GenericTask> root) {
- fbb.Finish(root);
- }
- inline void FinishSizePrefixedGenericTaskBuffer(
- flatbuffers::FlatBufferBuilder &fbb,
- flatbuffers::Offset<GenericData::GenericTask> root) {
- fbb.FinishSizePrefixed(root);
- }
- } // namespace GenericData
- #endif // FLATBUFFERS_GENERATED_GENERICTASK_GENERICDATA_H_
|