-
Notifications
You must be signed in to change notification settings - Fork 1
/
file_data_table_generated.h
204 lines (182 loc) · 6.67 KB
/
file_data_table_generated.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
// automatically generated by the FlatBuffers compiler, do not modify
#ifndef FLATBUFFERS_GENERATED_FILEDATATABLE_H_
#define FLATBUFFERS_GENERATED_FILEDATATABLE_H_
#include "flatbuffers/flatbuffers.h"
struct PacketHeader;
struct FileDataDefinition;
struct FileDataDefinitionBuilder;
struct FileDataTable;
struct FileDataTableBuilder;
FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(4) PacketHeader FLATBUFFERS_FINAL_CLASS {
private:
int32_t StreamID_;
int32_t Size_;
public:
PacketHeader() {
memset(static_cast<void *>(this), 0, sizeof(PacketHeader));
}
PacketHeader(int32_t _StreamID, int32_t _Size)
: StreamID_(flatbuffers::EndianScalar(_StreamID)),
Size_(flatbuffers::EndianScalar(_Size)) {
}
int32_t StreamID() const {
return flatbuffers::EndianScalar(StreamID_);
}
int32_t Size() const {
return flatbuffers::EndianScalar(Size_);
}
};
FLATBUFFERS_STRUCT_END(PacketHeader, 8);
struct FileDataDefinition FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
typedef FileDataDefinitionBuilder Builder;
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
VT_BYTEOFFSET = 4,
VT_PACKETINFO = 6,
VT_NUMELEMENTS = 8,
VT_TIMESTAMPSTART = 10,
VT_TIMESTAMPEND = 12
};
int64_t ByteOffset() const {
return GetField<int64_t>(VT_BYTEOFFSET, 0);
}
const PacketHeader *PacketInfo() const {
return GetStruct<const PacketHeader *>(VT_PACKETINFO);
}
int64_t NumElements() const {
return GetField<int64_t>(VT_NUMELEMENTS, 0);
}
int64_t TimestampStart() const {
return GetField<int64_t>(VT_TIMESTAMPSTART, 0);
}
int64_t TimestampEnd() const {
return GetField<int64_t>(VT_TIMESTAMPEND, 0);
}
bool Verify(flatbuffers::Verifier &verifier) const {
return VerifyTableStart(verifier) &&
VerifyField<int64_t>(verifier, VT_BYTEOFFSET) &&
VerifyField<PacketHeader>(verifier, VT_PACKETINFO) &&
VerifyField<int64_t>(verifier, VT_NUMELEMENTS) &&
VerifyField<int64_t>(verifier, VT_TIMESTAMPSTART) &&
VerifyField<int64_t>(verifier, VT_TIMESTAMPEND) &&
verifier.EndTable();
}
};
struct FileDataDefinitionBuilder {
typedef FileDataDefinition Table;
flatbuffers::FlatBufferBuilder &fbb_;
flatbuffers::uoffset_t start_;
void add_ByteOffset(int64_t ByteOffset) {
fbb_.AddElement<int64_t>(FileDataDefinition::VT_BYTEOFFSET, ByteOffset, 0);
}
void add_PacketInfo(const PacketHeader *PacketInfo) {
fbb_.AddStruct(FileDataDefinition::VT_PACKETINFO, PacketInfo);
}
void add_NumElements(int64_t NumElements) {
fbb_.AddElement<int64_t>(FileDataDefinition::VT_NUMELEMENTS, NumElements, 0);
}
void add_TimestampStart(int64_t TimestampStart) {
fbb_.AddElement<int64_t>(FileDataDefinition::VT_TIMESTAMPSTART, TimestampStart, 0);
}
void add_TimestampEnd(int64_t TimestampEnd) {
fbb_.AddElement<int64_t>(FileDataDefinition::VT_TIMESTAMPEND, TimestampEnd, 0);
}
explicit FileDataDefinitionBuilder(flatbuffers::FlatBufferBuilder &_fbb)
: fbb_(_fbb) {
start_ = fbb_.StartTable();
}
FileDataDefinitionBuilder &operator=(const FileDataDefinitionBuilder &);
flatbuffers::Offset<FileDataDefinition> Finish() {
const auto end = fbb_.EndTable(start_);
auto o = flatbuffers::Offset<FileDataDefinition>(end);
return o;
}
};
inline flatbuffers::Offset<FileDataDefinition> CreateFileDataDefinition(
flatbuffers::FlatBufferBuilder &_fbb,
int64_t ByteOffset = 0,
const PacketHeader *PacketInfo = 0,
int64_t NumElements = 0,
int64_t TimestampStart = 0,
int64_t TimestampEnd = 0) {
FileDataDefinitionBuilder builder_(_fbb);
builder_.add_TimestampEnd(TimestampEnd);
builder_.add_TimestampStart(TimestampStart);
builder_.add_NumElements(NumElements);
builder_.add_ByteOffset(ByteOffset);
builder_.add_PacketInfo(PacketInfo);
return builder_.Finish();
}
struct FileDataTable FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
typedef FileDataTableBuilder Builder;
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
VT_TABLE = 4
};
const flatbuffers::Vector<flatbuffers::Offset<FileDataDefinition>> *Table() const {
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<FileDataDefinition>> *>(VT_TABLE);
}
bool Verify(flatbuffers::Verifier &verifier) const {
return VerifyTableStart(verifier) &&
VerifyOffset(verifier, VT_TABLE) &&
verifier.VerifyVector(Table()) &&
verifier.VerifyVectorOfTables(Table()) &&
verifier.EndTable();
}
};
struct FileDataTableBuilder {
typedef FileDataTable Table;
flatbuffers::FlatBufferBuilder &fbb_;
flatbuffers::uoffset_t start_;
void add_Table(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<FileDataDefinition>>> Table) {
fbb_.AddOffset(FileDataTable::VT_TABLE, Table);
}
explicit FileDataTableBuilder(flatbuffers::FlatBufferBuilder &_fbb)
: fbb_(_fbb) {
start_ = fbb_.StartTable();
}
FileDataTableBuilder &operator=(const FileDataTableBuilder &);
flatbuffers::Offset<FileDataTable> Finish() {
const auto end = fbb_.EndTable(start_);
auto o = flatbuffers::Offset<FileDataTable>(end);
return o;
}
};
inline flatbuffers::Offset<FileDataTable> CreateFileDataTable(
flatbuffers::FlatBufferBuilder &_fbb,
flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<FileDataDefinition>>> Table = 0) {
FileDataTableBuilder builder_(_fbb);
builder_.add_Table(Table);
return builder_.Finish();
}
inline flatbuffers::Offset<FileDataTable> CreateFileDataTableDirect(
flatbuffers::FlatBufferBuilder &_fbb,
const std::vector<flatbuffers::Offset<FileDataDefinition>> *Table = nullptr) {
auto Table__ = Table ? _fbb.CreateVector<flatbuffers::Offset<FileDataDefinition>>(*Table) : 0;
return CreateFileDataTable(
_fbb,
Table__);
}
inline const FileDataTable *GetFileDataTable(const void *buf) {
return flatbuffers::GetRoot<FileDataTable>(buf);
}
inline const FileDataTable *GetSizePrefixedFileDataTable(const void *buf) {
return flatbuffers::GetSizePrefixedRoot<FileDataTable>(buf);
}
inline bool VerifyFileDataTableBuffer(
flatbuffers::Verifier &verifier) {
return verifier.VerifyBuffer<FileDataTable>(nullptr);
}
inline bool VerifySizePrefixedFileDataTableBuffer(
flatbuffers::Verifier &verifier) {
return verifier.VerifySizePrefixedBuffer<FileDataTable>(nullptr);
}
inline void FinishFileDataTableBuffer(
flatbuffers::FlatBufferBuilder &fbb,
flatbuffers::Offset<FileDataTable> root) {
fbb.Finish(root);
}
inline void FinishSizePrefixedFileDataTableBuffer(
flatbuffers::FlatBufferBuilder &fbb,
flatbuffers::Offset<FileDataTable> root) {
fbb.FinishSizePrefixed(root);
}
#endif // FLATBUFFERS_GENERATED_FILEDATATABLE_H_