+ } else if (isNode(theNode, SUB_DOCUMENT, NULL)) {
+ isRootReading = false;
+ mySubTypes = getProperty(theNode, GROUP_TYPE);
+ std::string isResult = getProperty(theNode, LINK_ITEM);
+ std::string::iterator aIt;
+ for (aIt = isResult.begin(); aIt != isResult.end(); aIt++) {
+ (*aIt) = toupper(*aIt);
+ }
+ myIsResultLink = (isResult == "TRUE")? true : false;
+ }
+}
+
+int Config_DataModelReader::rootFolderId(std::string theType) const
+{
+ std::vector<std::string>::const_iterator aIt;
+ int aId;
+ for (aIt = myRootFolderTypes.cbegin(), aId = 0; aIt != myRootFolderTypes.cend(); ++aIt, ++aId) {
+ if ((*aIt) == theType)
+ return aId;
+ }
+ return -1;
+}
+
+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;