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
24 ::ll::TypedStorage<8, 8, ::cereal::SchemaReader*> mAdaptor;
25 // NOLINTEND
26
27 public:
28 // member functions
29 // NOLINTBEGIN
30 MCAPI ~ScopedPop();
31 // NOLINTEND
32
33 public:
34 // destructor thunk
35 // NOLINTBEGIN
36 MCAPI void $dtor();
37 // NOLINTEND
38 };
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 virtual bool isValid() const = 0;
44
45 virtual ::cereal::SchemaRWType expectedType() const = 0;
46
47 virtual ::Bedrock::Result<void> asNull() = 0;
48
49 virtual ::Bedrock::Result<bool> asBool() = 0;
50
51 virtual ::Bedrock::Result<schar> asInt8() = 0;
52
53 virtual ::Bedrock::Result<uchar> asUInt8() = 0;
54
55 virtual ::Bedrock::Result<short> asInt16() = 0;
56
57 virtual ::Bedrock::Result<ushort> asUInt16() = 0;
58
59 virtual ::Bedrock::Result<int> asInt32() = 0;
60
61 virtual ::Bedrock::Result<uint> asUInt32() = 0;
62
63 virtual ::Bedrock::Result<int64> asInt64() = 0;
64
65 virtual ::Bedrock::Result<uint64> asUInt64() = 0;
66
67 virtual ::Bedrock::Result<float> asFloat() = 0;
68
69 virtual ::Bedrock::Result<double> asDouble() = 0;
70
71 virtual ::Bedrock::Result<::std::string> asString(uint64 maxInputLength) = 0;
72
73 virtual ::Bedrock::Result<void>
74 asRawBytes(::std::function<::gsl::span<uchar>(uint64)> storage, uint64 maxInputLength) = 0;
75
76 virtual ::std::optional<bool> additionalDataAsBool() = 0;
77
78 virtual ::std::optional<uint> additionalDataAsUInt32() = 0;
79
80 virtual ::std::optional<::std::string> additionalDataAsString(uint64 maxInputLength) = 0;
81
82 virtual uint64 members() = 0;
83
84 virtual uint64 length(uint64 expectedSize) = 0;
85
86 virtual bool pushMember(::std::string_view const name) = 0;
87
88 virtual ::std::string_view pushNextMember() = 0;
89
90 virtual void pushElement(uint64 index) = 0;
91
92 virtual void pop() = 0;
93 // NOLINTEND
94
95public:
96 // member functions
97 // NOLINTBEGIN
98 MCFOLD ::cereal::SchemaReader::ScopedPop scopedPop();
99 // NOLINTEND
100
101public:
102 // virtual function thunks
103 // NOLINTBEGIN
104
105 // NOLINTEND
106};
107
108} // namespace cereal
Definition SchemaReader.h:20
Definition SchemaReader.h:12
Definition SerializationTraitsSupport.h:10