X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_ModuleReader.h;h=3bd5d39f3f75c8289f5566e5fc44ec8bfc1e553f;hb=6a20927e015a5c9ac96e44f7ceef403cd5b12a26;hp=33567bdd27aa495af8caad59436d0c9ba8a0fbed;hpb=1fc8dc0984e6bb92df544300fda9aa625ad5c05e;p=modules%2Fshaper.git diff --git a/src/Config/Config_ModuleReader.h b/src/Config/Config_ModuleReader.h index 33567bdd2..3bd5d39f3 100644 --- a/src/Config/Config_ModuleReader.h +++ b/src/Config/Config_ModuleReader.h @@ -8,10 +8,11 @@ #ifndef CONFIG_MODULEREADER_H_ #define CONFIG_MODULEREADER_H_ -#include +#include #include #include +#include #include @@ -19,25 +20,27 @@ class Config_ModuleReader: public Config_XMLReader { public: - CONFIG_EXPORT Config_ModuleReader(); + CONFIG_EXPORT Config_ModuleReader(const char* theEventGenerated = 0); CONFIG_EXPORT virtual ~Config_ModuleReader(); - CONFIG_EXPORT void setAutoImport(bool enabled); - CONFIG_EXPORT const std::map& plugins() const; + CONFIG_EXPORT const std::map& featuresInFiles() const; CONFIG_EXPORT std::string getModuleName(); + /// loads the library with specific name, appends "lib*.dll" or "*.so" depending on the platform + CONFIG_EXPORT static void loadLibrary(const std::string theLibName); + protected: void processNode(xmlNodePtr aNode); bool processChildren(xmlNodePtr aNode); - void importPlugin(const std::string& thePluginName, - const std::string& thePluginLibrary = ""); + std::list importPlugin(const std::string& thePluginLibrary, + const std::string& thePluginFile); -private: - bool myIsAutoImport; - std::map myPluginsMap; +private: + std::map myFeaturesInFiles; + const char* myEventGenerated; };