|
enum class | ParseAndUpgradeResult : int { Failure = 0
, SuccessWithChanges = 1
, SuccessWithoutChanges = 2
} |
|
|
CerealDocumentUpgrader & | operator= (CerealDocumentUpgrader const &) |
|
| CerealDocumentUpgrader (CerealDocumentUpgrader const &) |
|
MCAPI void | clear () |
|
MCAPI::CerealDocumentUpgrader::ParseAndUpgradeResult | parseJsonAndUpgrade (::std::string const &json, ::SemVersion &outDocumentVersion, ::rapidjson::GenericDocument< ::rapidjson::UTF8< char >, ::rapidjson::MemoryPoolAllocator<::rapidjson::CrtAllocator >, ::rapidjson::CrtAllocator > &document, ::Core::Path const &resourceName, bool allowMissingVersionAsZero, ::std::optional<::SemVersion > const &minVersion, ::std::function< bool(::SemVersion const &)> const &shouldUpgrade) const |
|
MCAPI void | registerUpgrade (::std::shared_ptr<::CerealSchemaUpgrade > upgrade) |
|
MCAPI bool | upgradeJson (::std::string &json, ::SemVersion &outDocumentVersion, ::rapidjson::GenericDocument< ::rapidjson::UTF8< char >, ::rapidjson::MemoryPoolAllocator<::rapidjson::CrtAllocator >, ::rapidjson::CrtAllocator > &document, ::Core::Path const &resourceName, ::std::optional<::SemVersion > const &minVersion, ::std::function< bool(::SemVersion const &)> const &shouldUpgrade) const |
|
|
static MCAPI ::std::string | getVersion (::rapidjson::GenericDocument< ::rapidjson::UTF8< char >, ::rapidjson::MemoryPoolAllocator<::rapidjson::CrtAllocator >, ::rapidjson::CrtAllocator > const &document) |
|
◆ clear()
MCAPI void CerealDocumentUpgrader::clear |
( |
| ) |
|
- Attention
- This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.
◆ parseJsonAndUpgrade()
MCAPI::CerealDocumentUpgrader::ParseAndUpgradeResult CerealDocumentUpgrader::parseJsonAndUpgrade |
( |
::std::string const & | json, |
|
|
::SemVersion & | outDocumentVersion, |
|
|
::rapidjson::GenericDocument< ::rapidjson::UTF8< char >, ::rapidjson::MemoryPoolAllocator<::rapidjson::CrtAllocator >, ::rapidjson::CrtAllocator > & | document, |
|
|
::Core::Path const & | resourceName, |
|
|
bool | allowMissingVersionAsZero, |
|
|
::std::optional<::SemVersion > const & | minVersion, |
|
|
::std::function< bool(::SemVersion const &)> const & | shouldUpgrade ) const |
- Attention
- This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.
◆ registerUpgrade()
- Attention
- This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.
◆ upgradeJson()
MCAPI bool CerealDocumentUpgrader::upgradeJson |
( |
::std::string & | json, |
|
|
::SemVersion & | outDocumentVersion, |
|
|
::rapidjson::GenericDocument< ::rapidjson::UTF8< char >, ::rapidjson::MemoryPoolAllocator<::rapidjson::CrtAllocator >, ::rapidjson::CrtAllocator > & | document, |
|
|
::Core::Path const & | resourceName, |
|
|
::std::optional<::SemVersion > const & | minVersion, |
|
|
::std::function< bool(::SemVersion const &)> const & | shouldUpgrade ) const |
- Attention
- This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.
◆ getVersion()
static MCAPI ::std::string CerealDocumentUpgrader::getVersion |
( |
::rapidjson::GenericDocument< ::rapidjson::UTF8< char >, ::rapidjson::MemoryPoolAllocator<::rapidjson::CrtAllocator >, ::rapidjson::CrtAllocator > const & | document | ) |
|
|
static |
- Attention
- This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.
The documentation for this class was generated from the following file: