fw4spl
Bundles/core/dataReg/include/dataReg/parser/GenericField.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_GENERICFIELD_HPP__
8 #define __DATAREG_PARSER_GENERICFIELD_HPP__
9 
10 #include "dataReg/config.hpp"
11 
12 #include <fwRuntime/ConfigurationElement.hpp>
13 
14 #include <fwServices/IXMLParser.hpp>
15 
16 #include <fwTools/Failed.hpp>
17 #include <fwTools/Object.hpp>
18 
19 namespace dataReg
20 {
21 namespace parser
22 {
28 class DATAREG_CLASS_API GenericField : public ::fwServices::IXMLParser
29 {
30 
31 public:
32 
34 
37  {
38  }
39 
41  virtual ~GenericField()
42  {
43  }
44 
45  DATAREG_API void createConfig( ::fwTools::Object::sptr _obj ) override;
46 protected:
47 
54  DATAREG_API virtual void updating( ) override;
55 
56 };
57 
62 {
63 public:
65 };
66 
71 {
72 public:
74 };
75 
79 class FloatParser : public GenericField
80 {
81 public:
83 };
84 
88 class StringParser : public GenericField
89 {
90 public:
92 };
93 
94 } //namespace parser
95 } //namespace dataReg
96 
97 #endif // __DATAREG_PARSER_GENERICFIELD_HPP__
The namespace dataReg (data registration) contains classes which allow to parse the xml configuration...
Specialisation of GenericField parser for float.
Specialisation of GenericField parser for string.
Specialisation of GenericField parser for integer.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Specific service for the construction of a GenericField and its associated services from an XML-based...
Service type for the construction of an object and associated services from an XML-based description...
Definition: IXMLParser.hpp:36
Specialisation of GenericField parser for boolean.