mirror of https://github.com/leethomason/tinyxml2
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
240 lines
20 KiB
HTML
240 lines
20 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.10.0"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>TinyXML-2: tinyxml2::XMLAttribute Class Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<script type="text/javascript" src="clipboard.js"></script>
|
|
<script type="text/javascript" src="cookie.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">TinyXML-2<span id="projectnumber"> 10.0.0</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.10.0 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><b>tinyxml2</b></li><li class="navelem"><a class="el" href="classtinyxml2_1_1_x_m_l_attribute.html">XMLAttribute</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="classtinyxml2_1_1_x_m_l_attribute-members.html">List of all members</a> </div>
|
|
<div class="headertitle"><div class="title">tinyxml2::XMLAttribute Class Reference</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p><code>#include <<a class="el" href="tinyxml2_8h_source.html">tinyxml2.h</a>></code></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:a5a5c135d24cce7abda6f17301c6274d8" id="r_a5a5c135d24cce7abda6f17301c6274d8"><td class="memItemLeft" align="right" valign="top"><a id="a5a5c135d24cce7abda6f17301c6274d8" name="a5a5c135d24cce7abda6f17301c6274d8"></a>
|
|
const char * </td><td class="memItemRight" valign="bottom"><b>Name</b> () const</td></tr>
|
|
<tr class="memdesc:a5a5c135d24cce7abda6f17301c6274d8"><td class="mdescLeft"> </td><td class="mdescRight">The name of the attribute. <br /></td></tr>
|
|
<tr class="separator:a5a5c135d24cce7abda6f17301c6274d8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab1c5cd993f836a771818ca408994b14e" id="r_ab1c5cd993f836a771818ca408994b14e"><td class="memItemLeft" align="right" valign="top"><a id="ab1c5cd993f836a771818ca408994b14e" name="ab1c5cd993f836a771818ca408994b14e"></a>
|
|
const char * </td><td class="memItemRight" valign="bottom"><b>Value</b> () const</td></tr>
|
|
<tr class="memdesc:ab1c5cd993f836a771818ca408994b14e"><td class="mdescLeft"> </td><td class="mdescRight">The value of the attribute. <br /></td></tr>
|
|
<tr class="separator:ab1c5cd993f836a771818ca408994b14e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a02d5ea924586e35f9c13857d1671b765" id="r_a02d5ea924586e35f9c13857d1671b765"><td class="memItemLeft" align="right" valign="top"><a id="a02d5ea924586e35f9c13857d1671b765" name="a02d5ea924586e35f9c13857d1671b765"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><b>GetLineNum</b> () const</td></tr>
|
|
<tr class="memdesc:a02d5ea924586e35f9c13857d1671b765"><td class="mdescLeft"> </td><td class="mdescRight">Gets the line number the attribute is in, if the document was parsed from a file. <br /></td></tr>
|
|
<tr class="separator:a02d5ea924586e35f9c13857d1671b765"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa8c7cf4c94a636ae75046658e551614e" id="r_aa8c7cf4c94a636ae75046658e551614e"><td class="memItemLeft" align="right" valign="top"><a id="aa8c7cf4c94a636ae75046658e551614e" name="aa8c7cf4c94a636ae75046658e551614e"></a>
|
|
const <a class="el" href="classtinyxml2_1_1_x_m_l_attribute.html">XMLAttribute</a> * </td><td class="memItemRight" valign="bottom"><b>Next</b> () const</td></tr>
|
|
<tr class="memdesc:aa8c7cf4c94a636ae75046658e551614e"><td class="mdescLeft"> </td><td class="mdescRight">The next attribute in the list. <br /></td></tr>
|
|
<tr class="separator:aa8c7cf4c94a636ae75046658e551614e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:adfa2433f0fdafd5c3880936de9affa80" id="r_adfa2433f0fdafd5c3880936de9affa80"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#adfa2433f0fdafd5c3880936de9affa80">IntValue</a> () const</td></tr>
|
|
<tr class="separator:adfa2433f0fdafd5c3880936de9affa80"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0be5343b08a957c42c02c5d32c35d338" id="r_a0be5343b08a957c42c02c5d32c35d338"><td class="memItemLeft" align="right" valign="top"><a id="a0be5343b08a957c42c02c5d32c35d338" name="a0be5343b08a957c42c02c5d32c35d338"></a>
|
|
unsigned </td><td class="memItemRight" valign="bottom"><b>UnsignedValue</b> () const</td></tr>
|
|
<tr class="memdesc:a0be5343b08a957c42c02c5d32c35d338"><td class="mdescLeft"> </td><td class="mdescRight">Query as an unsigned integer. See <a class="el" href="#adfa2433f0fdafd5c3880936de9affa80">IntValue()</a> <br /></td></tr>
|
|
<tr class="separator:a0be5343b08a957c42c02c5d32c35d338"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a98ce5207344ad33a265b0422addae1ff" id="r_a98ce5207344ad33a265b0422addae1ff"><td class="memItemLeft" align="right" valign="top"><a id="a98ce5207344ad33a265b0422addae1ff" name="a98ce5207344ad33a265b0422addae1ff"></a>
|
|
bool </td><td class="memItemRight" valign="bottom"><b>BoolValue</b> () const</td></tr>
|
|
<tr class="memdesc:a98ce5207344ad33a265b0422addae1ff"><td class="mdescLeft"> </td><td class="mdescRight">Query as a boolean. See <a class="el" href="#adfa2433f0fdafd5c3880936de9affa80">IntValue()</a> <br /></td></tr>
|
|
<tr class="separator:a98ce5207344ad33a265b0422addae1ff"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4aa73513f54ff0087d3e804f0f54e30f" id="r_a4aa73513f54ff0087d3e804f0f54e30f"><td class="memItemLeft" align="right" valign="top"><a id="a4aa73513f54ff0087d3e804f0f54e30f" name="a4aa73513f54ff0087d3e804f0f54e30f"></a>
|
|
double </td><td class="memItemRight" valign="bottom"><b>DoubleValue</b> () const</td></tr>
|
|
<tr class="memdesc:a4aa73513f54ff0087d3e804f0f54e30f"><td class="mdescLeft"> </td><td class="mdescRight">Query as a double. See <a class="el" href="#adfa2433f0fdafd5c3880936de9affa80">IntValue()</a> <br /></td></tr>
|
|
<tr class="separator:a4aa73513f54ff0087d3e804f0f54e30f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a27797b45d21c981257720db94f5f8801" id="r_a27797b45d21c981257720db94f5f8801"><td class="memItemLeft" align="right" valign="top"><a id="a27797b45d21c981257720db94f5f8801" name="a27797b45d21c981257720db94f5f8801"></a>
|
|
float </td><td class="memItemRight" valign="bottom"><b>FloatValue</b> () const</td></tr>
|
|
<tr class="memdesc:a27797b45d21c981257720db94f5f8801"><td class="mdescLeft"> </td><td class="mdescRight">Query as a float. See <a class="el" href="#adfa2433f0fdafd5c3880936de9affa80">IntValue()</a> <br /></td></tr>
|
|
<tr class="separator:a27797b45d21c981257720db94f5f8801"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6d5176260db00ea301c01af8457cd993" id="r_a6d5176260db00ea301c01af8457cd993"><td class="memItemLeft" align="right" valign="top">XMLError </td><td class="memItemRight" valign="bottom"><a class="el" href="#a6d5176260db00ea301c01af8457cd993">QueryIntValue</a> (int *value) const</td></tr>
|
|
<tr class="separator:a6d5176260db00ea301c01af8457cd993"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a48a7f3496f1415832e451bd8d09c9cb9" id="r_a48a7f3496f1415832e451bd8d09c9cb9"><td class="memItemLeft" align="right" valign="top"><a id="a48a7f3496f1415832e451bd8d09c9cb9" name="a48a7f3496f1415832e451bd8d09c9cb9"></a>
|
|
XMLError </td><td class="memItemRight" valign="bottom"><b>QueryUnsignedValue</b> (unsigned int *value) const</td></tr>
|
|
<tr class="memdesc:a48a7f3496f1415832e451bd8d09c9cb9"><td class="mdescLeft"> </td><td class="mdescRight">See QueryIntValue. <br /></td></tr>
|
|
<tr class="separator:a48a7f3496f1415832e451bd8d09c9cb9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4e25344d6e4159026be34dbddf1dcac2" id="r_a4e25344d6e4159026be34dbddf1dcac2"><td class="memItemLeft" align="right" valign="top"><a id="a4e25344d6e4159026be34dbddf1dcac2" name="a4e25344d6e4159026be34dbddf1dcac2"></a>
|
|
XMLError </td><td class="memItemRight" valign="bottom"><b>QueryInt64Value</b> (int64_t *value) const</td></tr>
|
|
<tr class="memdesc:a4e25344d6e4159026be34dbddf1dcac2"><td class="mdescLeft"> </td><td class="mdescRight">See QueryIntValue. <br /></td></tr>
|
|
<tr class="separator:a4e25344d6e4159026be34dbddf1dcac2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:af793c695e7ee65cf20b8010d38b1d157" id="r_af793c695e7ee65cf20b8010d38b1d157"><td class="memItemLeft" align="right" valign="top"><a id="af793c695e7ee65cf20b8010d38b1d157" name="af793c695e7ee65cf20b8010d38b1d157"></a>
|
|
XMLError </td><td class="memItemRight" valign="bottom"><b>QueryUnsigned64Value</b> (uint64_t *value) const</td></tr>
|
|
<tr class="memdesc:af793c695e7ee65cf20b8010d38b1d157"><td class="mdescLeft"> </td><td class="mdescRight">See QueryIntValue. <br /></td></tr>
|
|
<tr class="separator:af793c695e7ee65cf20b8010d38b1d157"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5f32e038954256f61c21ff20fd13a09c" id="r_a5f32e038954256f61c21ff20fd13a09c"><td class="memItemLeft" align="right" valign="top"><a id="a5f32e038954256f61c21ff20fd13a09c" name="a5f32e038954256f61c21ff20fd13a09c"></a>
|
|
XMLError </td><td class="memItemRight" valign="bottom"><b>QueryBoolValue</b> (bool *value) const</td></tr>
|
|
<tr class="memdesc:a5f32e038954256f61c21ff20fd13a09c"><td class="mdescLeft"> </td><td class="mdescRight">See QueryIntValue. <br /></td></tr>
|
|
<tr class="separator:a5f32e038954256f61c21ff20fd13a09c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2aa6e55e8ea03af0609cf6690bff79b9" id="r_a2aa6e55e8ea03af0609cf6690bff79b9"><td class="memItemLeft" align="right" valign="top"><a id="a2aa6e55e8ea03af0609cf6690bff79b9" name="a2aa6e55e8ea03af0609cf6690bff79b9"></a>
|
|
XMLError </td><td class="memItemRight" valign="bottom"><b>QueryDoubleValue</b> (double *value) const</td></tr>
|
|
<tr class="memdesc:a2aa6e55e8ea03af0609cf6690bff79b9"><td class="mdescLeft"> </td><td class="mdescRight">See QueryIntValue. <br /></td></tr>
|
|
<tr class="separator:a2aa6e55e8ea03af0609cf6690bff79b9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a049dea6449a6259b6cfed44a9427b607" id="r_a049dea6449a6259b6cfed44a9427b607"><td class="memItemLeft" align="right" valign="top"><a id="a049dea6449a6259b6cfed44a9427b607" name="a049dea6449a6259b6cfed44a9427b607"></a>
|
|
XMLError </td><td class="memItemRight" valign="bottom"><b>QueryFloatValue</b> (float *value) const</td></tr>
|
|
<tr class="memdesc:a049dea6449a6259b6cfed44a9427b607"><td class="mdescLeft"> </td><td class="mdescRight">See QueryIntValue. <br /></td></tr>
|
|
<tr class="separator:a049dea6449a6259b6cfed44a9427b607"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a406d2c4a13c7af99a65edb59dd9f7581" id="r_a406d2c4a13c7af99a65edb59dd9f7581"><td class="memItemLeft" align="right" valign="top"><a id="a406d2c4a13c7af99a65edb59dd9f7581" name="a406d2c4a13c7af99a65edb59dd9f7581"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>SetAttribute</b> (const char *value)</td></tr>
|
|
<tr class="memdesc:a406d2c4a13c7af99a65edb59dd9f7581"><td class="mdescLeft"> </td><td class="mdescRight">Set the attribute to a string value. <br /></td></tr>
|
|
<tr class="separator:a406d2c4a13c7af99a65edb59dd9f7581"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad86d7d7058d76761c3a80662566a57e5" id="r_ad86d7d7058d76761c3a80662566a57e5"><td class="memItemLeft" align="right" valign="top"><a id="ad86d7d7058d76761c3a80662566a57e5" name="ad86d7d7058d76761c3a80662566a57e5"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>SetAttribute</b> (int value)</td></tr>
|
|
<tr class="memdesc:ad86d7d7058d76761c3a80662566a57e5"><td class="mdescLeft"> </td><td class="mdescRight">Set the attribute to value. <br /></td></tr>
|
|
<tr class="separator:ad86d7d7058d76761c3a80662566a57e5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae70468c0f6df2748ba3529c716999fae" id="r_ae70468c0f6df2748ba3529c716999fae"><td class="memItemLeft" align="right" valign="top"><a id="ae70468c0f6df2748ba3529c716999fae" name="ae70468c0f6df2748ba3529c716999fae"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>SetAttribute</b> (unsigned value)</td></tr>
|
|
<tr class="memdesc:ae70468c0f6df2748ba3529c716999fae"><td class="mdescLeft"> </td><td class="mdescRight">Set the attribute to value. <br /></td></tr>
|
|
<tr class="separator:ae70468c0f6df2748ba3529c716999fae"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7c1240f479722b9aa29b6c030aa116c2" id="r_a7c1240f479722b9aa29b6c030aa116c2"><td class="memItemLeft" align="right" valign="top"><a id="a7c1240f479722b9aa29b6c030aa116c2" name="a7c1240f479722b9aa29b6c030aa116c2"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>SetAttribute</b> (int64_t value)</td></tr>
|
|
<tr class="memdesc:a7c1240f479722b9aa29b6c030aa116c2"><td class="mdescLeft"> </td><td class="mdescRight">Set the attribute to value. <br /></td></tr>
|
|
<tr class="separator:a7c1240f479722b9aa29b6c030aa116c2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a10964060a5c0d92486ecf8705bdf37da" id="r_a10964060a5c0d92486ecf8705bdf37da"><td class="memItemLeft" align="right" valign="top"><a id="a10964060a5c0d92486ecf8705bdf37da" name="a10964060a5c0d92486ecf8705bdf37da"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>SetAttribute</b> (uint64_t value)</td></tr>
|
|
<tr class="memdesc:a10964060a5c0d92486ecf8705bdf37da"><td class="mdescLeft"> </td><td class="mdescRight">Set the attribute to value. <br /></td></tr>
|
|
<tr class="separator:a10964060a5c0d92486ecf8705bdf37da"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab3516def4fe058fe328f2b89fc2d77da" id="r_ab3516def4fe058fe328f2b89fc2d77da"><td class="memItemLeft" align="right" valign="top"><a id="ab3516def4fe058fe328f2b89fc2d77da" name="ab3516def4fe058fe328f2b89fc2d77da"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>SetAttribute</b> (bool value)</td></tr>
|
|
<tr class="memdesc:ab3516def4fe058fe328f2b89fc2d77da"><td class="mdescLeft"> </td><td class="mdescRight">Set the attribute to value. <br /></td></tr>
|
|
<tr class="separator:ab3516def4fe058fe328f2b89fc2d77da"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9a65ab3147abe8ccbbd373ce8791e818" id="r_a9a65ab3147abe8ccbbd373ce8791e818"><td class="memItemLeft" align="right" valign="top"><a id="a9a65ab3147abe8ccbbd373ce8791e818" name="a9a65ab3147abe8ccbbd373ce8791e818"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>SetAttribute</b> (double value)</td></tr>
|
|
<tr class="memdesc:a9a65ab3147abe8ccbbd373ce8791e818"><td class="mdescLeft"> </td><td class="mdescRight">Set the attribute to value. <br /></td></tr>
|
|
<tr class="separator:a9a65ab3147abe8ccbbd373ce8791e818"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae95e843313aaf5d56c32530b6456df02" id="r_ae95e843313aaf5d56c32530b6456df02"><td class="memItemLeft" align="right" valign="top"><a id="ae95e843313aaf5d56c32530b6456df02" name="ae95e843313aaf5d56c32530b6456df02"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>SetAttribute</b> (float value)</td></tr>
|
|
<tr class="memdesc:ae95e843313aaf5d56c32530b6456df02"><td class="mdescLeft"> </td><td class="mdescRight">Set the attribute to value. <br /></td></tr>
|
|
<tr class="separator:ae95e843313aaf5d56c32530b6456df02"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.</p>
|
|
<dl class="section note"><dt>Note</dt><dd>The attributes are not XMLNodes. You may only query the <a class="el" href="#aa8c7cf4c94a636ae75046658e551614e" title="The next attribute in the list.">Next()</a> attribute in a list. </dd></dl>
|
|
</div><h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="adfa2433f0fdafd5c3880936de9affa80" name="adfa2433f0fdafd5c3880936de9affa80"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#adfa2433f0fdafd5c3880936de9affa80">◆ </a></span>IntValue()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int tinyxml2::XMLAttribute::IntValue </td>
|
|
<td>(</td>
|
|
<td class="paramname"><span class="paramname"></span></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>IntValue interprets the attribute as an integer, and returns the value. If the value isn't an integer, 0 will be returned. There is no error checking; use <a class="el" href="#a6d5176260db00ea301c01af8457cd993">QueryIntValue()</a> if you need error checking. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a6d5176260db00ea301c01af8457cd993" name="a6d5176260db00ea301c01af8457cd993"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a6d5176260db00ea301c01af8457cd993">◆ </a></span>QueryIntValue()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">XMLError tinyxml2::XMLAttribute::QueryIntValue </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int *</td> <td class="paramname"><span class="paramname"><em>value</em></span></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>QueryIntValue interprets the attribute as an integer, and returns the value in the provided parameter. The function will return XML_SUCCESS on success, and XML_WRONG_ATTRIBUTE_TYPE if the conversion is not successful. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="tinyxml2_8h_source.html">tinyxml2.h</a></li>
|
|
</ul>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Sat Dec 30 2023 18:02:35 for TinyXML-2 by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0
|
|
</small></address>
|
|
</body>
|
|
</html>
|