fw4spl
SrcLib/patch/fwMDSemanticPatch/include/fwMDSemanticPatch/V1/V2/fwData/Composite.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
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 __FWMDSEMANTICPATCH_V1_V2_FWDATA_COMPOSITE_HPP__
8 #define __FWMDSEMANTICPATCH_V1_V2_FWDATA_COMPOSITE_HPP__
9 
10 #include "fwMDSemanticPatch/config.hpp"
11 
12 #include <fwAtomsPatch/ISemanticPatch.hpp>
13 
14 namespace fwMDSemanticPatch
15 {
16 namespace V1
17 {
18 namespace V2
19 {
20 namespace fwData
21 {
22 
24 class FWMDSEMANTICPATCH_CLASS_API Composite : public ::fwAtomsPatch::ISemanticPatch
25 {
26 public:
29 
31  FWMDSEMANTICPATCH_API Composite();
32 
34  FWMDSEMANTICPATCH_API ~Composite();
35 
37  FWMDSEMANTICPATCH_API Composite( const Composite& cpy );
38 
46  FWMDSEMANTICPATCH_API virtual void apply(
47  const ::fwAtoms::Object::sptr& previous,
48  const ::fwAtoms::Object::sptr& current,
49  ::fwAtomsPatch::IPatch::NewVersionsType& newVersions) override;
50 
51 };
52 
53 } // namespace fwData
54 } // namespace V2
55 } // namespace V1
56 } // namespace fwMDSemanticPatch
57 
58 #endif /* __FWMDSEMANTICPATCH_V1_V2_FWDATA_COMPOSITE_HPP__ */
59 
Patch the composite describing a &#39;Medical workspace&#39; from version &#39;V1&#39; to &#39;V2&#39; within &#39;MedicalData&#39; c...
Contains the semantic patches within the context "MedicalData".
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Base class of contextual patches.
Contains the representation of the data objects used in the framework.