fw4spl
Bundles/core/appXml/include/appXml/Plugin.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2015-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 #ifndef __APPXML_PLUGIN_HPP__
8 #define __APPXML_PLUGIN_HPP__
9 
10 #include "appXml/config.hpp"
11 
12 #include <fwRuntime/Plugin.hpp>
13 
14 #include <fwServices/AppConfigManager.hpp>
15 
16 namespace appXml
17 {
18 
22 class APPXML_CLASS_API Plugin : public ::fwRuntime::Plugin
23 {
24 public:
26  APPXML_API Plugin() noexcept;
27 
29  APPXML_API ~Plugin() noexcept;
30 
32  APPXML_API void start();
33 
35  APPXML_API void stop() noexcept;
36 
37  APPXML_API void initialize();
38 
39  APPXML_API void uninitialize() noexcept;
40 
41 private:
42  std::string m_configurationName;
43  std::string m_parametersName;
44  ::fwServices::AppConfigManager::sptr m_appConfigMng;
45 };
46 
47 } // namespace appXml
48 
49 #endif // __APPXML_PLUGIN_HPP__
This class is started when the bundles is loaded.
The bundle appXml allows to parse xml configuration of an application. See AppConfig for more details...
Provides a default plugin implementation.