shaka-packager/docs/d1/d31/classshaka_1_1xml_1_1XmlNod...

461 lines
25 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">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Shaka Packager SDK: shaka::xml::XmlNode 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>
<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 style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Shaka Packager SDK
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
/* @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:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(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">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="../../d8/daf/namespaceshaka.html">shaka</a></li><li class="navelem"><b>xml</b></li><li class="navelem"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html">XmlNode</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="../../dc/d40/classshaka_1_1xml_1_1XmlNode-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">shaka::xml::XmlNode Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="../../dd/de7/xml__node_8h_source.html">xml_node.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for shaka::xml::XmlNode:</div>
<div class="dyncontent">
<div class="center">
<img src="../../d1/d31/classshaka_1_1xml_1_1XmlNode.png" usemap="#shaka::xml::XmlNode_map" alt=""/>
<map id="shaka::xml::XmlNode_map" name="shaka::xml::XmlNode_map">
<area href="../../dd/db9/classshaka_1_1xml_1_1RepresentationBaseXmlNode.html" alt="shaka::xml::RepresentationBaseXmlNode" shape="rect" coords="124,56,362,80"/>
<area href="../../d1/de7/classshaka_1_1xml_1_1AdaptationSetXmlNode.html" title="AdaptationSetType specified in MPD." alt="shaka::xml::AdaptationSetXmlNode" shape="rect" coords="0,112,238,136"/>
<area href="../../df/d9e/classshaka_1_1xml_1_1RepresentationXmlNode.html" title="RepresentationType in MPD." alt="shaka::xml::RepresentationXmlNode" shape="rect" coords="248,112,486,136"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a99c8998d8f53f0d37c3c22aec0d693eb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#a99c8998d8f53f0d37c3c22aec0d693eb">XmlNode</a> (const std::string &amp;name)</td></tr>
<tr class="separator:a99c8998d8f53f0d37c3c22aec0d693eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a508594f17e1f41462342e46f14673d"><td class="memItemLeft" align="right" valign="top"><a id="a8a508594f17e1f41462342e46f14673d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>XmlNode</b> (<a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html">XmlNode</a> &amp;&amp;)</td></tr>
<tr class="separator:a8a508594f17e1f41462342e46f14673d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22d3e27f5ae461853247a3414758e316"><td class="memItemLeft" align="right" valign="top"><a id="a22d3e27f5ae461853247a3414758e316"></a>
<a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html">XmlNode</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (<a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html">XmlNode</a> &amp;&amp;)</td></tr>
<tr class="separator:a22d3e27f5ae461853247a3414758e316"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a224400ce2dd8168ef7d8d4f47998600c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#a224400ce2dd8168ef7d8d4f47998600c">AddChild</a> (<a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html">XmlNode</a> child) WARN_UNUSED_RESULT</td></tr>
<tr class="separator:a224400ce2dd8168ef7d8d4f47998600c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb764dde412a8ac6137fef1500767553"><td class="memItemLeft" align="right" valign="top"><a id="adb764dde412a8ac6137fef1500767553"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#adb764dde412a8ac6137fef1500767553">AddElements</a> (const std::vector&lt; <a class="el" href="../../de/da9/structshaka_1_1Element.html">Element</a> &gt; &amp;elements) WARN_UNUSED_RESULT</td></tr>
<tr class="memdesc:adb764dde412a8ac6137fef1500767553"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds Elements to this node using the <a class="el" href="../../de/da9/structshaka_1_1Element.html">Element</a> struct. <br /></td></tr>
<tr class="separator:adb764dde412a8ac6137fef1500767553"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa30909ee27d10b448c6706ceba01ace7"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#aa30909ee27d10b448c6706ceba01ace7">SetStringAttribute</a> (const std::string &amp;attribute_name, const std::string &amp;attribute) WARN_UNUSED_RESULT</td></tr>
<tr class="separator:aa30909ee27d10b448c6706ceba01ace7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d216627fb556f526df48a61a921a115"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#a8d216627fb556f526df48a61a921a115">SetIntegerAttribute</a> (const std::string &amp;attribute_name, uint64_t number) WARN_UNUSED_RESULT</td></tr>
<tr class="separator:a8d216627fb556f526df48a61a921a115"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a882ff956a58d2a43d763692ce830d286"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#a882ff956a58d2a43d763692ce830d286">SetFloatingPointAttribute</a> (const std::string &amp;attribute_name, double number) WARN_UNUSED_RESULT</td></tr>
<tr class="separator:a882ff956a58d2a43d763692ce830d286"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9f818024466c4dcce3026a9e7f439a3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#ad9f818024466c4dcce3026a9e7f439a3">SetId</a> (uint32_t id) WARN_UNUSED_RESULT</td></tr>
<tr class="separator:ad9f818024466c4dcce3026a9e7f439a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54ce31ffe673463dfa6133bb2868a846"><td class="memItemLeft" align="right" valign="top"><a id="a54ce31ffe673463dfa6133bb2868a846"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#a54ce31ffe673463dfa6133bb2868a846">AddContent</a> (const std::string &amp;content)</td></tr>
<tr class="memdesc:a54ce31ffe673463dfa6133bb2868a846"><td class="mdescLeft">&#160;</td><td class="mdescRight">Similar to SetContent, but appends to the end of existing content. <br /></td></tr>
<tr class="separator:a54ce31ffe673463dfa6133bb2868a846"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73d758186470e7dbcb4f4339eb53458c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#a73d758186470e7dbcb4f4339eb53458c">SetContent</a> (const std::string &amp;content)</td></tr>
<tr class="separator:a73d758186470e7dbcb4f4339eb53458c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a386a3bf89fe34f30d856c8fd0f36cba3"><td class="memItemLeft" align="right" valign="top">std::set&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#a386a3bf89fe34f30d856c8fd0f36cba3">ExtractReferencedNamespaces</a> () const</td></tr>
<tr class="separator:a386a3bf89fe34f30d856c8fd0f36cba3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef2471579573cb910d2f3d32d6e0afe0"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#aef2471579573cb910d2f3d32d6e0afe0">ToString</a> (const std::string &amp;comment) const</td></tr>
<tr class="separator:aef2471579573cb910d2f3d32d6e0afe0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3bcc7c628fb40f44205a9b2cc732097"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#ab3bcc7c628fb40f44205a9b2cc732097">GetAttribute</a> (const std::string &amp;name, std::string *value) const</td></tr>
<tr class="separator:ab3bcc7c628fb40f44205a9b2cc732097"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a5e3aca2c3f6ee912c2a437daac0e755c"><td class="memItemLeft" align="right" valign="top"><a id="a5e3aca2c3f6ee912c2a437daac0e755c"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>shaka::XmlEqual</b> (const std::string &amp;xml1, const <a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html">xml::XmlNode</a> &amp;xml2)</td></tr>
<tr class="separator:a5e3aca2c3f6ee912c2a437daac0e755c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>These classes are wrapper classes for XML elements for generating MPD. None of the pointer parameters should be NULL. None of the methods are meant to be overridden. </p>
<p class="definition">Definition at line <a class="el" href="../../dd/de7/xml__node_8h_source.html#l00044">44</a> of file <a class="el" href="../../dd/de7/xml__node_8h_source.html">xml_node.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a99c8998d8f53f0d37c3c22aec0d693eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a99c8998d8f53f0d37c3c22aec0d693eb">&#9670;&nbsp;</a></span>XmlNode()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">shaka::xml::XmlNode::XmlNode </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Make an XML element. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>is the name of the element, which should not be NULL. </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="../../df/d96/xml__node_8cc_source.html#l00130">130</a> of file <a class="el" href="../../df/d96/xml__node_8cc_source.html">xml_node.cc</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a224400ce2dd8168ef7d8d4f47998600c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a224400ce2dd8168ef7d8d4f47998600c">&#9670;&nbsp;</a></span>AddChild()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool shaka::xml::XmlNode::AddChild </td>
<td>(</td>
<td class="paramtype"><a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html">XmlNode</a>&#160;</td>
<td class="paramname"><em>child</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add a child element to this element. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">child</td><td>is an <a class="el" href="../../d1/d31/classshaka_1_1xml_1_1XmlNode.html">XmlNode</a> to add as a child for this element. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true on success, false otherwise. </dd></dl>
<p class="definition">Definition at line <a class="el" href="../../df/d96/xml__node_8cc_source.html#l00141">141</a> of file <a class="el" href="../../df/d96/xml__node_8cc_source.html">xml_node.cc</a>.</p>
</div>
</div>
<a id="a386a3bf89fe34f30d856c8fd0f36cba3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a386a3bf89fe34f30d856c8fd0f36cba3">&#9670;&nbsp;</a></span>ExtractReferencedNamespaces()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::set&lt; std::string &gt; shaka::xml::XmlNode::ExtractReferencedNamespaces </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>namespaces used in the node and its descendents. </dd></dl>
<p class="definition">Definition at line <a class="el" href="../../df/d96/xml__node_8cc_source.html#l00219">219</a> of file <a class="el" href="../../df/d96/xml__node_8cc_source.html">xml_node.cc</a>.</p>
</div>
</div>
<a id="ab3bcc7c628fb40f44205a9b2cc732097"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3bcc7c628fb40f44205a9b2cc732097">&#9670;&nbsp;</a></span>GetAttribute()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool shaka::xml::XmlNode::GetAttribute </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::string *&#160;</td>
<td class="paramname"><em>value</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the attribute with the given name. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>The name of the attribute to get. </td></tr>
<tr><td class="paramname">value</td><td>[OUT] where to put the resulting value. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if the attribute exists, false if not. </dd></dl>
<p class="definition">Definition at line <a class="el" href="../../df/d96/xml__node_8cc_source.html#l00249">249</a> of file <a class="el" href="../../df/d96/xml__node_8cc_source.html">xml_node.cc</a>.</p>
</div>
</div>
<a id="a73d758186470e7dbcb4f4339eb53458c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a73d758186470e7dbcb4f4339eb53458c">&#9670;&nbsp;</a></span>SetContent()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void shaka::xml::XmlNode::SetContent </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>content</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the contents of an XML element using a string. This cannot set child elements because &lt;&gt; will become &lt; and This should be used to set the text for the element, e.g. setting a URL for &lt;BaseURL&gt; element. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">content</td><td>is a string containing the text-encoded child elements to be added to the element. </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="../../df/d96/xml__node_8cc_source.html#l00214">214</a> of file <a class="el" href="../../df/d96/xml__node_8cc_source.html">xml_node.cc</a>.</p>
</div>
</div>
<a id="a882ff956a58d2a43d763692ce830d286"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a882ff956a58d2a43d763692ce830d286">&#9670;&nbsp;</a></span>SetFloatingPointAttribute()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool shaka::xml::XmlNode::SetFloatingPointAttribute </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>attribute_name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>number</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set a floating point number attribute. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">attribute_name</td><td>is the name of the attribute to set. </td></tr>
<tr><td class="paramname">number</td><td>is the value (rhs) of the attribute. </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="../../df/d96/xml__node_8cc_source.html#l00198">198</a> of file <a class="el" href="../../df/d96/xml__node_8cc_source.html">xml_node.cc</a>.</p>
</div>
</div>
<a id="ad9f818024466c4dcce3026a9e7f439a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad9f818024466c4dcce3026a9e7f439a3">&#9670;&nbsp;</a></span>SetId()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool shaka::xml::XmlNode::SetId </td>
<td>(</td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>id</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets 'id=<em>id'</em> attribute. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">id</td><td>is the ID for this element. </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="../../df/d96/xml__node_8cc_source.html#l00205">205</a> of file <a class="el" href="../../df/d96/xml__node_8cc_source.html">xml_node.cc</a>.</p>
</div>
</div>
<a id="a8d216627fb556f526df48a61a921a115"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d216627fb556f526df48a61a921a115">&#9670;&nbsp;</a></span>SetIntegerAttribute()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool shaka::xml::XmlNode::SetIntegerAttribute </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>attribute_name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint64_t&#160;</td>
<td class="paramname"><em>number</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets an integer attribute. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">attribute_name</td><td>The name (lhs) of the attribute. </td></tr>
<tr><td class="paramname">number</td><td>The value (rhs) of the attribute. </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="../../df/d96/xml__node_8cc_source.html#l00191">191</a> of file <a class="el" href="../../df/d96/xml__node_8cc_source.html">xml_node.cc</a>.</p>
</div>
</div>
<a id="aa30909ee27d10b448c6706ceba01ace7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa30909ee27d10b448c6706ceba01ace7">&#9670;&nbsp;</a></span>SetStringAttribute()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool shaka::xml::XmlNode::SetStringAttribute </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>attribute_name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>attribute</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set a string attribute. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">attribute_name</td><td>The name (lhs) of the attribute. </td></tr>
<tr><td class="paramname">attribute</td><td>The value (rhs) of the attribute. </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="../../df/d96/xml__node_8cc_source.html#l00184">184</a> of file <a class="el" href="../../df/d96/xml__node_8cc_source.html">xml_node.cc</a>.</p>
</div>
</div>
<a id="aef2471579573cb910d2f3d32d6e0afe0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef2471579573cb910d2f3d32d6e0afe0">&#9670;&nbsp;</a></span>ToString()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string shaka::xml::XmlNode::ToString </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>comment</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">comment</td><td>The body of a comment to add to the top of the XML. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A string containing the XML. </dd></dl>
<p class="definition">Definition at line <a class="el" href="../../df/d96/xml__node_8cc_source.html#l00225">225</a> of file <a class="el" href="../../df/d96/xml__node_8cc_source.html">xml_node.cc</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>packager/mpd/base/xml/<a class="el" href="../../dd/de7/xml__node_8h_source.html">xml_node.h</a></li>
<li>packager/mpd/base/xml/<a class="el" href="../../df/d96/xml__node_8cc_source.html">xml_node.cc</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 22 2021 00:16:07 for Shaka Packager SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>