Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / Config / Config_WidgetReader.h
1 /*
2  * Config_WidgetReader.h
3  *
4  *  Created on: Apr 2, 2014
5  *      Author: sbh
6  */
7
8 #ifndef CONFIG_WIDGETREADER_H_
9 #define CONFIG_WIDGETREADER_H_
10
11 #include <Config_def.h>
12 #include <Config_XMLReader.h>
13
14 #include <map>
15 #include <string>
16
17
18 class Config_WidgetReader: public Config_XMLReader
19 {
20 public:
21   CONFIG_EXPORT Config_WidgetReader(const std::string& theXmlFile);
22   CONFIG_EXPORT virtual ~Config_WidgetReader();
23
24   CONFIG_EXPORT std::string featureWidgetCfg(const std::string& theFeatureName);
25   CONFIG_EXPORT std::string featureDescription(const std::string& theFeatureName);
26
27 protected:
28   void processNode(xmlNodePtr theNode);
29   bool processChildren(xmlNodePtr theNode);
30   std::string dumpNode(xmlNodePtr theNode);
31   void resolveSourceNodes(xmlNodePtr theNode);
32
33 private:
34   std::map<std::string, std::string> myWidgetCache;
35   std::map<std::string, std::string> myDescriptionCache;
36
37 };
38
39 #endif /* CONFIG_WIDGETREADER_H_ */