fw4spl
LockDumpSrv.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 "ctrlMemory/config.hpp"
10 
11 #include <fwData/ObjectLock.hpp>
12 
13 #include <fwServices/IController.hpp>
14 
15 namespace ctrlMemory
16 {
17 
31 class CTRLMEMORY_CLASS_API LockDumpSrv : public ::fwServices::IController
32 {
33 
34 public:
35 
37 
39  CTRLMEMORY_API LockDumpSrv() noexcept;
40 
42  CTRLMEMORY_API virtual ~LockDumpSrv() noexcept;
43 
44 protected:
45 
47  CTRLMEMORY_API virtual void starting() override;
48 
50  CTRLMEMORY_API virtual void stopping() override;
51 
53  CTRLMEMORY_API virtual void reconfiguring() override;
54 
56  CTRLMEMORY_API virtual void updating() override;
57 
59  CTRLMEMORY_API virtual void info( std::ostream& _sstream ) override;
60 
62  CTRLMEMORY_API virtual void configuring() override;
63 
64 private:
65 
66  ::fwData::ObjectLock m_objLock;
67 
68 };
69 
70 } // ctrlMemory
STL namespace.
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.
Contains the representation of the data objects used in the framework.
This services dump lock object. Unlock it on stopping.
Definition: LockDumpSrv.hpp:31
The namespace ctrlMemory contains services to lock objects to prevent dump.
Definition: LockDumpSrv.hpp:15