Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / Config / Config_FeatureReader.h
1 /*
2  * Config_FeatureReader.h
3  *
4  *  Created on: Mar 20, 2014
5  *      Author: sbh
6  */
7
8 #ifndef CONFIG_FEATUREREADER_H_
9 #define CONFIG_FEATUREREADER_H_
10
11 #include <Config.h>
12 #include <Config_XMLReader.h>
13
14 #include <string>
15
16
17 class Config_FeatureMessage;
18
19 class Config_FeatureReader: public Config_XMLReader
20 {
21 public:
22   Config_FeatureReader(const std::string& theXmlFile,
23                        const std::string& theLibraryName = "");
24   virtual ~Config_FeatureReader();
25
26 protected:
27   void processNode(xmlNodePtr aNode);
28   bool processChildren(xmlNodePtr aNode);
29
30   void fillFeature(xmlNodePtr theRoot, Config_FeatureMessage& outFeatureMessage);
31
32 private:
33   std::string myLastWorkbench;
34   std::string myLastGroup;
35   std::string myLibraryName;
36 };
37
38 #endif /* CONFIG_FEATUREREADER_H_ */