fw4spl
Acquisition.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_ACQUISITION_HPP__
8 #define __FWMDSEMANTICPATCH_V1_V2_FWDATA_ACQUISITION_HPP__
9 
10 #include "fwMDSemanticPatch/config.hpp"
11 
12 #include <fwAtomsPatch/ISemanticPatch.hpp>
13 
14 namespace fwMDSemanticPatch
15 {
16 
17 namespace V1
18 {
19 namespace V2
20 {
21 namespace fwData
22 {
23 
25 class FWMDSEMANTICPATCH_CLASS_API Acquisition : public ::fwAtomsPatch::ISemanticPatch
26 {
27 public:
29 
31  FWMDSEMANTICPATCH_API Acquisition();
32 
34  FWMDSEMANTICPATCH_API ~Acquisition();
35 
37  FWMDSEMANTICPATCH_API Acquisition( const Acquisition& cpy );
38 
45  FWMDSEMANTICPATCH_API virtual void apply(
46  const ::fwAtoms::Object::sptr& previous,
47  const ::fwAtoms::Object::sptr& current,
48  ::fwAtomsPatch::IPatch::NewVersionsType& newVersions) override;
49 
50 };
51 
52 } // namespace fwData
53 } // namespace V2
54 } // namespace V1
55 } // namespace fwMDSemanticPatch
56 
57 #endif // __FWMDSEMANTICPATCH_V1_V2_FWDATA_ACQUISITION_HPP__
58 
Contains the semantic patches within the context "MedicalData".
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Patch an acquisition from version &#39;V1&#39; to &#39;V2&#39; within &#39;MedicalData&#39; context.
Definition: Acquisition.hpp:25
Base class of contextual patches.
Contains the representation of the data objects used in the framework.