fw4spl
Bundles/patch/patchMedicalData/src/patchMedicalData/Plugin.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 <fwRuntime/utils/GenericExecutableFactoryRegistrar.hpp>
8 
9 #include <fwStructuralPatch/PatchLoader.hpp>
10 
11 #include <fwMDSemanticPatch/PatchLoader.hpp>
12 
13 #include "patchMedicalData/Plugin.hpp"
14 
15 namespace patchMedicalData
16 {
17 
18 static ::fwRuntime::utils::GenericExecutableFactoryRegistrar<Plugin> registrar("::patchMedicalData::Plugin");
19 
20 Plugin::~Plugin() noexcept
21 {
22 }
23 
25 {
26  //Hack: force link with fwStructuralPatch
28 
29  /* Force link with fwMDSemanticPatch and compute version/link tables
30  * for fwMDSemanticPatch data.
31  */
33 }
34 
35 void Plugin::stop() noexcept
36 {
37 }
38 
39 } // namespace patchMedicalData
PATCHMEDICALDATA_API ~Plugin() noexcept
Destructor. Do nothing.
PATCHMEDICALDATA_API void start()
Overrides start method. Object declarations.
PATCHMEDICALDATA_API void stop() noexcept
Overrides stop method. Do nothing.
static FWSTRUCTURALPATCH_API void loadPatches()
Function used to force link.
static FWMDSEMANTICPATCH_API void loadPatches()
Computes VersionsManager&#39;s link and version tables.
The bundle patchMedicalData allows to load patches from fwStructuralPatch and fwMDSemanticPatch libra...