fw4spl
fwMDSemanticPatch/include/fwMDSemanticPatch/PatchLoader.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2018.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #pragma once
8 
9 #include "fwMDSemanticPatch/config.hpp"
10 
11 #include <string>
12 
13 namespace fwMDSemanticPatch
14 {
15 
18 {
19 public:
21  FWMDSEMANTICPATCH_API static void loadPatches();
22 
24  FWMDSEMANTICPATCH_API static std::string getCurrentVersion();
25 
27  FWMDSEMANTICPATCH_API static void setCurrentVersion(const std::string& version);
28 
29 private:
30 
32  static std::string s_currentVersion;
33 };
34 
35 } //namespace fwMDSemanticPatch
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.
Loads patches by processing .versions and .graphlink files.
static FWMDSEMANTICPATCH_API void loadPatches()
Computes VersionsManager&#39;s link and version tables.