fw4spl
SConfigController.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 __FWSERVICES_SCONFIGCONTROLLER_HPP__
8 #define __FWSERVICES_SCONFIGCONTROLLER_HPP__
9 
10 #include "fwServices/config.hpp"
11 #include "fwServices/helper/ConfigLauncher.hpp"
12 #include "fwServices/IController.hpp"
13 
14 #include <fwRuntime/ConfigurationElement.hpp>
15 #include <fwRuntime/EConfigurationElement.hpp>
16 
17 #include <fwTools/Failed.hpp>
18 
19 namespace fwServices
20 {
21 
49 class FWSERVICES_CLASS_API SConfigController : public ::fwServices::IController
50 {
51 
52 public:
53 
55 
57  FWSERVICES_API SConfigController() noexcept;
58 
60  FWSERVICES_API virtual ~SConfigController() noexcept;
61 
62 protected:
63 
65  virtual void starting() override;
66 
68  virtual void stopping() override;
69 
71  virtual void updating() override;
72 
93  virtual void configuring() override;
94 
96  virtual void swapping() override;
97 
99  virtual void info( std::ostream& _sstream ) override;
100 
101 private:
102 
104  ::fwServices::helper::ConfigLauncher::uptr m_configLauncher;
105 
106 };
107 
108 } // fwServices
109 
110 #endif // __FWSERVICES_SCONFIGCONTROLLER_HPP__
111 
STL namespace.
Namespace fwServices is dedicated to (mimic) the dynamic affectation of methods to (pure data) object...
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.
This service starts/stops a template configuration.