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