fw4spl
Samples/Tutorials/Tuto02DataServiceBasicCtrl/include/Tuto02DataServiceBasicCtrl/Plugin.hpp
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 #pragma once
8 
9 #include "Tuto02DataServiceBasicCtrl/config.hpp"
10 
11 #include <fwData/Image.hpp>
12 
13 #include <fwRuntime/Plugin.hpp>
14 
15 #include <fwServices/IService.hpp>
16 
18 {
19 
23 class TUTO02DATASERVICEBASICCTRL_CLASS_API Plugin : public ::fwRuntime::Plugin
24 {
25 public:
27  TUTO02DATASERVICEBASICCTRL_API Plugin() noexcept;
28 
30  TUTO02DATASERVICEBASICCTRL_API ~Plugin() noexcept;
31 
33  TUTO02DATASERVICEBASICCTRL_API void start();
34 
36  TUTO02DATASERVICEBASICCTRL_API void stop() noexcept;
37 
38  TUTO02DATASERVICEBASICCTRL_API void initialize();
39 
40  TUTO02DATASERVICEBASICCTRL_API void uninitialize() noexcept;
41 
42 private:
43  ::fwData::Image::sptr m_image;
44 
45  ::fwServices::IService::sptr m_frameSrv;
46  ::fwServices::IService::sptr m_renderSrv;
47  ::fwServices::IService::sptr m_readerSrv;
48 };
49 
50 } // namespace Tuto02DataServiceBasicCtrl
Provides a default plugin implementation.