| 85 | } |
| 86 | |
| 87 | std::string InfoNode::AsString() const { |
| 88 | if (_index < _tree->_nodeOrInfos.size()) { |
| 89 | if (_tree->_nodeOrInfos[_index].Kind == InfoKind::String) { |
| 90 | return _tree->_stringValues[_tree->_nodeOrInfos[_index].Data.StringIndex]; |
| 91 | } |
| 92 | } |
| 93 | return ""; |
| 94 | } |
| 95 | |
| 96 | double InfoNode::AsDouble() const { |
| 97 | if (_index < _tree->_nodeOrInfos.size()) { |