fw4spl
BookmarkSrv.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-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 __CTRLSELECTION_BOOKMARKSRV_HPP__
8 #define __CTRLSELECTION_BOOKMARKSRV_HPP__
9 
10 #include "ctrlSelection/config.hpp"
11 
12 #include <fwServices/IController.hpp>
13 #include <fwServices/IService.hpp>
14 
15 namespace ctrlSelection
16 {
17 
21 class CTRLSELECTION_CLASS_API BookmarkSrv : public ::fwServices::IController
22 {
23 
24 public:
25 
27 
28  CTRLSELECTION_API BookmarkSrv() noexcept;
29 
30  CTRLSELECTION_API virtual ~BookmarkSrv() noexcept;
31 
32 protected:
33 
35  CTRLSELECTION_API virtual void starting() override;
36 
38  CTRLSELECTION_API virtual void stopping() override;
39 
41  CTRLSELECTION_API virtual void swapping() override;
42 
53  CTRLSELECTION_API virtual void configuring() override;
54 
56  CTRLSELECTION_API virtual void reconfiguring() override;
57 
59  CTRLSELECTION_API virtual void updating() override;
60 
61  CTRLSELECTION_API virtual void info( std::ostream& _sstream ) override;
62 
63 private:
64  std::string m_bookmarkName;
65 };
66 
67 } // ctrlSelection
68 
69 #endif // __CTRLSELECTION_BOOKMARKSRV_HPP__
STL namespace.
This service bookmark its object with the name given in configuration.
Definition: BookmarkSrv.hpp:21
This interface defines control service API. Does nothing particularly, can be considered as a default...
Definition: IController.hpp:23
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
The namespace ctrlSelection contains several interfaces for manager, updater and wrapper.
Definition: BookmarkSrv.hpp:15