X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_ModuleReader.h;h=a50fd028c75e90540dd09235a2e5382dd608a790;hb=cad4044b8c109fe6103a0f477d45950dc6e6f543;hp=a6f8c1e2d4215565dc67b3e9afc059e1a5377e32;hpb=d61b391f60096b975dd2dcaef278e6405d1aec18;p=modules%2Fshaper.git diff --git a/src/Config/Config_ModuleReader.h b/src/Config/Config_ModuleReader.h index a6f8c1e2d..a50fd028c 100644 --- a/src/Config/Config_ModuleReader.h +++ b/src/Config/Config_ModuleReader.h @@ -38,6 +38,8 @@ class Config_ModuleReader : public Config_XMLReader CONFIG_EXPORT virtual ~Config_ModuleReader(); /// Returns map that describes which file contains a feature (the feature is key, the file is value) CONFIG_EXPORT const std::map& featuresInFiles() const; + /// Returns list of module's xml files + CONFIG_EXPORT const std::set& modulePluginFiles() const; /// Returns module name: an xml attribute from the root of the plugins.xml: /// e.g \code \endcode CONFIG_EXPORT std::string getModuleName(); @@ -67,9 +69,12 @@ class Config_ModuleReader : public Config_XMLReader std::string addPlugin(const std::string& aPluginLibrary, const std::string& aPluginScript, const std::string& aPluginConf); + /// Save feature in myFeaturesInFiles. Generates an error if the feature name is already registered. + void addFeature(const std::string& theFeatureName, const std::string& thePluginConfig); private: std::map myFeaturesInFiles; ///< a feature name is key, a file is value + std::set myPluginFiles; ///< a feature name is key, a file is value static std::map myPluginTypes; ///< a plugin name is key, a plugin type is value static std::set myDependencyModules; ///< set of loaded modules const char* myEventGenerated; ///< gives ability to send Feature_Messages to various listeners