return _target;
} else {
_target = find_node_by_value(getRootNode(), _value->getAlias());
+ return _target;
}
}
// FIXME: const cast
_target =
find_node_by_value((SGPropertyNode *)getRootNode(), _value->getAlias());
+ return _target;
}
}
return path;
}
-SGValue::Type
+SGPropertyNode::Type
SGPropertyNode::getType () const
{
if (_value != 0)
- return _value->getType();
+ return (Type)(_value->getType());
else
- return SGValue::UNKNOWN;
+ return UNKNOWN;
}
/**
* Get the value type for another node.
*/
-SGValue::Type
+SGPropertyNode::Type
SGPropertyNode::getType (const string &relative_path) const
{
const SGPropertyNode * node = getNode(relative_path);
- return (node == 0 ? SGValue::UNKNOWN : node->getType());
+ return (node == 0 ? UNKNOWN : (Type)(node->getType()));
}