+
+std::string getFolderFeatures(const std::string& theFolderName,
+ const std::vector<std::string>& theNames,
+ const std::vector<std::string>& theFeatures)
+{
+ int aId;
+ bool aFound = false;
+ std::vector<std::string>::const_iterator aIt;
+ for(aIt = theNames.cbegin(), aId = 0; aIt != theNames.cend(); ++aIt, ++aId) {
+ if ((*aIt) == theFolderName) {
+ aFound = true;
+ break;
+ }
+ }
+ if (aFound)
+ return theFeatures.at(aId);
+ return std::string();
+}
+
+std::string Config_DataModelReader::
+ subFolderFeatures(const std::string& theFolderName) const
+{
+ return getFolderFeatures(theFolderName, mySubFolderNames, mySubFeaturesList);
+}
+
+
+std::string Config_DataModelReader::
+ rootFolderFeatures(const std::string& theFolderName) const
+{
+ return getFolderFeatures(theFolderName, myRootFolderNames, myRootFeaturesList);
+}
+