Salome HOME
All the git "*.orig" files removed and will be ignored since this commit.
[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 <list>
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::list<std::string>& pluginsList() 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
33 private:
34   bool m_isAutoImport;
35   std::list<std::string> m_pluginsList;
36
37 };
38
39 #endif /* CONFIG_XMLMODULEREADER_H_ */