LeviLamina
Loading...
Searching...
No Matches
SchemaReader.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/SerializationTraitsSupport.h"
8#include "mc/platform/Result.h"
9
10namespace cereal {
11
13public:
14 // SchemaReader inner types declare
15 // clang-format off
16 struct ScopedPop;
17 // clang-format on
18
19 // SchemaReader inner types define
20 struct ScopedPop {
21 public:
22 // member variables
23 // NOLINTBEGIN
25 // NOLINTEND
26
27 public:
28 // prevent constructor by default
29 ScopedPop& operator=(ScopedPop const&);
30 ScopedPop(ScopedPop const&);
31 ScopedPop();
32
33 public:
34 // member functions
35 // NOLINTBEGIN
36 MCNAPI ~ScopedPop();
37 // NOLINTEND
38
39 public:
40 // destructor thunk
41 // NOLINTBEGIN
42 MCNAPI void $dtor();
43 // NOLINTEND
44 };
45
46public:
47 // virtual functions
48 // NOLINTBEGIN
49 virtual bool isValid() const = 0;
50
51 virtual ::cereal::SchemaRWType expectedType() const = 0;
52
53 virtual ::Bedrock::Result<void> asNull() = 0;
54
55 virtual ::Bedrock::Result<bool> asBool() = 0;
56
57 virtual ::Bedrock::Result<schar> asInt8() = 0;
58
59 virtual ::Bedrock::Result<uchar> asUInt8() = 0;
60
61 virtual ::Bedrock::Result<short> asInt16() = 0;
62
63 virtual ::Bedrock::Result<ushort> asUInt16() = 0;
64
65 virtual ::Bedrock::Result<int> asInt32() = 0;
66
67 virtual ::Bedrock::Result<uint> asUInt32() = 0;
68
69 virtual ::Bedrock::Result<int64> asInt64() = 0;
70
71 virtual ::Bedrock::Result<uint64> asUInt64() = 0;
72
73 virtual ::Bedrock::Result<float> asFloat() = 0;
74
75 virtual ::Bedrock::Result<double> asDouble() = 0;
76
77 virtual ::Bedrock::Result<::std::string> asString(uint64 maxInputLength) = 0;
78
79 virtual ::Bedrock::Result<void>
80 asRawBytes(::std::function<::gsl::span<uchar>(uint64)> storage, uint64 maxInputLength) = 0;
81
82 virtual ::std::optional<bool> additionalDataAsBool() = 0;
83
84 virtual ::std::optional<uint> additionalDataAsUInt32() = 0;
85
86 virtual ::std::optional<::std::string> additionalDataAsString(uint64 maxInputLength) = 0;
87
88 virtual uint64 members() = 0;
89
90 virtual uint64 length(uint64 expectedSize) = 0;
91
92 virtual bool pushMember(::std::string_view const name) = 0;
93
94 virtual ::std::string_view pushNextMember() = 0;
95
96 virtual void pushElement(uint64 index) = 0;
97
98 virtual void pop() = 0;
99
100 virtual ~SchemaReader() /*override*/ = default;
101 // NOLINTEND
102
103public:
104 // virtual function thunks
105 // NOLINTBEGIN
106
107 // NOLINTEND
108};
109
110} // namespace cereal
Definition SchemaReader.h:20
Definition SchemaReader.h:12
Definition SerializationTraitsSupport.h:7
Definition Alias.h:14