Salome HOME
Issue #273: Add copyright string
[modules/shaper.git] / src / Config / Config_WidgetReader.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 /*
4  * Config_WidgetReader.h
5  *
6  *  Created on: Apr 2, 2014
7  *      Author: sbh
8  */
9
10 #ifndef CONFIG_WIDGETREADER_H_
11 #define CONFIG_WIDGETREADER_H_
12
13 #include <Config_def.h>
14 #include <Config_XMLReader.h>
15
16 #include <map>
17 #include <string>
18
19 class Config_WidgetReader : public Config_XMLReader
20 {
21  public:
22   CONFIG_EXPORT Config_WidgetReader(const std::string& theXmlFile);CONFIG_EXPORT virtual ~Config_WidgetReader();
23
24   CONFIG_EXPORT std::string featureWidgetCfg(const std::string& theFeatureName);CONFIG_EXPORT std::string featureDescription(
25       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_ */