| 1125 | } |
| 1126 | |
| 1127 | std::vector<std::string> ObjectIdentifier::getStringList() const |
| 1128 | { |
| 1129 | std::vector<std::string> l; |
| 1130 | ResolveResults result(*this); |
| 1131 | |
| 1132 | if (!result.resolvedProperty || result.resolvedDocumentObject != owner) { |
| 1133 | if (documentNameSet) { |
| 1134 | l.push_back(documentName.toString()); |
| 1135 | } |
| 1136 | |
| 1137 | if (documentObjectNameSet) { |
| 1138 | l.push_back(documentObjectName.toString()); |
| 1139 | } |
| 1140 | } |
| 1141 | if (!subObjectName.getString().empty()) { |
| 1142 | l.back() += subObjectName.toString(); |
| 1143 | } |
| 1144 | std::vector<Component>::const_iterator i = components.begin(); |
| 1145 | while (i != components.end()) { |
| 1146 | std::ostringstream ss; |
| 1147 | i->toString(ss); |
| 1148 | l.push_back(ss.str()); |
| 1149 | ++i; |
| 1150 | } |
| 1151 | |
| 1152 | return l; |
| 1153 | } |
| 1154 | |
| 1155 | ObjectIdentifier ObjectIdentifier::relativeTo(const ObjectIdentifier& other) const |
| 1156 | { |