+
+void Config_ModuleReader::addFeature(const std::string& theFeatureName,
+ const std::string& thePluginConfig)
+{
+ if (myFeaturesInFiles.count(theFeatureName)) {
+ std::string anErrorMsg = "Can not register feature '" + theFeatureName + "' in plugin '"
+ + thePluginConfig + "'. There is a feature with the same ID.";
+ Events_Error::send(anErrorMsg);
+ return;
+ }
+
+ myFeaturesInFiles[theFeatureName] = thePluginConfig;
+}
+