fw4spl
Bundles/core/dataReg/include/dataReg/parser/List.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_LIST_HPP__
8 #define __DATAREG_PARSER_LIST_HPP__
9 
10 #include "dataReg/config.hpp"
11 
12 #include <fwRuntime/ConfigurationElement.hpp>
13 
14 #include <fwServices/IAppConfigManager.hpp>
15 #include <fwServices/IXMLParser.hpp>
16 
17 #include <fwTools/Failed.hpp>
18 #include <fwTools/Object.hpp>
19 
20 namespace dataReg
21 {
22 namespace parser
23 {
28 class DATAREG_CLASS_API List : public ::fwServices::IXMLParser
29 {
30 public:
31 
33 
37  List( )
38  {
39  }
40 
44  virtual ~List()
45  {
46  }
47 
48  DATAREG_API void createConfig( ::fwTools::Object::sptr _obj ) override;
49 
50  DATAREG_API void startConfig() override;
51 
52  DATAREG_API void updateConfig() override;
53 
54  DATAREG_API void stopConfig() override;
55 
56  DATAREG_API void destroyConfig() override;
57 
58 protected:
59 
65  DATAREG_API virtual void updating( ) override;
66 
67 private:
68 
70  bool refObjectValidator( ::fwRuntime::ConfigurationElement::sptr _cfgElement );
71 
72  std::vector< ::fwServices::IAppConfigManager::sptr > m_ctmContainer;
73 };
74 
75 } //namespace parser
76 } //namespace dataReg
77 
78 #endif /* __DATAREG_PARSER_LIST_HPP__ */
79 
The namespace dataReg (data registration) contains classes which allow to parse the xml configuration...
Specific service for the construction of a List and its associated services from an XML-based descrip...
#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