LeviLamina
Loading...
Searching...
No Matches
cereal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Json { class Value; }
8namespace cereal { class DynamicValue; }
9namespace cereal { struct ReflectionCtx; }
10namespace cereal { struct SchemaDescription; }
11namespace cereal { struct SchemaDescriptionConfig; }
12// clang-format on
13
14namespace cereal {
15// functions
16// NOLINTBEGIN
17MCNAPI ::std::string const* documentation(::entt::meta_data const& data);
18
19MCNAPI ::std::string const* documentation(::entt::meta_type const& type);
20
21MCNAPI ::std::string const* documentation(::entt::meta_type const& type, uint member);
22
23MCNAPI ::std::string_view getName(::entt::meta_data const& data);
24
25MCNAPI ::std::string_view getName(::entt::meta_type const& type);
26
27MCNAPI ::std::string_view getName(::entt::meta_type const& type, uint member);
28
29MCNAPI_S ::cereal::SchemaDescription getSchemaDescription(
30 ::cereal::ReflectionCtx const& ctx,
31 ::entt::type_info info,
32 ::cereal::SchemaDescriptionConfig config
33);
34
35MCNAPI_C ::std::vector<::cereal::SchemaDescription> getSchemaDescriptionRecursive(
36 ::cereal::ReflectionCtx const& ctx,
37 ::entt::type_info info,
38 ::cereal::SchemaDescriptionConfig config
39);
40
41MCNAPI_S ::std::vector<::cereal::SchemaDescription>
42getSchemaDescriptions(::cereal::ReflectionCtx const& ctx, ::cereal::SchemaDescriptionConfig config);
43
44MCNAPI bool isOptional(::entt::meta_type const& type);
45
46MCNAPI bool isVariant(::entt::meta_type const& type);
47
48MCNAPI_C ::std::optional<::std::string> toJsonString(::std::optional<::cereal::DynamicValue> value);
49
50MCNAPI_C ::std::string toJsonString(::cereal::DynamicValue const& value);
51
52MCNAPI ::Json::Value toJsonValue(::cereal::DynamicValue const& value);
53
54MCNAPI ::entt::meta_any tryFillVariant(::entt::meta_any& var, ::entt::meta_any value);
55
56MCNAPI ::std::vector<::entt::meta_func> typeLevelSetters(::entt::meta_type const& type);
57// NOLINTEND
58
59} // namespace cereal
Definition Value.h:16
Definition DynamicValue.h:12
Definition ReflectionCtx.h:11
Definition SchemaDescriptionConfig.h:7
Definition SchemaDescription.h:20