Salome HOME
Create Presentation for rigid constraint
[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_def.h>
12 #include <Config_XMLReader.h>
13
14 #include <map>
15 #include <list>
16 #include <string>
17
18 class Config_ModuleReader : public Config_XMLReader
19 {
20
21  public:
22   CONFIG_EXPORT Config_ModuleReader(const char* theEventGenerated = 0);CONFIG_EXPORT virtual ~Config_ModuleReader();
23
24   CONFIG_EXPORT const std::map<std::string, std::string>& featuresInFiles() const;
25
26   CONFIG_EXPORT std::string getModuleName();
27
28   /// loads the library with specific name, appends "lib*.dll" or "*.so" depending on the platform
29   CONFIG_EXPORT static void loadLibrary(const std::string theLibName);
30
31  protected:
32   void processNode(xmlNodePtr aNode);
33   bool processChildren(xmlNodePtr aNode);
34
35   std::list<std::string> importPlugin(const std::string& thePluginLibrary,
36                                       const std::string& thePluginFile);
37
38  private:
39   std::map<std::string, std::string> myFeaturesInFiles;
40   const char* myEventGenerated;
41
42 };
43
44 #endif /* CONFIG_XMLMODULEREADER_H_ */