LeviLamina
Loading...
Searching...
No Matches
internal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/cereal/ContextArea.h"
7#include "mc/deps/cereal/schema/BasicSchema.h"
8#include "mc/deps/cereal/schema/ReflectedType.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace cereal { class DynamicValue; }
13namespace cereal { struct DescriptionConfig; }
14namespace cereal { struct SchemaDescription; }
15namespace cereal::internal { class BasicSchema; }
16namespace cereal::internal { struct ReflectionContext; }
17namespace cereal::util::internal { struct StringViewHash; }
18// clang-format on
19
20namespace cereal::internal {
21// functions
22// NOLINTBEGIN
23MCAPI void checkAndOverride(::entt::meta_type const& metaType, uint metaDataId);
24
25MCFOLD void checkComponentOverride(::entt::meta_type const& metaType, uint metaDataId);
26
27MCAPI void deprecateName(::entt::meta_type const& type, ::std::string_view name);
28
29MCAPI ::cereal::internal::BasicSchema::TypeDescriptor const*
30descriptorOrFail(::entt::meta_any const& any, ::entt::type_info const& expected);
31
32MCAPI ::cereal::DynamicValue dynamicValueFromProp(::entt::meta_any const& any);
33
34MCAPI void fillEnumDescription(
35 ::cereal::internal::ReflectionContext const& ctx,
36 ::cereal::SchemaDescription& ret,
37 ::entt::meta_type const& type,
38 ::cereal::DescriptionConfig config
39);
40
41MCAPI ::std::string formatMessage(::std::string_view fmt, ::std::string_view a);
42
43MCAPI ::std::string formatMessage(::std::string_view fmt, ::std::string_view a, ::std::string_view b);
44
45MCAPI ::std::string
46formatMessage(::std::string_view fmt, ::std::string_view a, ::std::string_view b, ::std::string_view c);
47
48MCAPI ::cereal::internal::ReflectedType getReflectedType(::entt::meta_type const& type);
49
50MCAPI ::entt::dense_map<
51 ::std::string,
52 ::std::pair<::entt::meta_type (*)(::entt::meta_ctx const&), ::entt::basic_any<16, 8>>,
53 ::cereal::util::internal::StringViewHash,
54 ::std::equal_to<void>>*
55getUserProperties(::entt::meta_data const& data);
56
57MCAPI ::entt::dense_map<
58 ::std::string,
59 ::std::pair<::entt::meta_type (*)(::entt::meta_ctx const&), ::entt::basic_any<16, 8>>,
60 ::cereal::util::internal::StringViewHash,
61 ::std::equal_to<void>>*
62getUserProperties(::entt::meta_type const& type);
63
64MCAPI ::cereal::internal::BasicSchema const* lookup(::entt::meta_ctx const& ctx, ::entt::type_info info);
65
66MCAPI ::std::string makeEnumErrorMsg(::entt::meta_type const& type, ::cereal::ContextArea area);
67
68MCAPI ::std::map<::std::string, ::cereal::DynamicValue> pickUserProperties(
69 ::cereal::internal::ReflectionContext const& ctx,
70 ::entt::dense_map<
71 ::std::string,
72 ::std::pair<::entt::meta_type (*)(::entt::meta_ctx const&), ::entt::basic_any<16, 8>>,
73 ::cereal::util::internal::StringViewHash,
74 ::std::equal_to<void>> const& userProps
75);
76
77MCAPI ::std::string toString(double d);
78// NOLINTEND
79
80} // namespace cereal::internal
Definition DynamicValue.h:10
Definition BasicSchema.h:29
Definition DescriptionConfig.h:12
Definition SchemaDescription.h:21
Definition ReflectionContext.h:15
Definition StringViewHash.h:7