7 #include "fwMDSemanticPatch/PatchLoader.hpp" 9 #include <fwAtomsPatch/VersionsManager.hpp> 11 #include <fwRuntime/operations.hpp> 16 std::string PatchLoader::s_currentVersion =
"V11";
23 auto path = ::fwRuntime::getLibraryResourceFilePath(
"fwMDSemanticPatch-" FWMDSEMANTICPATCH_VER
"/");
24 versionManager->buildVersionTable(path.string());
25 versionManager->buildLinkTable(path.string());
32 s_currentVersion = version;
39 return s_currentVersion;
static FWMDSEMANTICPATCH_API void setCurrentVersion(const std::string &version)
Set the current MedicalData version.
Contains the semantic patches within the context "MedicalData".
static FWMDSEMANTICPATCH_API std::string getCurrentVersion()
Returns current MedicalData version.
Maintains a table of object versions and a table of links between objects.
static std::shared_ptr< VersionsManager > getDefault()
Returns the default instance of VersionsManager.
static FWMDSEMANTICPATCH_API void loadPatches()
Computes VersionsManager's link and version tables.