fw4spl
Bundles/core/dataReg/src/dataReg/Plugin.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 "dataReg/Plugin.hpp"
8 
9 #include <fwData/Float.hpp>
10 
11 #include <fwDataCamp/Version.hpp>
12 
13 #include <fwMedData/Patient.hpp>
14 
15 #include <fwMedDataCamp/Version.hpp>
16 
17 #include <fwRuntime/utils/GenericExecutableFactoryRegistrar.hpp>
18 
19 namespace dataReg
20 {
21 
22 static ::fwRuntime::utils::GenericExecutableFactoryRegistrar<Plugin> registrar("::dataReg::Plugin");
23 
24 //-----------------------------------------------------------------------------
25 
26 Plugin::~Plugin() noexcept
27 {
28 }
29 
30 //-----------------------------------------------------------------------------
31 
33 {
34  //Hack: force link with fwData
35  ::fwData::Float::sptr obj = ::fwData::Float::New();
36  obj->getClassname();
37 
38  //Hack: force link with fwMedData
39  ::fwMedData::Patient::sptr pat = ::fwMedData::Patient::New();
40  pat->getClassname();
41 
42  //Force link with fwDataCamp
43  m_fwDataCampVersion = ::fwDataCamp::Version::s_CURRENT_VERSION;
44 
45  //Force link with fwMedDataCamp
46  m_fwMedDataCampVersion = ::fwMedDataCamp::Version::s_CURRENT_VERSION;
47 }
48 
49 //-----------------------------------------------------------------------------
50 
51 void Plugin::stop() noexcept
52 {
53 }
54 
55 //-----------------------------------------------------------------------------
56 
57 } // namespace dataReg
The namespace dataReg (data registration) contains classes which allow to parse the xml configuration...
DATAREG_API void start()
Overrides start method. Object declarations.
DATAREG_API void stop() noexcept
Overrides stop method. Do nothing.
DATAREG_API ~Plugin() noexcept
Destructor. Do nothing.