]> SALOME platform Git repositories - modules/shaper.git/blob - src/Config/Config_ModuleReader.h
Salome HOME
Set plugin's library name as field of feature message.
[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_XMLReader.h>
12
13 #include <map>
14
15 class CONFIG_EXPORT Config_ModuleReader: public Config_XMLReader
16 {
17
18 public:
19   Config_ModuleReader();
20   virtual ~Config_ModuleReader();
21
22   void setAutoImport(bool enabled);
23   const std::map<std::string, std::string>& plugins() const;
24
25   std::string getModuleName();
26
27 protected:
28   void processNode(xmlNodePtr aNode);
29   bool processChildren(xmlNodePtr aNode);
30
31   void importPlugin(const std::string& thePluginName,
32                     const std::string& thePluginLibrary = "");
33
34 private:
35   bool myIsAutoImport;
36   std::map<std::string, std::string> myPluginsMap;
37
38
39 };
40
41 #endif /* CONFIG_XMLMODULEREADER_H_ */