fw4spl
patch/fwStructuralPatch/src/fwStructuralPatch/creator/autoload.cpp
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 #include "fwStructuralPatch/creator/fwData/Landmarks1.hpp"
8 #include "fwStructuralPatch/creator/fwData/PointList1.hpp"
9 #include "fwStructuralPatch/creator/fwMedData/ActivitySeries1.hpp"
10 #include "fwStructuralPatch/creator/fwMedData/Equipment1.hpp"
11 #include "fwStructuralPatch/creator/fwMedData/ImageSeries1.hpp"
12 #include "fwStructuralPatch/creator/fwMedData/ModelSeries1.hpp"
13 #include "fwStructuralPatch/creator/fwMedData/Patient1.hpp"
14 #include "fwStructuralPatch/creator/fwMedData/Study1.hpp"
15 
16 #include <fwAtomsPatch/StructuralCreatorDB.hpp>
17 
18 namespace fwStructuralPatch
19 {
20 namespace creator
21 {
22 
24 struct runner
25 {
26  runner()
27  {
28  ::fwAtomsPatch::StructuralCreatorDB::sptr creators = ::fwAtomsPatch::StructuralCreatorDB::getDefault();
29  creators->registerCreator(::fwStructuralPatch::creator::fwMedData::Equipment1::New());
30  creators->registerCreator(::fwStructuralPatch::creator::fwMedData::Patient1::New());
31  creators->registerCreator(::fwStructuralPatch::creator::fwMedData::Study1::New());
32  creators->registerCreator(::fwStructuralPatch::creator::fwMedData::ModelSeries1::New());
33  creators->registerCreator(::fwStructuralPatch::creator::fwMedData::ImageSeries1::New());
34  creators->registerCreator(::fwStructuralPatch::creator::fwMedData::ActivitySeries1::New());
35  creators->registerCreator(::fwStructuralPatch::creator::fwMedData::ActivitySeries1::New());
36  creators->registerCreator(::fwStructuralPatch::creator::fwData::Landmarks1::New());
37  creators->registerCreator(::fwStructuralPatch::creator::fwData::PointList1::New());
38  }
39 
40  static runner r;
41 };
42 
43 runner runner::r;
44 
45 } // namespace creator
46 } // namespace fwStructuralPatch
Contains creators and structural patches.
Definition: Landmarks1.hpp:13
Registers structural creators dedicated to data creation.
static StructuralCreatorDB::sptr getDefault()
Returns the default instance of StructuralCreatorDB.