LeviLamina
Loading...
Searching...
No Matches
JSONSchema.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/cereal/ext/json_schema/JSONSchemaDef.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace cereal { struct ReflectionCtx; }
11namespace cereal { struct SchemaDescription; }
12namespace cereal::ext::internal { struct OutRefsMap; }
13// clang-format on
14
15namespace cereal::ext {
16
17struct JSONSchema : public ::cereal::ext::internal::JSONSchemaDef {
18public:
19 // JSONSchema inner types define
20 using JSONSchemaDef = ::cereal::ext::internal::JSONSchemaDef;
21
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 32, ::std::string> mSchemaUrl;
26 ::ll::TypedStorage<8, 32, ::std::string> mIdentifier;
27 ::ll::TypedStorage<8, 32, ::std::string> mFormatVersion;
28 ::ll::TypedStorage<8, 32, ::std::string> mMinecraftVersion;
29 ::ll::TypedStorage<4, 8, ::std::optional<int>> mProtocolVersion;
30 ::ll::TypedStorage<
31 8,
32 72,
33 ::std::optional<::std::unordered_map<::std::string, ::cereal::ext::internal::JSONSchemaDef>>>
34 mDefs;
35 // NOLINTEND
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCAPI JSONSchema();
41
42 MCAPI JSONSchema(::cereal::ext::JSONSchema const&);
43
44 MCAPI void makeAndNormalizeDefs(
46 ::std::vector<::cereal::SchemaDescription> const& descriptions
47 );
48
49 MCAPI ::cereal::ext::JSONSchema& operator=(::cereal::ext::JSONSchema&&);
50
51 MCAPI ::cereal::ext::JSONSchema& operator=(::cereal::ext::JSONSchema const&);
52
53 MCAPI ~JSONSchema();
54 // NOLINTEND
55
56public:
57 // static functions
58 // NOLINTBEGIN
59 MCAPI static void bindType(::cereal::ReflectionCtx& ctx);
60
61 MCAPI static ::cereal::ext::JSONSchema
62 fromDescriptions(::std::vector<::cereal::SchemaDescription> const& descriptions, uint64 pos);
63
64#ifdef LL_PLAT_C
65 MCAPI static ::cereal::ext::JSONSchema
66 fromDescriptions(::std::vector<::cereal::SchemaDescription> const& descriptions, ::entt::type_info const& type);
67#endif
68 // NOLINTEND
69
70public:
71 // constructor thunks
72 // NOLINTBEGIN
73 MCAPI void* $ctor();
74
75 MCAPI void* $ctor(::cereal::ext::JSONSchema const&);
76 // NOLINTEND
77
78public:
79 // destructor thunk
80 // NOLINTBEGIN
81 MCAPI void $dtor();
82 // NOLINTEND
83};
84
85} // namespace cereal::ext
Definition ReflectionCtx.h:11
Definition SchemaDescription.h:21
Definition JSONSchema.h:17
Definition JSONSchemaDef.h:19
Definition OutRefsMap.h:7
Definition ctx.h:5