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) = 0;
78
79 virtual ::Bedrock::Result<void> asRawBytes(::std::function<::gsl::span<uchar>(uint64)>, uint64) = 0;
80
81 virtual ::std::optional<bool> readValidityFlag() = 0;
82
83 virtual ::std::optional<uint> readControlValue() = 0;
84
85 virtual uint64 members() = 0;
86
87 virtual uint64 length(uint64) = 0;
88
89 virtual bool pushMember(::std::string_view const) = 0;
90
91 virtual ::std::string_view pushNextMember() = 0;
92
93 virtual void pushElement(uint64) = 0;
94
95 virtual void pop() = 0;
96
97 virtual ~SchemaReader() /*override*/ = default;
98 // NOLINTEND
99
100public:
101 // virtual function thunks
102 // NOLINTBEGIN
103
104 // NOLINTEND
105};
106
107} // namespace cereal
Definition SchemaReader.h:20
Definition SchemaReader.h:12
Definition SerializationTraitsSupport.h:7
Definition Alias.h:14