fw4spl
Bundles/core/activities/src/activities/Plugin.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2018.
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 "activities/Plugin.hpp"
8 
9 #include <fwActivities/registry/Activities.hpp>
10 
11 #include <fwRuntime/utils/GenericExecutableFactoryRegistrar.hpp>
12 
13 namespace activities
14 {
15 
16 static ::fwRuntime::utils::GenericExecutableFactoryRegistrar<Plugin> registrar("activities::Plugin");
17 
18 Plugin::~Plugin() noexcept
19 {
20 }
21 
22 //------------------------------------------------------------------------------
23 
25 {
26  ::fwActivities::registry::Activities::getDefault()->parseBundleInformation();
27 }
28 
29 //------------------------------------------------------------------------------
30 
31 void Plugin::stop() noexcept
32 {
33  // Clear all operator configurations
35 }
36 
37 } // namespace activities
static FWACTIVITIES_API Activities::sptr getDefault()
Return the default global instance of Activities.
Definition: Activities.cpp:226
ACTIVITIES_API void start()
Notifies the plugin about its start.
ACTIVITIES_API ~Plugin() noexcept
destructor
The namespace activities contains helpers and services allowing to launch activities.
ACTIVITIES_API void stop() noexcept
Notifies the plugin about its stop.