fw4spl
fwMedData/ModelSeries/V1ToV2.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 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 "fwStructuralPatch/config.hpp"
10 
11 #include <fwAtomsPatch/IStructuralPatch.hpp>
12 
13 namespace fwStructuralPatch
14 {
15 namespace fwMedData
16 {
17 namespace ModelSeries
18 {
19 
21 class FWSTRUCTURALPATCH_CLASS_API V1ToV2 : public ::fwAtomsPatch::IStructuralPatch
22 {
23 public:
26 
28  FWSTRUCTURALPATCH_API V1ToV2();
29 
31  FWSTRUCTURALPATCH_API ~V1ToV2();
32 
34  FWSTRUCTURALPATCH_API V1ToV2( const V1ToV2& cpy );
35 
41  FWSTRUCTURALPATCH_API virtual void apply(
42  const ::fwAtoms::Object::sptr& previous,
43  const ::fwAtoms::Object::sptr& current,
44  ::fwAtomsPatch::IPatch::NewVersionsType& newVersions) override;
45 
46 };
47 
48 } // namespace ModelSeries
49 } // namespace fwMedData
50 } // namespace fwStructuralPatch
Namespace containing medical data.
Contains creators and structural patches.
Definition: Landmarks1.hpp:13
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Structural patch to convert a fwMedData::ModelSeries from version &#39;1&#39; to version &#39;2&#39;.
Base class of all structural patches.