fw4spl
Samples/Tutorials/TutoTrianConverterCtrl/include/TutoTrianConverterCtrl/Plugin.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2016.
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 __TUTOTRIANCONVERTERCTRL_PLUGIN_HPP__
8 #define __TUTOTRIANCONVERTERCTRL_PLUGIN_HPP__
9 
10 #include <fwRuntime/Plugin.hpp>
11 
12 #include <fwData/Mesh.hpp>
13 #include <fwServices/IService.hpp>
14 
15 #include "TutoTrianConverterCtrl/config.hpp"
16 
17 namespace TutoTrianConverterCtrl
18 {
19 
23 class TUTOTRIANCONVERTERCTRL_CLASS_API Plugin : public ::fwRuntime::Plugin
24 {
25 public:
27  TUTOTRIANCONVERTERCTRL_API Plugin() noexcept;
28 
30  TUTOTRIANCONVERTERCTRL_API ~Plugin() noexcept;
31 
33  TUTOTRIANCONVERTERCTRL_API void start();
34 
36  TUTOTRIANCONVERTERCTRL_API void stop() noexcept;
37 
38  TUTOTRIANCONVERTERCTRL_API void initialize();
39 
40  TUTOTRIANCONVERTERCTRL_API void uninitialize() noexcept;
41 
42 private:
43  ::fwData::Mesh::sptr m_mesh;
44  ::fwServices::IService::sptr m_writerSrv;
45  ::fwServices::IService::sptr m_readerSrv;
46 };
47 
48 } // namespace TutoTrianConverterCtrl
49 
50 #endif // __TUTOTRIANCONVERTERCTRL_PLUGIN_HPP__
Provides a default plugin implementation.