| 1774 | |
| 1775 | |
| 1776 | XMLError XMLElement::QueryFloatText( float* fval ) const |
| 1777 | { |
| 1778 | if ( FirstChild() && FirstChild()->ToText() ) { |
| 1779 | const char* t = FirstChild()->Value(); |
| 1780 | if ( XMLUtil::ToFloat( t, fval ) ) { |
| 1781 | return XML_SUCCESS; |
| 1782 | } |
| 1783 | return XML_CAN_NOT_CONVERT_TEXT; |
| 1784 | } |
| 1785 | return XML_NO_TEXT_NODE; |
| 1786 | } |
| 1787 | |
| 1788 | int XMLElement::IntText(int defaultValue) const |
| 1789 | { |
nothing calls this directly
no test coverage detected