LeviLamina
Loading...
Searching...
No Matches
StrictRapidJSONSchemaReader.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 StrictRapidJSONSchemaReader : public ::cereal::SchemaReader {
13public:
14 // StrictRapidJSONSchemaReader inner types declare
15 // clang-format off
16 struct State;
17 // clang-format on
18
19 // StrictRapidJSONSchemaReader 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
35public:
36 // member variables
37 // NOLINTBEGIN
40 // NOLINTEND
41
42public:
43 // prevent constructor by default
44 StrictRapidJSONSchemaReader& operator=(StrictRapidJSONSchemaReader const&);
45 StrictRapidJSONSchemaReader(StrictRapidJSONSchemaReader const&);
46 StrictRapidJSONSchemaReader();
47
48public:
49 // virtual functions
50 // NOLINTBEGIN
51 virtual bool isValid() const /*override*/;
52
53 virtual ::cereal::SchemaRWType expectedType() const /*override*/;
54
55 virtual ::Bedrock::Result<void> asNull() /*override*/;
56
57 virtual ::Bedrock::Result<bool> asBool() /*override*/;
58
59 virtual ::Bedrock::Result<schar> asInt8() /*override*/;
60
61 virtual ::Bedrock::Result<uchar> asUInt8() /*override*/;
62
63 virtual ::Bedrock::Result<short> asInt16() /*override*/;
64
65 virtual ::Bedrock::Result<ushort> asUInt16() /*override*/;
66
67 virtual ::Bedrock::Result<int> asInt32() /*override*/;
68
69 virtual ::Bedrock::Result<uint> asUInt32() /*override*/;
70
71 virtual ::Bedrock::Result<int64> asInt64() /*override*/;
72
73 virtual ::Bedrock::Result<uint64> asUInt64() /*override*/;
74
75 virtual ::Bedrock::Result<float> asFloat() /*override*/;
76
77 virtual ::Bedrock::Result<double> asDouble() /*override*/;
78
79 virtual ::Bedrock::Result<::std::string> asString(uint64 maxInputLength) /*override*/;
80
81 virtual ::Bedrock::Result<void>
82 asRawBytes(::std::function<::gsl::span<uchar>(uint64)> storage, uint64 maxInputLength) /*override*/;
83
84 virtual ::std::optional<bool> readValidityFlag() /*override*/;
85
86 virtual ::std::optional<uint> readControlValue() /*override*/;
87
88 virtual uint64 members() /*override*/;
89
90 virtual uint64 length(uint64 expectedSize) /*override*/;
91
92 virtual bool pushMember(::std::string_view const name) /*override*/;
93
94 virtual ::std::string_view pushNextMember() /*override*/;
95
96 virtual void pushElement(uint64 index) /*override*/;
97
98 virtual void pop() /*override*/;
99
100 virtual ~StrictRapidJSONSchemaReader() /*override*/;
101 // NOLINTEND
102
103public:
104 // member functions
105 // NOLINTBEGIN
106 MCNAPI explicit StrictRapidJSONSchemaReader(::std::string const& data);
107
108 MCNAPI explicit StrictRapidJSONSchemaReader(
109 ::rapidjson::GenericValue<
110 ::rapidjson::UTF8<char>,
111 ::rapidjson::MemoryPoolAllocator<::rapidjson::CrtAllocator>> const& value
112 );
113 // NOLINTEND
114
115public:
116 // constructor thunks
117 // NOLINTBEGIN
118 MCNAPI void* $ctor(::std::string const& data);
119
120 MCNAPI void* $ctor(
121 ::rapidjson::GenericValue<
122 ::rapidjson::UTF8<char>,
123 ::rapidjson::MemoryPoolAllocator<::rapidjson::CrtAllocator>> const& value
124 );
125 // NOLINTEND
126
127public:
128 // destructor thunk
129 // NOLINTBEGIN
130 MCNAPI void $dtor();
131 // NOLINTEND
132
133public:
134 // virtual function thunks
135 // NOLINTBEGIN
136 MCNAPI bool $isValid() const;
137
138 MCNAPI ::cereal::SchemaRWType $expectedType() const;
139
140 MCNAPI ::Bedrock::Result<void> $asNull();
141
142 MCNAPI ::Bedrock::Result<bool> $asBool();
143
144 MCNAPI ::Bedrock::Result<schar> $asInt8();
145
146 MCNAPI ::Bedrock::Result<uchar> $asUInt8();
147
148 MCNAPI ::Bedrock::Result<short> $asInt16();
149
150 MCNAPI ::Bedrock::Result<ushort> $asUInt16();
151
152 MCNAPI ::Bedrock::Result<int> $asInt32();
153
154 MCNAPI ::Bedrock::Result<uint> $asUInt32();
155
156 MCNAPI ::Bedrock::Result<int64> $asInt64();
157
158 MCNAPI ::Bedrock::Result<uint64> $asUInt64();
159
160 MCNAPI ::Bedrock::Result<float> $asFloat();
161
162 MCNAPI ::Bedrock::Result<double> $asDouble();
163
164 MCNAPI ::Bedrock::Result<::std::string> $asString(uint64 maxInputLength);
165
166 MCNAPI ::Bedrock::Result<void>
167 $asRawBytes(::std::function<::gsl::span<uchar>(uint64)> storage, uint64 maxInputLength);
168
169 MCNAPI ::std::optional<bool> $readValidityFlag();
170
171 MCNAPI ::std::optional<uint> $readControlValue();
172
173 MCNAPI uint64 $members();
174
175 MCNAPI uint64 $length(uint64 expectedSize);
176
177 MCNAPI bool $pushMember(::std::string_view const name);
178
179 MCNAPI ::std::string_view $pushNextMember();
180
181 MCNAPI void $pushElement(uint64 index);
182
183 MCNAPI void $pop();
184
185
186 // NOLINTEND
187
188public:
189 // vftables
190 // NOLINTBEGIN
191 MCNAPI static void** $vftable();
192 // NOLINTEND
193};
194
195} // namespace cereal
MCAPI ::Bedrock::Result< short > $asInt16()
MCAPI ::Bedrock::Result< void > $asRawBytes(::std::function<::gsl::span< uchar >(uint64)> storage, uint64 maxInputLength)
MCAPI ::Bedrock::Result< schar > $asInt8()
MCAPI ::Bedrock::Result< uchar > $asUInt8()
MCAPI ::Bedrock::Result< ushort > $asUInt16()
MCAPI ::std::optional< uint > $readControlValue()
MCAPI ::Bedrock::Result< double > $asDouble()
MCAPI void $pushElement(uint64 index)
MCAPI ::Bedrock::Result<::std::string > $asString(uint64 maxInputLength)
MCAPI::std::string_view $pushNextMember()
MCAPI ::Bedrock::Result< int64 > $asInt64()
MCAPI ::Bedrock::Result< int > $asInt32()
MCAPI ::std::optional< bool > $readValidityFlag()
MCAPI uint64 $length(uint64 expectedSize)
MCAPI bool $pushMember(::std::string_view const name)
MCAPI ::Bedrock::Result< uint > $asUInt32()
MCAPI void * $ctor(::std::string const &data)
MCAPI ::Bedrock::Result< float > $asFloat()
MCAPI ::Bedrock::Result< uint64 > $asUInt64()
MCAPI::cereal::SchemaRWType $expectedType() const
static MCAPI void ** $vftable()
MCAPI ::Bedrock::Result< void > $asNull()
MCAPI ::Bedrock::Result< bool > $asBool()
STL namespace.
Definition SchemaReader.h:12
Definition StrictRapidJSONSchemaReader.h:20
Definition Alias.h:14