Salome HOME
ae76cc996254fa681044ffd1e6578fa6c766d606
[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.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
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_ */