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> additionalDataAsBool() /*override*/;
97
98 virtual ::std::optional<uint> additionalDataAsUInt32() /*override*/;
99
100 virtual ::std::optional<::std::string> additionalDataAsString(uint64) /*override*/;
101
102 virtual uint64 members() /*override*/;
103
104 virtual uint64 length(uint64 expectedSize) /*override*/;
105
106 virtual bool pushMember(::std::string_view const name) /*override*/;
107
108 virtual ::std::string_view pushNextMember() /*override*/;
109
110 virtual void pushElement(uint64 index) /*override*/;
111
112 virtual void pop() /*override*/;
113
114 virtual bool _allowAsBool() = 0;
115
116 virtual bool _allowAsInt8() = 0;
117
118 virtual bool _allowAsUInt8() = 0;
119
120 virtual bool _allowAsInt16() = 0;
121
122 virtual bool _allowAsUInt16() = 0;
123
124 virtual bool _allowAsInt32() = 0;
125
126 virtual bool _allowAsUInt32() = 0;
127
128 virtual bool _allowAsInt64() = 0;
129
130 virtual bool _allowAsUInt64() = 0;
131
132 virtual bool _allowAsFloat() = 0;
133
134 virtual bool _allowAsDouble() = 0;
135
136 virtual ~JSONCppSchemaReaderBase() /*override*/;
137 // NOLINTEND
138
139public:
140 // member functions
141 // NOLINTBEGIN
142 MCNAPI explicit JSONCppSchemaReaderBase(::std::string const& data);
143 // NOLINTEND
144
145public:
146 // constructor thunks
147 // NOLINTBEGIN
148 MCNAPI void* $ctor(::std::string const& data);
149 // NOLINTEND
150
151public:
152 // destructor thunk
153 // NOLINTBEGIN
154 MCNAPI void $dtor();
155 // NOLINTEND
156
157public:
158 // virtual function thunks
159 // NOLINTBEGIN
160 MCNAPI bool $isValid() const;
161
162 MCNAPI ::cereal::SchemaRWType $expectedType() const;
163
164 MCNAPI ::Bedrock::Result<void> $asNull();
165
166 MCNAPI ::Bedrock::Result<bool> $asBool();
167
168 MCNAPI ::Bedrock::Result<schar> $asInt8();
169
170 MCNAPI ::Bedrock::Result<uchar> $asUInt8();
171
172 MCNAPI ::Bedrock::Result<short> $asInt16();
173
174 MCNAPI ::Bedrock::Result<ushort> $asUInt16();
175
176 MCNAPI ::Bedrock::Result<int> $asInt32();
177
178 MCNAPI ::Bedrock::Result<uint> $asUInt32();
179
180 MCNAPI ::Bedrock::Result<int64> $asInt64();
181
182 MCNAPI ::Bedrock::Result<uint64> $asUInt64();
183
184 MCNAPI ::Bedrock::Result<float> $asFloat();
185
186 MCNAPI ::Bedrock::Result<double> $asDouble();
187
188 MCNAPI ::Bedrock::Result<::std::string> $asString(uint64 maxInputLength);
189
190 MCNAPI ::Bedrock::Result<void>
191 $asRawBytes(::std::function<::gsl::span<uchar>(uint64)> storage, uint64 maxInputLength);
192
193 MCNAPI ::std::optional<bool> $additionalDataAsBool();
194
195 MCNAPI ::std::optional<uint> $additionalDataAsUInt32();
196
197 MCNAPI ::std::optional<::std::string> $additionalDataAsString(uint64);
198
199 MCNAPI uint64 $members();
200
201 MCNAPI uint64 $length(uint64 expectedSize);
202
203 MCNAPI bool $pushMember(::std::string_view const name);
204
205 MCNAPI ::std::string_view $pushNextMember();
206
207 MCNAPI void $pushElement(uint64 index);
208
209 MCNAPI void $pop();
210
211
212 // NOLINTEND
213
214public:
215 // vftables
216 // NOLINTBEGIN
217 MCNAPI static void** $vftable();
218 // NOLINTEND
219};
220
221} // 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 ::std::optional< bool > $additionalDataAsBool()
MCAPI ::Bedrock::Result< int64 > $asInt64()
MCAPI::std::string_view $pushNextMember()
MCAPI ::std::optional< uint > $additionalDataAsUInt32()
MCAPI void $pushElement(uint64 index)
MCAPI uint64 $length(uint64 expectedSize)
MCAPI ::Bedrock::Result< schar > $asInt8()
MCAPI ::std::optional<::std::string > $additionalDataAsString(uint64)
MCAPI ::Bedrock::Result< int > $asInt32()
MCAPI::cereal::SchemaRWType $expectedType() const
static MCAPI void ** $vftable()
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