LeviLamina
Loading...
Searching...
No Matches
CerealSchemaUpgrade.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class SemVersion;
8// clang-format on
9
11public:
12 // member variables
13 // NOLINTBEGIN
18 // NOLINTEND
19
20public:
21 // prevent constructor by default
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 // vIndex: 0
30 virtual ~CerealSchemaUpgrade();
31
32 // vIndex: 1
33 virtual bool previousSchema(::rapidjson::GenericValue<
34 ::rapidjson::UTF8<char>,
35 ::rapidjson::MemoryPoolAllocator<::rapidjson::CrtAllocator>> const&) const = 0;
36
37 // vIndex: 2
38 virtual void
39 upgradeToNext(::rapidjson::GenericDocument<::rapidjson::UTF8<char>, ::rapidjson::MemoryPoolAllocator<::rapidjson::CrtAllocator>, ::rapidjson::CrtAllocator>&, ::SemVersion const&)
40 const;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
47 ::std::string_view fileType,
48 ::SemVersion targetVersion,
49 ::std::string const& schemaKey,
50 ::std::string const& jsonMemberName
51 );
52
53 MCAPI bool checkAndUpgradeToNext(
54 ::rapidjson::GenericDocument<
55 ::rapidjson::UTF8<char>,
56 ::rapidjson::MemoryPoolAllocator<::rapidjson::CrtAllocator>,
57 ::rapidjson::CrtAllocator>& document,
58 ::SemVersion const& documentOriginalVersion
59 ) const;
60 // NOLINTEND
61
62public:
63 // constructor thunks
64 // NOLINTBEGIN
65 MCAPI void* $ctor(
66 ::std::string_view fileType,
67 ::SemVersion targetVersion,
68 ::std::string const& schemaKey,
69 ::std::string const& jsonMemberName
70 );
71 // NOLINTEND
72
73public:
74 // destructor thunk
75 // NOLINTBEGIN
76 MCAPI void $dtor();
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCFOLD void
83 $upgradeToNext(::rapidjson::GenericDocument<::rapidjson::UTF8<char>, ::rapidjson::MemoryPoolAllocator<::rapidjson::CrtAllocator>, ::rapidjson::CrtAllocator>&, ::SemVersion const&)
84 const;
85 // NOLINTEND
86
87public:
88 // vftables
89 // NOLINTBEGIN
90 MCAPI static void** $vftable();
91 // NOLINTEND
92};
Definition CerealSchemaUpgrade.h:10
Definition SemVersion.h:15
Definition Alias.h:14