2021-04-10 04:00:37 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2015-10-16 00:33:37 +00:00
< 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" / >
2021-06-22 00:16:40 +00:00
< meta name = "generator" content = "Doxygen 1.8.17" / >
2018-02-10 23:37:42 +00:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
2017-09-20 02:35:05 +00:00
< title > Shaka Packager SDK: shaka::xml::XmlNode Class Reference< / title >
2015-10-16 00:33:37 +00:00
< 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" / >
2018-02-10 23:37:42 +00:00
< script type = "text/javascript" src = "../../search/searchdata.js" > < / script >
2015-10-16 00:33:37 +00:00
< 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;" >
2018-02-10 23:37:42 +00:00
< td id = "projectalign" style = "padding-left: 0.5em;" >
2017-09-20 02:35:05 +00:00
< div id = "projectname" > Shaka Packager SDK
2015-10-16 00:33:37 +00:00
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2021-06-22 00:16:40 +00:00
<!-- Generated by Doxygen 1.8.17 -->
2015-10-16 00:33:37 +00:00
< script type = "text/javascript" >
2021-04-10 04:00:37 +00:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
2021-06-22 00:16:40 +00:00
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
2021-04-10 04:00:37 +00:00
/* @license-end */
2015-10-16 00:33:37 +00:00
< / script >
2018-02-10 23:37:42 +00:00
< script type = "text/javascript" src = "../../menudata.js" > < / script >
< script type = "text/javascript" src = "../../menu.js" > < / script >
< script type = "text/javascript" >
2021-04-10 04:00:37 +00:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
2018-02-10 23:37:42 +00:00
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
2021-04-10 04:00:37 +00:00
/* @license-end */< / script >
2018-02-10 23:37:42 +00:00
< div id = "main-nav" > < / div >
2015-10-16 00:33:37 +00:00
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
2018-02-10 23:37:42 +00:00
< / div >
2015-10-16 00:33:37 +00:00
<!-- 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 >
2016-05-24 23:43:16 +00:00
< 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 >
2015-10-16 00:33:37 +00:00
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > |
2021-04-10 04:00:37 +00:00
< a href = "#friends" > Friends< / a > |
2016-05-24 23:43:16 +00:00
< a href = "../../dc/d40/classshaka_1_1xml_1_1XmlNode-members.html" > List of all members< / a > < / div >
2015-10-16 00:33:37 +00:00
< div class = "headertitle" >
2016-05-24 23:43:16 +00:00
< div class = "title" > shaka::xml::XmlNode Class Reference< / div > < / div >
2015-10-16 00:33:37 +00:00
< / div > <!-- header -->
< div class = "contents" >
< p > < code > #include < < a class = "el" href = "../../dd/de7/xml__node_8h_source.html" > xml_node.h< / a > > < / code > < / p >
< div class = "dynheader" >
2016-05-24 23:43:16 +00:00
Inheritance diagram for shaka::xml::XmlNode:< / div >
2015-10-16 00:33:37 +00:00
< div class = "dyncontent" >
< div class = "center" >
2016-05-24 23:43:16 +00:00
< 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" / >
2021-04-10 04:00:37 +00:00
< 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 >
2015-10-16 00:33:37 +00:00
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
2021-04-10 04:00:37 +00:00
< tr class = "memitem:a99c8998d8f53f0d37c3c22aec0d693eb" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#a99c8998d8f53f0d37c3c22aec0d693eb" > XmlNode< / a > (const std::string & name)< / td > < / tr >
< tr class = "separator:a99c8998d8f53f0d37c3c22aec0d693eb" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a8a508594f17e1f41462342e46f14673d" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a8a508594f17e1f41462342e46f14673d" > < / a >
  < / td > < td class = "memItemRight" valign = "bottom" > < b > XmlNode< / b > (< a class = "el" href = "../../d1/d31/classshaka_1_1xml_1_1XmlNode.html" > XmlNode< / a > & & )< / td > < / tr >
< tr class = "separator:a8a508594f17e1f41462342e46f14673d" > < td class = "memSeparator" colspan = "2" >   < / 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 > &   < / td > < td class = "memItemRight" valign = "bottom" > < b > operator=< / b > (< a class = "el" href = "../../d1/d31/classshaka_1_1xml_1_1XmlNode.html" > XmlNode< / a > & & )< / td > < / tr >
< tr class = "separator:a22d3e27f5ae461853247a3414758e316" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a224400ce2dd8168ef7d8d4f47998600c" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / 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" >   < / td > < / tr >
< tr class = "memitem:adb764dde412a8ac6137fef1500767553" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "adb764dde412a8ac6137fef1500767553" > < / a >
bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#adb764dde412a8ac6137fef1500767553" > AddElements< / a > (const std::vector< < a class = "el" href = "../../de/da9/structshaka_1_1Element.html" > Element< / a > > & elements) WARN_UNUSED_RESULT< / td > < / tr >
< tr class = "memdesc:adb764dde412a8ac6137fef1500767553" > < td class = "mdescLeft" >   < / 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" >   < / td > < / tr >
< tr class = "memitem:aa30909ee27d10b448c6706ceba01ace7" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#aa30909ee27d10b448c6706ceba01ace7" > SetStringAttribute< / a > (const std::string & attribute_name, const std::string & attribute) WARN_UNUSED_RESULT< / td > < / tr >
< tr class = "separator:aa30909ee27d10b448c6706ceba01ace7" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a8d216627fb556f526df48a61a921a115" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#a8d216627fb556f526df48a61a921a115" > SetIntegerAttribute< / a > (const std::string & attribute_name, uint64_t number) WARN_UNUSED_RESULT< / td > < / tr >
< tr class = "separator:a8d216627fb556f526df48a61a921a115" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a882ff956a58d2a43d763692ce830d286" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#a882ff956a58d2a43d763692ce830d286" > SetFloatingPointAttribute< / a > (const std::string & attribute_name, double number) WARN_UNUSED_RESULT< / td > < / tr >
< tr class = "separator:a882ff956a58d2a43d763692ce830d286" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ad9f818024466c4dcce3026a9e7f439a3" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / 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" >   < / td > < / tr >
< tr class = "memitem:a54ce31ffe673463dfa6133bb2868a846" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a54ce31ffe673463dfa6133bb2868a846" > < / a >
void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#a54ce31ffe673463dfa6133bb2868a846" > AddContent< / a > (const std::string & content)< / td > < / tr >
< tr class = "memdesc:a54ce31ffe673463dfa6133bb2868a846" > < td class = "mdescLeft" >   < / 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" >   < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "memitem:a73d758186470e7dbcb4f4339eb53458c" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#a73d758186470e7dbcb4f4339eb53458c" > SetContent< / a > (const std::string & content)< / td > < / tr >
< tr class = "separator:a73d758186470e7dbcb4f4339eb53458c" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2021-04-10 04:00:37 +00:00
< tr class = "memitem:a386a3bf89fe34f30d856c8fd0f36cba3" > < td class = "memItemLeft" align = "right" valign = "top" > std::set< std::string >   < / 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" >   < / td > < / tr >
< tr class = "memitem:aef2471579573cb910d2f3d32d6e0afe0" > < td class = "memItemLeft" align = "right" valign = "top" > std::string  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#aef2471579573cb910d2f3d32d6e0afe0" > ToString< / a > (const std::string & comment) const< / td > < / tr >
< tr class = "separator:aef2471579573cb910d2f3d32d6e0afe0" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ab3bcc7c628fb40f44205a9b2cc732097" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d1/d31/classshaka_1_1xml_1_1XmlNode.html#ab3bcc7c628fb40f44205a9b2cc732097" > GetAttribute< / a > (const std::string & name, std::string *value) const< / td > < / tr >
< tr class = "separator:ab3bcc7c628fb40f44205a9b2cc732097" > < td class = "memSeparator" colspan = "2" >   < / 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  < / td > < td class = "memItemRight" valign = "bottom" > < b > shaka::XmlEqual< / b > (const std::string & xml1, const < a class = "el" href = "../../d1/d31/classshaka_1_1xml_1_1XmlNode.html" > xml::XmlNode< / a > & xml2)< / td > < / tr >
< tr class = "separator:a5e3aca2c3f6ee912c2a437daac0e755c" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-16 00:33:37 +00:00
< / 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 >
2021-04-10 04:00:37 +00:00
< 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 >
2015-10-16 00:33:37 +00:00
< / div > < h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
2021-04-10 04:00:37 +00:00
< a id = "a99c8998d8f53f0d37c3c22aec0d693eb" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a99c8998d8f53f0d37c3c22aec0d693eb" > ◆ < / a > < / span > XmlNode()< / h2 >
2018-02-10 23:37:42 +00:00
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > shaka::xml::XmlNode::XmlNode < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
2021-04-10 04:00:37 +00:00
< td class = "paramtype" > const std::string &   < / td >
2015-10-16 00:33:37 +00:00
< 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" >
2018-02-10 23:37:42 +00:00
< p > Make an XML element. < / p > < dl class = "params" > < dt > Parameters< / dt > < dd >
2015-10-16 00:33:37 +00:00
< 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 >
2021-06-11 04:44:53 +00:00
< 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 >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
2021-04-10 04:00:37 +00:00
< a id = "a224400ce2dd8168ef7d8d4f47998600c" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a224400ce2dd8168ef7d8d4f47998600c" > ◆ < / a > < / span > AddChild()< / h2 >
2018-02-10 23:37:42 +00:00
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > bool shaka::xml::XmlNode::AddChild < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
2021-04-10 04:00:37 +00:00
< td class = "paramtype" > < a class = "el" href = "../../d1/d31/classshaka_1_1xml_1_1XmlNode.html" > XmlNode< / a >   < / td >
2015-10-16 00:33:37 +00:00
< td class = "paramname" > < em > child< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-02-10 23:37:42 +00:00
< p > Add a child element to this element. < / p > < dl class = "params" > < dt > Parameters< / dt > < dd >
2015-10-16 00:33:37 +00:00
< table class = "params" >
2021-04-10 04:00:37 +00:00
< 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 >
2015-10-16 00:33:37 +00:00
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > true on success, false otherwise. < / dd > < / dl >
2021-06-11 04:44:53 +00:00
< 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 >
2018-12-20 22:38:40 +00:00
< / div >
< / div >
2021-04-10 04:00:37 +00:00
< a id = "a386a3bf89fe34f30d856c8fd0f36cba3" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a386a3bf89fe34f30d856c8fd0f36cba3" > ◆ < / a > < / span > ExtractReferencedNamespaces()< / h2 >
2018-12-20 22:38:40 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > std::set< std::string > shaka::xml::XmlNode::ExtractReferencedNamespaces < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
2021-04-10 04:00:37 +00:00
< td > const< / td >
2018-12-20 22:38:40 +00:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
< dl class = "section return" > < dt > Returns< / dt > < dd > namespaces used in the node and its descendents. < / dd > < / dl >
2021-06-11 04:44:53 +00:00
< 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 >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2021-04-10 04:00:37 +00:00
< a id = "ab3bcc7c628fb40f44205a9b2cc732097" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ab3bcc7c628fb40f44205a9b2cc732097" > ◆ < / a > < / span > GetAttribute()< / h2 >
2018-02-10 23:37:42 +00:00
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2021-04-10 04:00:37 +00:00
< td class = "memname" > bool shaka::xml::XmlNode::GetAttribute < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
2021-04-10 04:00:37 +00:00
< td class = "paramtype" > const std::string &   < / td >
< td class = "paramname" > < em > name< / em > , < / td >
2015-10-16 00:33:37 +00:00
< / tr >
< tr >
2021-04-10 04:00:37 +00:00
< td class = "paramkey" > < / td >
2015-10-16 00:33:37 +00:00
< td > < / td >
2021-04-10 04:00:37 +00:00
< td class = "paramtype" > std::string *  < / td >
< td class = "paramname" > < em > value< / em >   < / td >
2015-10-16 00:33:37 +00:00
< / tr >
< tr >
< td > < / td >
2021-04-10 04:00:37 +00:00
< td > )< / td >
< td > < / td > < td > const< / td >
2015-10-16 00:33:37 +00:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2021-04-10 04:00:37 +00:00
< 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 >
2015-10-16 00:33:37 +00:00
2021-06-11 04:44:53 +00:00
< 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 >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2018-02-10 23:37:42 +00:00
< a id = "a73d758186470e7dbcb4f4339eb53458c" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a73d758186470e7dbcb4f4339eb53458c" > ◆ < / a > < / span > SetContent()< / h2 >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > void shaka::xml::XmlNode::SetContent < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > const std::string &   < / td >
< td class = "paramname" > < em > content< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-02-10 23:37:42 +00:00
< p > Set the contents of an XML element using a string. This cannot set child elements because < > will become < and This should be used to set the text for the element, e.g. setting a URL for < BaseURL> element. < / p > < dl class = "params" > < dt > Parameters< / dt > < dd >
2015-10-16 00:33:37 +00:00
< 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 >
2021-06-11 04:44:53 +00:00
< 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 >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2021-04-10 04:00:37 +00:00
< a id = "a882ff956a58d2a43d763692ce830d286" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a882ff956a58d2a43d763692ce830d286" > ◆ < / a > < / span > SetFloatingPointAttribute()< / h2 >
2018-02-10 23:37:42 +00:00
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2021-04-10 04:00:37 +00:00
< td class = "memname" > bool shaka::xml::XmlNode::SetFloatingPointAttribute < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
2021-04-10 04:00:37 +00:00
< td class = "paramtype" > const std::string &   < / td >
2015-10-16 00:33:37 +00:00
< td class = "paramname" > < em > attribute_name< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > double  < / td >
< td class = "paramname" > < em > number< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-02-10 23:37:42 +00:00
< p > Set a floating point number attribute. < / p > < dl class = "params" > < dt > Parameters< / dt > < dd >
2015-10-16 00:33:37 +00:00
< 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 >
2021-06-11 04:44:53 +00:00
< 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 >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2021-04-10 04:00:37 +00:00
< a id = "ad9f818024466c4dcce3026a9e7f439a3" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ad9f818024466c4dcce3026a9e7f439a3" > ◆ < / a > < / span > SetId()< / h2 >
2018-02-10 23:37:42 +00:00
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2021-04-10 04:00:37 +00:00
< td class = "memname" > bool shaka::xml::XmlNode::SetId < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > id< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-02-10 23:37:42 +00:00
< p > Sets 'id=< em > id'< / em > attribute. < / p > < dl class = "params" > < dt > Parameters< / dt > < dd >
2015-10-16 00:33:37 +00:00
< table class = "params" >
< tr > < td class = "paramname" > id< / td > < td > is the ID for this element. < / td > < / tr >
< / table >
< / dd >
< / dl >
2021-06-11 04:44:53 +00:00
< 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 >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2021-04-10 04:00:37 +00:00
< a id = "a8d216627fb556f526df48a61a921a115" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a8d216627fb556f526df48a61a921a115" > ◆ < / a > < / span > SetIntegerAttribute()< / h2 >
2018-02-10 23:37:42 +00:00
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2021-04-10 04:00:37 +00:00
< td class = "memname" > bool shaka::xml::XmlNode::SetIntegerAttribute < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
2021-04-10 04:00:37 +00:00
< td class = "paramtype" > const std::string &   < / td >
2015-10-16 00:33:37 +00:00
< td class = "paramname" > < em > attribute_name< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint64_t  < / td >
< td class = "paramname" > < em > number< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-02-10 23:37:42 +00:00
< p > Sets an integer attribute. < / p > < dl class = "params" > < dt > Parameters< / dt > < dd >
2015-10-16 00:33:37 +00:00
< 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 >
2021-06-11 04:44:53 +00:00
< 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 >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2021-04-10 04:00:37 +00:00
< a id = "aa30909ee27d10b448c6706ceba01ace7" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aa30909ee27d10b448c6706ceba01ace7" > ◆ < / a > < / span > SetStringAttribute()< / h2 >
2018-02-10 23:37:42 +00:00
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2021-04-10 04:00:37 +00:00
< td class = "memname" > bool shaka::xml::XmlNode::SetStringAttribute < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
2021-04-10 04:00:37 +00:00
< td class = "paramtype" > const std::string &   < / td >
2015-10-16 00:33:37 +00:00
< td class = "paramname" > < em > attribute_name< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const std::string &   < / td >
< td class = "paramname" > < em > attribute< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-02-10 23:37:42 +00:00
< p > Set a string attribute. < / p > < dl class = "params" > < dt > Parameters< / dt > < dd >
2015-10-16 00:33:37 +00:00
< 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 >
2021-06-11 04:44:53 +00:00
< 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 >
2021-04-10 04:00:37 +00:00
< / div >
< / div >
< a id = "aef2471579573cb910d2f3d32d6e0afe0" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aef2471579573cb910d2f3d32d6e0afe0" > ◆ < / 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 &   < / 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 >
2021-06-11 04:44:53 +00:00
< 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 >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
< hr / > The documentation for this class was generated from the following files:< ul >
2017-09-20 02:35:05 +00:00
< 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 >
2015-10-16 00:33:37 +00:00
< / ul >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
2021-06-22 00:16:40 +00:00
Generated on Tue Jun 22 2021 00:16:07 for Shaka Packager SDK by   < a href = "http://www.doxygen.org/index.html" >
< img class = "footer" src = "../../doxygen.png" alt = "doxygen" / >
< / a > 1.8.17
2015-10-16 00:33:37 +00:00
< / small > < / address >
< / body >
< / html >