Salome HOME
Xml --> Widget processing added for "value" (spinbox) entities.
[modules/shaper.git] / src / Config / Config_ModuleReader.h
1 /*
2  * Config_XMLModuleReader.h
3  *
4  *  Created on: Mar 20, 2014
5  *      Author: sbh
6  */
7
8 #ifndef CONFIG_MODULEREADER_H_
9 #define CONFIG_MODULEREADER_H_
10
11 #include <Config.h>
12 #include <Config_XMLReader.h>
13
14 #include <map>
15 #include <string>
16
17
18 class CONFIG_EXPORT Config_ModuleReader: public Config_XMLReader
19 {
20
21 public:
22   Config_ModuleReader();
23   virtual ~Config_ModuleReader();
24
25   void setAutoImport(bool enabled);
26   const std::map<std::string, std::string>& plugins() const;
27
28   std::string getModuleName();
29
30 protected:
31   void processNode(xmlNodePtr aNode);
32   bool processChildren(xmlNodePtr aNode);
33
34   void importPlugin(const std::string& thePluginName,
35                     const std::string& thePluginLibrary = "");
36
37 private:
38   bool myIsAutoImport;
39   std::map<std::string, std::string> myPluginsMap;
40
41
42 };
43
44 #endif /* CONFIG_XMLMODULEREADER_H_ */