LeviLamina
Loading...
Searching...
No Matches
JSONCppSchemaReaderBase.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/cereal/schema/SchemaReader.h"
7#include "mc/platform/Result.h"
8
9namespace cereal {
10
12public:
13 // JSONCppSchemaReaderBase inner types declare
14 // clang-format off
15 struct State;
16 // clang-format on
17
18 // JSONCppSchemaReaderBase inner types define
19 struct State {
20 public:
21 // member variables
22 // NOLINTBEGIN
25 // NOLINTEND
26
27 public:
28 // prevent constructor by default
29 State& operator=(State const&);
30 State(State const&);
31 State();
32 };
33
34public:
35 // member variables
36 // NOLINTBEGIN
39 // NOLINTEND
40
41public:
42 // prevent constructor by default
46
47public:
48 // virtual functions
49 // NOLINTBEGIN
50 // vIndex: 1
51 virtual bool isValid() const /*override*/;
52
53 // vIndex: 2
54 virtual bool isObject() const /*override*/;
55
56 // vIndex: 3
57 virtual bool isArray() const /*override*/;
58
59 // vIndex: 4
60 virtual bool isNull() const /*override*/;
61
62 // vIndex: 5
63 virtual ::Bedrock::Result<bool> asBool() /*override*/;
64
65 // vIndex: 6
66 virtual ::Bedrock::Result<schar> asInt8() /*override*/;
67
68 // vIndex: 7
69 virtual ::Bedrock::Result<uchar> asUInt8() /*override*/;
70
71 // vIndex: 8
72 virtual ::Bedrock::Result<short> asInt16() /*override*/;
73
74 // vIndex: 9
75 virtual ::Bedrock::Result<ushort> asUInt16() /*override*/;
76
77 // vIndex: 10
78 virtual ::Bedrock::Result<int> asInt32() /*override*/;
79
80 // vIndex: 11
81 virtual ::Bedrock::Result<uint> asUInt32() /*override*/;
82
83 // vIndex: 12
84 virtual ::Bedrock::Result<int64> asInt64() /*override*/;
85
86 // vIndex: 13
87 virtual ::Bedrock::Result<uint64> asUInt64() /*override*/;
88
89 // vIndex: 14
90 virtual ::Bedrock::Result<float> asFloat() /*override*/;
91
92 // vIndex: 15
93 virtual ::Bedrock::Result<double> asDouble() /*override*/;
94
95 // vIndex: 16
96 virtual ::Bedrock::Result<::std::string> asString() /*override*/;
97
98 // vIndex: 17
99 virtual uint64 members() /*override*/;
100
101 // vIndex: 18
102 virtual uint64 length() /*override*/;
103
104 // vIndex: 19
105 virtual bool pushMember(::std::string_view const name) /*override*/;
106
107 // vIndex: 20
108 virtual ::std::string_view pushNextMember() /*override*/;
109
110 // vIndex: 21
111 virtual void pushElement(uint64 index) /*override*/;
112
113 // vIndex: 22
114 virtual void pop() /*override*/;
115
116 // vIndex: 23
117 virtual bool _allowAsBool() = 0;
118
119 // vIndex: 24
120 virtual bool _allowAsInt8() = 0;
121
122 // vIndex: 25
123 virtual bool _allowAsUInt8() = 0;
124
125 // vIndex: 26
126 virtual bool _allowAsInt16() = 0;
127
128 // vIndex: 27
129 virtual bool _allowAsUInt16() = 0;
130
131 // vIndex: 28
132 virtual bool _allowAsInt32() = 0;
133
134 // vIndex: 29
135 virtual bool _allowAsUInt32() = 0;
136
137 // vIndex: 30
138 virtual bool _allowAsInt64() = 0;
139
140 // vIndex: 31
141 virtual bool _allowAsUInt64() = 0;
142
143 // vIndex: 32
144 virtual bool _allowAsFloat() = 0;
145
146 // vIndex: 33
147 virtual bool _allowAsDouble() = 0;
148
149 // vIndex: 0
150 virtual ~JSONCppSchemaReaderBase() /*override*/ = default;
151 // NOLINTEND
152
153public:
154 // virtual function thunks
155 // NOLINTBEGIN
156 MCNAPI bool $isValid() const;
157
158 MCNAPI bool $isObject() const;
159
160 MCNAPI bool $isArray() const;
161
162 MCNAPI bool $isNull() const;
163
164 MCNAPI ::Bedrock::Result<bool> $asBool();
165
166 MCNAPI ::Bedrock::Result<schar> $asInt8();
167
168 MCNAPI ::Bedrock::Result<uchar> $asUInt8();
169
170 MCNAPI ::Bedrock::Result<short> $asInt16();
171
172 MCNAPI ::Bedrock::Result<ushort> $asUInt16();
173
174 MCNAPI ::Bedrock::Result<int> $asInt32();
175
176 MCNAPI ::Bedrock::Result<uint> $asUInt32();
177
178 MCNAPI ::Bedrock::Result<int64> $asInt64();
179
180 MCNAPI ::Bedrock::Result<uint64> $asUInt64();
181
182 MCNAPI ::Bedrock::Result<float> $asFloat();
183
184 MCNAPI ::Bedrock::Result<double> $asDouble();
185
186 MCNAPI ::Bedrock::Result<::std::string> $asString();
187
188 MCNAPI uint64 $members();
189
190 MCNAPI uint64 $length();
191
192 MCNAPI bool $pushMember(::std::string_view const name);
193
194 MCNAPI ::std::string_view $pushNextMember();
195
196 MCNAPI void $pushElement(uint64 index);
197
198 MCNAPI void $pop();
199 // NOLINTEND
200
201public:
202 // vftables
203 // NOLINTBEGIN
204 MCNAPI static void** $vftable();
205 // NOLINTEND
206};
207
208} // namespace cereal
Definition JSONCppSchemaReaderBase.h:11
MCAPI bool $isObject() const
MCAPI ::Bedrock::Result< uint64 > $asUInt64()
MCAPI ::Bedrock::Result< bool > $asBool()
MCAPI ::Bedrock::Result< uint > $asUInt32()
MCAPI ::Bedrock::Result< float > $asFloat()
MCAPI ::Bedrock::Result< short > $asInt16()
MCAPI ::Bedrock::Result<::std::string > $asString()
MCAPI ::Bedrock::Result< uchar > $asUInt8()
MCAPI ::Bedrock::Result< ushort > $asUInt16()
MCAPI ::Bedrock::Result< int64 > $asInt64()
MCAPI::std::string_view $pushNextMember()
MCAPI void $pushElement(uint64 index)
MCAPI ::Bedrock::Result< schar > $asInt8()
MCAPI ::Bedrock::Result< int > $asInt32()
static MCAPI void ** $vftable()
MCAPI bool $pushMember(::std::string_view const name)
MCAPI ::Bedrock::Result< double > $asDouble()
STL namespace.
Definition JSONCppSchemaReaderBase.h:19
Definition SchemaReader.h:10
Definition Alias.h:14