fw4spl
Bundles/core/dataReg/include/dataReg/parser/Object.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 __DATAREG_PARSER_OBJECT_HPP__
8 #define __DATAREG_PARSER_OBJECT_HPP__
9 
10 #include "dataReg/config.hpp"
11 
12 #include <fwServices/IAppConfigManager.hpp>
13 #include <fwServices/IXMLParser.hpp>
14 
15 #include <fwTools/Object.hpp>
16 
17 namespace dataReg
18 {
19 namespace parser
20 {
21 
30 class DATAREG_CLASS_API Object : public ::fwServices::IXMLParser
31 {
32 public:
34 
35  DATAREG_API Object( );
36  DATAREG_API virtual ~Object();
37 
38  DATAREG_API void createConfig( ::fwTools::Object::sptr _obj ) override;
39  DATAREG_API void startConfig() override;
40  DATAREG_API void updateConfig() override;
41  DATAREG_API void stopConfig() override;
42  DATAREG_API void destroyConfig() override;
43 
44 protected:
45 
46  bool refObjectValidator( ::fwRuntime::ConfigurationElement::csptr _cfgElement );
47  void updating() override;
48 
49  std::vector< ::fwServices::IAppConfigManager::sptr > m_ctmContainer;
50 };
51 
52 } //namespace parser
53 } //namespace dataReg
54 
55 #endif /* __DATAREG_PARSER_OBJECT_HPP__ */
Specific fwTools::Object parser. Does nothing as no IService method is specialized: IXMLParser base c...
The namespace dataReg (data registration) contains classes which allow to parse the xml configuration...
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Service type for the construction of an object and associated services from an XML-based description...
Definition: IXMLParser.hpp:36