Salome HOME
Merge branch 'master' of newgeom:newgeom.git into BR_PORTING_CENTOS_6_3
[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                        const char* theEventGenerated = 0);
25   virtual ~Config_FeatureReader();
26
27 protected:
28   void processNode(xmlNodePtr aNode);
29   bool processChildren(xmlNodePtr aNode);
30
31   void fillFeature(xmlNodePtr theRoot, Config_FeatureMessage& outFeatureMessage);
32
33 private:
34   std::string myLastWorkbench;
35   std::string myLastGroup;
36   std::string myLibraryName;
37   /// event generated on feature data sending, by default it is "FeatureEvent"
38   const char* myEventGenerated;
39 };
40
41 #endif /* CONFIG_FEATUREREADER_H_ */