Salome HOME
55ce4e932b06183b0c8aa35ebc7bacb53af05539
[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 class Config_WidgetReader : public Config_XMLReader
18 {
19  public:
20   CONFIG_EXPORT Config_WidgetReader(const std::string& theXmlFile);CONFIG_EXPORT virtual ~Config_WidgetReader();
21
22   CONFIG_EXPORT std::string featureWidgetCfg(const std::string& theFeatureName);CONFIG_EXPORT std::string featureDescription(
23       const std::string& theFeatureName);
24
25  protected:
26   void processNode(xmlNodePtr theNode);
27   bool processChildren(xmlNodePtr theNode);
28   std::string dumpNode(xmlNodePtr theNode);
29   void resolveSourceNodes(xmlNodePtr theNode);
30
31  private:
32   std::map<std::string, std::string> myWidgetCache;
33   std::map<std::string, std::string> myDescriptionCache;
34
35 };
36
37 #endif /* CONFIG_WIDGETREADER_H_ */