fw4spl
SDumpPolicy.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 __MEMORY_SDUMPPOLICY_HPP__
8 #define __MEMORY_SDUMPPOLICY_HPP__
9 
10 #include "memory/config.hpp"
11 
12 #include <fwMemory/IPolicy.hpp>
13 
14 #include <fwServices/IController.hpp>
15 
16 #include <fwTools/Failed.hpp>
17 
18 namespace memory
19 {
20 
21 class MEMORY_CLASS_API SDumpPolicy : public ::fwServices::IController
22 {
23 
24 public:
25 
27 
28  MEMORY_API SDumpPolicy();
29 
30  MEMORY_API virtual ~SDumpPolicy();
31 
46  MEMORY_API virtual void configuring() override;
47 
49  MEMORY_API virtual void starting() override;
50 
52  MEMORY_API virtual void stopping() override;
53 
55  MEMORY_API virtual void updating() override;
56 
58  MEMORY_API virtual void swapping() override;
59 
60 protected:
61 
62  typedef std::vector< std::pair< ::fwMemory::IPolicy::ParamNamesType::value_type, std::string > > ParametersType;
63 
64  std::string m_policy;
65  ParametersType m_policyParams;
66 };
67 
68 } // namespace memory
69 
70 #endif /*__MEMORY_SDUMPPOLICY_HPP__*/
71 
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 memory contains tools to manage memory. It is used for dump. It allows to define the bu...