fw4spl
PatchingManager.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
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 #ifndef __FWATOMSPATCH_PATCHINGMANAGER_HPP__
8 #define __FWATOMSPATCH_PATCHINGMANAGER_HPP__
9 
10 #include <fwCore/macros.hpp>
11 
12 #include "fwAtomsPatch/VersionsGraph.hpp"
13 
14 #include "fwAtomsPatch/config.hpp"
15 
16 namespace fwAtoms
17 {
18 class Object;
19 }
20 
21 namespace fwAtomsPatch
22 {
23 
31 class FWATOMSPATCH_CLASS_API PatchingManager
32 {
33 public:
34 
36  FWATOMSPATCH_API PatchingManager(SPTR(::fwAtoms::Object)object);
37 
39  FWATOMSPATCH_API ~PatchingManager();
40 
48  FWATOMSPATCH_API ::fwAtoms::Object::sptr transformTo(const std::string& newVersion);
49 
50 protected:
51 
53  SPTR(::fwAtoms::Object) m_object;
54 };
55 
56 }
57 
58 #endif //__FWATOMSPATCH_PATCHINGMANAGER_HPP__
#define SPTR(_cls_)
fwAtoms contains basic objects to represent any other kind of object
This file defines fwCore base macros.
Contains base functionalities used to transform objects from a version to another.
Definition: Abstract.hpp:16
Class represented a fwData::Object.
Manages object patching.