LeviLamina
Loading...
Searching...
No Matches
JSONSchemaDumper.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/core/file/Path.h"
8
9// auto generated forward declare list
10// clang-format off
12namespace Core { class PathView; }
13namespace cereal { struct ReflectionCtx; }
14// clang-format on
15
16namespace SharedTypes {
17
19public:
20 // JSONSchemaDumper inner types define
21 using DumpCallback = ::std::function<void(::Core::PathView const&, ::std::string_view)>;
22
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 8, ::gsl::not_null<::cereal::ReflectionCtx const*>> mCerealContext;
27 ::ll::TypedStorage<8, 32, ::Core::Path> mBaseFolder;
28 ::ll::TypedStorage<4, 16, ::cereal::DescriptionConfig> mDescriptionConfig;
29 ::ll::TypedStorage<8, 32, ::std::string> mMinecraftVersion;
30 // NOLINTEND
31
32public:
33 // member functions
34 // NOLINTBEGIN
35#ifdef LL_PLAT_S
36 MCAPI void dump(::std::function<void(::Core::PathView const&, ::std::string_view)> func);
37
38 MCAPI ::SharedTypes::JSONSchemaDumper& minecraftVersion(::std::string version);
39#endif
40 // NOLINTEND
41
42public:
43 // static functions
44 // NOLINTBEGIN
45#ifdef LL_PLAT_S
46 MCAPI static ::Core::Path
47 buildSchemaOutputPath(::Core::PathView const baseFolder, ::JSONSchemaProperty const& property);
48#endif
49 // NOLINTEND
50};
51
52} // namespace SharedTypes
Definition PathView.h:19
Definition JSONSchemaDumper.h:18
Definition JSONSchemaProperty.h:14
Definition ReflectionCtx.h:11