Salome HOME
Fix SketcherSetEqual.test_length_equality
[modules/shaper.git] / src / Config / Config_DataModelReader.cpp
index 9e55a78d890d01956dbec213c8bf23daf37766c0..e9113e85e9bb99c1058a6f122b578814714d8b61 100644 (file)
@@ -74,4 +74,15 @@ int Config_DataModelReader::rootFolderId(std::string theType) const
       return aId;
   }
   return -1;
-}
\ No newline at end of file
+}
+
+int Config_DataModelReader::subFolderId(std::string theType) const
+{
+  std::vector<std::string>::const_iterator aIt;
+  int aId;
+  for (aIt = mySubFolderTypes.cbegin(), aId = 0; aIt != mySubFolderTypes.cend(); ++aIt, ++aId) {
+    if ((*aIt) == theType)
+      return aId;
+  }
+  return -1;
+}