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/schema/DescriptionConfig.h"
7#include "mc/deps/cereal/schema/ReflectedType.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace cereal { class DynamicValue; }
12namespace cereal { struct SchemaDescription; }
13namespace cereal { struct SchemaReader; }
14namespace cereal { struct SchemaWriter; }
15namespace cereal::internal { struct LoadState; }
16namespace cereal::internal { struct SaveState; }
17namespace cereal::util::internal { struct StringViewHash; }
18// clang-format on
19
20namespace cereal::internal {
21// functions
22// NOLINTBEGIN
23MCNAPI void checkAndOverride(::entt::meta_type const& metaType, uint metaDataId);
24
25MCNAPI void deprecateName(::entt::meta_type const& type, ::std::string_view name);
26
27MCNAPI ::cereal::DynamicValue dynamicValueFromProp(::entt::meta_any const& any);
28
29MCNAPI void fillEnumDescription(
30 ::entt::meta_ctx const& ctx,
31 ::cereal::SchemaDescription& ret,
32 ::entt::meta_type const& type,
33 ::cereal::internal::DescriptionConfig::Mode mode
34);
35
36MCNAPI ::cereal::internal::ReflectedType getReflectedType(::entt::meta_type const& type);
37
38MCNAPI void iterateMembers(::entt::meta_type const& type, ::std::function<void(uint, ::entt::meta_data)> cb);
39
40MCNAPI void loadOrFail(
41 ::cereal::SchemaReader& reader,
42 ::entt::meta_any& any,
43 ::entt::meta_any const& udata,
44 ::cereal::internal::LoadState const& state
45);
46
47MCNAPI ::std::string makeEnumErrorMsg(::entt::meta_type const& type);
48
49MCNAPI ::std::map<::std::string, ::cereal::DynamicValue> pickUserProperties(
50 ::entt::meta_ctx const& ctx,
51 ::entt::dense_map<
52 ::std::string,
53 ::std::pair<::entt::meta_type (*)(::entt::meta_ctx const&), ::entt::basic_any<16, 8>>,
54 ::cereal::util::internal::StringViewHash,
55 ::std::equal_to<void>> const& userProps
56);
57
58MCNAPI void
59saveOrFail(::cereal::SchemaWriter& writer, ::entt::meta_any const& any, ::cereal::internal::SaveState const& state);
60
61MCNAPI ::std::string toString(double d);
62// NOLINTEND
63
64} // namespace cereal::internal
Definition DynamicValue.h:12
Definition SchemaDescription.h:20
Definition SchemaReader.h:12
Definition SchemaWriter.h:16
Definition LoadState.h:7
Definition SaveState.h:7
Definition StringViewHash.h:7