fw4spl
patch/fwMDSemanticPatch/src/fwMDSemanticPatch/V1/V2/fwData/autoload.cpp
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 #include <fwAtomsPatch/SemanticPatchDB.hpp>
8 
9 #include "fwMDSemanticPatch/V1/V2/fwData/Composite.hpp"
10 #include "fwMDSemanticPatch/V1/V2/fwData/Study.hpp"
11 #include "fwMDSemanticPatch/V1/V2/fwData/Patient.hpp"
12 #include "fwMDSemanticPatch/V1/V2/fwData/Acquisition.hpp"
13 
14 namespace fwMDSemanticPatch
15 {
16 namespace V1
17 {
18 namespace V2
19 {
20 namespace fwData
21 {
22 
24 struct runner
25 {
26  runner()
27  {
28  ::fwAtomsPatch::SemanticPatchDB::sptr contextPatchDB = ::fwAtomsPatch::SemanticPatchDB::getDefault();
29  contextPatchDB->registerPatch(::fwMDSemanticPatch::V1::V2::fwData::Composite::New());
30  contextPatchDB->registerPatch(::fwMDSemanticPatch::V1::V2::fwData::Study::New());
31  contextPatchDB->registerPatch(::fwMDSemanticPatch::V1::V2::fwData::Patient::New());
32  contextPatchDB->registerPatch(::fwMDSemanticPatch::V1::V2::fwData::Acquisition::New());
33  }
34 
35  static runner r;
36 };
37 
38 runner runner::r;
39 
40 } // namespace fwData
41 } // namespace V2
42 } // namespace V1
43 } // namespace fwMDSemanticPatch
44 
Contains the semantic patches within the context "MedicalData".
Registers contextual patches dedicated to conversions from version &#39;V1&#39; to version &#39;V2&#39;...
Contains the representation of the data objects used in the framework.
static FWATOMSPATCH_API SemanticPatchDB::sptr getDefault()
Return default instance of SemanticPatchDB.