fw4spl
SExtractObj.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2014-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 __CTRLCAMP_SEXTRACTOBJ_HPP__
8 #define __CTRLCAMP_SEXTRACTOBJ_HPP__
9 
10 #include "ctrlCamp/config.hpp"
11 #include "ctrlCamp/ICamp.hpp"
12 
13 #include <fwCore/base.hpp>
14 
15 #include <fwServices/IService.hpp>
16 #include <fwServices/macros.hpp>
17 
18 namespace ctrlCamp
19 {
50 class CTRLCAMP_CLASS_API SExtractObj : public ::ctrlCamp::ICamp
51 {
52 public:
53 
55 
56  typedef std::map<std::string, std::string> ExtractMapType;
57 
59  CTRLCAMP_API SExtractObj();
60 
62  CTRLCAMP_API ~SExtractObj();
63 
64 protected:
65 
67  CTRLCAMP_API virtual void starting() override;
68 
70  CTRLCAMP_API virtual void configuring() override;
71 
73  CTRLCAMP_API virtual void stopping() override;
74 
76  CTRLCAMP_API virtual void updating() override;
77 
78 private:
79 
81  ExtractMapType m_extract;
82 
84  std::vector<std::string> m_sourcePaths;
85 };
86 
87 } // namespace ctrlCamp
88 
89 #endif /* __CTRLCAMP_SEXTRACTOBJ_HPP__ */
The namespace ctrlCamp contains services using camp.
Definition: ICamp.hpp:18
This service get objects from a source object and expose them as new objects.
Definition: SExtractObj.hpp:50
This interface defines service API. It can be considered as a default type for services using fwCamp...
Definition: ICamp.hpp:23
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.