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