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
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual bool isValid() const = 0;
32
33 virtual ::cereal::SchemaRWType expectedType() const = 0;
34
35 virtual ::Bedrock::Result<void> asNull() = 0;
36
37 virtual ::Bedrock::Result<bool> asBool() = 0;
38
39 virtual ::Bedrock::Result<schar> asInt8() = 0;
40
41 virtual ::Bedrock::Result<uchar> asUInt8() = 0;
42
43 virtual ::Bedrock::Result<short> asInt16() = 0;
44
45 virtual ::Bedrock::Result<ushort> asUInt16() = 0;
46
47 virtual ::Bedrock::Result<int> asInt32() = 0;
48
49 virtual ::Bedrock::Result<uint> asUInt32() = 0;
50
51 virtual ::Bedrock::Result<int64> asInt64() = 0;
52
53 virtual ::Bedrock::Result<uint64> asUInt64() = 0;
54
55 virtual ::Bedrock::Result<float> asFloat() = 0;
56
57 virtual ::Bedrock::Result<double> asDouble() = 0;
58
59 virtual ::Bedrock::Result<::std::string> asString(uint64 maxInputLength) = 0;
60
61 virtual ::Bedrock::Result<void>
62 asRawBytes(::std::function<::gsl::span<uchar>(uint64)> storage, uint64 maxInputLength) = 0;
63
64 virtual ::std::optional<bool> additionalDataAsBool() = 0;
65
66 virtual ::std::optional<uint> additionalDataAsUInt32() = 0;
67
68 virtual ::std::optional<::std::string> additionalDataAsString(uint64 maxInputLength) = 0;
69
70 virtual uint64 members() = 0;
71
72 virtual uint64 length(uint64 expectedSize) = 0;
73
74 virtual bool pushMember(::std::string_view const name) = 0;
75
76 virtual ::std::string_view pushNextMember() = 0;
77
78 virtual void pushElement(uint64 index) = 0;
79
80 virtual void pop() = 0;
81 // NOLINTEND
82};
83
84} // namespace cereal
Definition SchemaReader.h:20
Definition SchemaReader.h:12
Definition SerializationTraitsSupport.h:10