| 205 | } |
| 206 | |
| 207 | std::vector<ObjectIdentifier::Component> ObjectIdentifier::getPropertyComponents() const |
| 208 | { |
| 209 | if (components.size() <= 1 || documentObjectName.getString().empty()) { |
| 210 | return components; |
| 211 | } |
| 212 | ResolveResults result(*this); |
| 213 | if (result.propertyIndex == 0) { |
| 214 | return components; |
| 215 | } |
| 216 | std::vector<ObjectIdentifier::Component> res; |
| 217 | res.insert(res.end(), components.begin() + result.propertyIndex, components.end()); |
| 218 | return res; |
| 219 | } |
| 220 | |
| 221 | bool ObjectIdentifier::operator==(const ObjectIdentifier& other) const |
| 222 | { |