}
HLADataElement::IndexPathPair
-HLAObjectClass::getIndexPathPair(const HLADataElement::AttributePathPair& attributePathPair) const
+HLAObjectClass::getIndexPathPair(const HLADataElement::StringPathPair& stringPathPair) const
{
- unsigned index = getAttributeIndex(attributePathPair.first);
+ unsigned index = getAttributeIndex(stringPathPair.first);
if (getNumAttributes() <= index) {
SG_LOG(SG_NETWORK, SG_ALERT, "HLAObjectClass::getIndexPathPair(\""
- << HLADataElement::toString(attributePathPair)
- << "\"): Could not resolve attribute \"" << attributePathPair.first
+ << HLADataElement::toString(stringPathPair)
+ << "\"): Could not resolve attribute \"" << stringPathPair.first
<< "\" for object class \"" << getName() << "\"!");
}
- return HLADataElement::IndexPathPair(index, attributePathPair.second);
+ return HLADataElement::IndexPathPair(index, stringPathPair.second);
}
HLADataElement::IndexPathPair
HLAObjectClass::getIndexPathPair(const std::string& path) const
{
- return getIndexPathPair(HLADataElement::toAttributePathPair(path));
+ return getIndexPathPair(HLADataElement::toStringPathPair(path));
}
bool