346 lines
31 KiB
HTML
346 lines
31 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
<title>exml Library</title>
|
|
<link rel="stylesheet" href="base.css">
|
|
<link rel="stylesheet" href="menu.css">
|
|
</head>
|
|
<body>
|
|
<div class="navbar navbar-fixed-top">
|
|
<div class="container">
|
|
<h1><a href="index.html">exml library</a></h1>
|
|
<h4><a href="http://github.com/heeroyui/exml/"> [ sources ]</a></h4>
|
|
<h3>API:</h3> <div id="menu">
|
|
<ul class="niveau1">
|
|
<li><a href="namespace_exml.html">exml</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<br/><h3>Associate libraries:</h3><div id="menu">
|
|
<ul class="niveau1"><li><a href="../ewol/index.html">ewol</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../ejson/index.html">ejson</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../egami/index.html">egami</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../ege/index.html">ege</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../esvg/index.html">esvg</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../etk/index.html">etk</a></li>
|
|
</ul></div>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
</div>
|
|
</div>
|
|
<div class="container" id="content">
|
|
<h1>class: exml::Node</h1><hr/><h2>Description:</h2>
|
|
|
|
<br/><br/>
|
|
<h2>Constructor and Destructor:</h2>
|
|
<pre>
|
|
+ <a class="code-function" href="#9497">Node</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <a class="code-function" href="#9499">Node</a> (<span class="code-storage-keyword">const</span> <a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> & <span class="code-argument">_value</span>);<br/>+ <span class="code-storage-keyword">virtual</span> <a class="code-function" href="#9501">~Node</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
<br/>
|
|
<h2>Synopsis:</h2>
|
|
<pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >bool</span> <a class="code-function" href="#9503">iParse</a> (<span class="code-storage-keyword">const</span> <a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> & <span class="code-argument">_data</span>,<br/> <span class="code-type" >int32_t</span> & <span class="code-argument">_pos</span>,<br/> <span class="code-type" >bool</span> <span class="code-argument">_caseSensitive</span>,<br/> <a class="code-type" href="class_exml__filePos.html">exml::filePos</a> & <span class="code-argument">_filePos</span>,<br/> <a class="code-type" href="class_exml__Document.html">exml::Document</a> & <span class="code-argument">_doc</span>) = 0;<br/>+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >bool</span> <a class="code-function" href="#9509">iGenerate</a> (<a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> & <span class="code-argument">_data</span>,<br/> <span class="code-type" >int32_t</span> <span class="code-argument">_indent</span>) <span class="code-storage-keyword">const</span>;<br/># <a class="code-type" href="class_exml__filePos.html">exml::filePos</a> <a class="code-member" href="#9512">m_pos</a>;<br/>+ <span class="code-storage-keyword">const</span> <a class="code-type" href="class_exml__filePos.html">exml::filePos</a> & <a class="code-function" href="#9513">getPos</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/># <a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> <a class="code-member" href="#9515">m_value</a>;<br/>+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >void</span> <a class="code-function" href="#9516">setValue</a> (<a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> <span class="code-argument">_value</span>);<br/>+ <span class="code-storage-keyword">virtual</span> <span class="code-storage-keyword">const</span> <a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> & <a class="code-function" href="#9518">getValue</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-storage-keyword">virtual</span> <span class="code-storage-keyword">enum</span> nodeType <a class="code-function" href="#9520">getType</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/># <span class="code-type" >void</span> <a class="code-function" href="#9522">addIndent</a> (<a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> & <span class="code-argument">_data</span>,<br/> <span class="code-type" >int32_t</span> <span class="code-argument">_indent</span>) <span class="code-storage-keyword">const</span>;<br/># <span class="code-type" >void</span> <a class="code-function" href="#9525">drawElementParsed</a> (<span class="code-type" >char32_t</span> <span class="code-argument">_val</span>,<br/> <span class="code-storage-keyword">const</span> <a class="code-type" href="class_exml__filePos.html">exml::filePos</a> & <span class="code-argument">_filePos</span>) <span class="code-storage-keyword">const</span>;<br/># <span class="code-type" >bool</span> <a class="code-function" href="#9528">checkAvaillable</a> (<span class="code-type" >char32_t</span> <span class="code-argument">_val</span>,<br/> <span class="code-type" >bool</span> <span class="code-argument">_firstChar</span>) <span class="code-storage-keyword">const</span>;<br/># <span class="code-type" >int32_t</span> <a class="code-function" href="#9531">countWhiteChar</a> (<span class="code-storage-keyword">const</span> <a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> & <span class="code-argument">_data</span>,<br/> <span class="code-type" >int32_t</span> <span class="code-argument">_pos</span>,<br/> <a class="code-type" href="class_exml__filePos.html">exml::filePos</a> & <span class="code-argument">_filePos</span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-storage-keyword">virtual</span> <a class="code-type" href="class_exml__Document.html">exml::Document</a>* <a class="code-function" href="#9535">toDocument</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <span class="code-storage-keyword">virtual</span> <span class="code-storage-keyword">const</span> <a class="code-type" href="class_exml__Document.html">exml::Document</a>* <a class="code-function" href="#9537">toDocument</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-storage-keyword">virtual</span> <a class="code-type" href="class_exml__Attribute.html">exml::Attribute</a>* <a class="code-function" href="#9539">toAttribute</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <span class="code-storage-keyword">virtual</span> <span class="code-storage-keyword">const</span> <a class="code-type" href="class_exml__Attribute.html">exml::Attribute</a>* <a class="code-function" href="#9541">toAttribute</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-storage-keyword">virtual</span> <a class="code-type" href="class_exml__Comment.html">exml::Comment</a>* <a class="code-function" href="#9543">toComment</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <span class="code-storage-keyword">virtual</span> <span class="code-storage-keyword">const</span> <a class="code-type" href="class_exml__Comment.html">exml::Comment</a>* <a class="code-function" href="#9545">toComment</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-storage-keyword">virtual</span> <a class="code-type" href="class_exml__Declaration.html">exml::Declaration</a>* <a class="code-function" href="#9547">toDeclaration</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <span class="code-storage-keyword">virtual</span> <span class="code-storage-keyword">const</span> <a class="code-type" href="class_exml__Declaration.html">exml::Declaration</a>* <a class="code-function" href="#9549">toDeclaration</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-storage-keyword">virtual</span> <a class="code-type" href="class_exml__Element.html">exml::Element</a>* <a class="code-function" href="#9551">toElement</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <span class="code-storage-keyword">virtual</span> <span class="code-storage-keyword">const</span> <a class="code-type" href="class_exml__Element.html">exml::Element</a>* <a class="code-function" href="#9553">toElement</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-storage-keyword">virtual</span> <a class="code-type" href="class_exml__Text.html">exml::Text</a>* <a class="code-function" href="#9555">toText</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <span class="code-storage-keyword">virtual</span> <span class="code-storage-keyword">const</span> <a class="code-type" href="class_exml__Text.html">exml::Text</a>* <a class="code-function" href="#9557">toText</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >bool</span> <a class="code-function" href="#9559">isDocument</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >bool</span> <a class="code-function" href="#9561">isAttribute</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >bool</span> <a class="code-function" href="#9563">isComment</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >bool</span> <a class="code-function" href="#9565">isDeclaration</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >bool</span> <a class="code-function" href="#9567">isElement</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-type" >bool</span> <a class="code-function" href="#9569">isText</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/>+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >void</span> <a class="code-function" href="#9571">clear</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
<br/>
|
|
<h2>Object Hierarchy:<h2>
|
|
<pre>
|
|
exml::Node<br/> +--> <a href="class_exml__Comment.html">exml::Comment</a><br/> +--> <a href="class_exml__Attribute.html">exml::Attribute</a><br/> +--> <a href="class_exml__Text.html">exml::Text</a><br/> +--> <a href="class_exml__AttributeList.html">exml::AttributeList</a><br/></pre>
|
|
<h2>Detail:</h2>
|
|
<a id="9497"/><a id="9499"/><h3>Node</h3><pre>
|
|
+ <span class="code-function">Node</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
basic element of a xml structure<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="9501"/><h3>Node</h3><pre>
|
|
+ <span class="code-function">Node</span> (<span class="code-storage-keyword">const</span> <a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> & <span class="code-argument">_value</span>);<br/></pre>
|
|
basic element of a xml structure<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">value</span> </td><td> of the node</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="9503"/><h3>~Node</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <span class="code-function">~Node</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
destructor<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="9509"/><h3>iParse</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >bool</span> <span class="code-function">iParse</span> (<span class="code-storage-keyword">const</span> <a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> & <span class="code-argument">_data</span>,<br/> <span class="code-type" >int32_t</span> & <span class="code-argument">_pos</span>,<br/> <span class="code-type" >bool</span> <span class="code-argument">_caseSensitive</span>,<br/> <a class="code-type" href="class_exml__filePos.html">exml::filePos</a> & <span class="code-argument">_filePos</span>,<br/> <a class="code-type" href="class_exml__Document.html">exml::Document</a> & <span class="code-argument">_doc</span>) = 0;<br/></pre>
|
|
parse the Current node [pure VIRUAL]<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_data</span> </td><td> data string to parse.</td></tr>
|
|
<td><b>Parameter [input] [output]:</b></td><td><span class="code-argument">_pos</span> </td><td> position in the string to start parse, return the position end of parsing.</td></tr>
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_caseSensitive</span> </td><td> Request a parsion of element that is not case sensitive (all element is in low case)</td></tr>
|
|
<td><b>Parameter [input] [output]:</b></td><td><span class="code-argument">file</span> </td><td> parsing position (line x col x)</td></tr>
|
|
<tr><td><b>Return: </b></td><td></td><td>false if an error occured.</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="9512"/><h3>iGenerate</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >bool</span> <span class="code-function">iGenerate</span> (<a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> & <span class="code-argument">_data</span>,<br/> <span class="code-type" >int32_t</span> <span class="code-argument">_indent</span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
generate a string with the tree of the xml<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input] [output]:</b></td><td><span class="code-argument">_data</span> </td><td> string where to add the elements</td></tr>
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">current</span> </td><td> indentation of the file</td></tr>
|
|
<tr><td><b>Return: </b></td><td></td><td>false if an error occured.</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="9513"/><h3>m_pos</h3><pre>
|
|
# <a class="code-type" href="class_exml__filePos.html">exml::filePos</a> <span class="code-member">m_pos</span>;<br/></pre>
|
|
|
|
position in the readed file == > not correct when the file is generated<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="9515"/><h3>getPos</h3><pre>
|
|
+ <span class="code-storage-keyword">const</span> <a class="code-type" href="class_exml__filePos.html">exml::filePos</a> & <span class="code-function">getPos</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
get the current position where the element is in the file<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="9516"/><h3>m_value</h3><pre>
|
|
# <a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> <span class="code-member">m_value</span>;<br/></pre>
|
|
|
|
value of the node (for element this is the name, for text it is the inside text ...)<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="9518"/><h3>setValue</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >void</span> <span class="code-function">setValue</span> (<a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> <span class="code-argument">_value</span>);<br/></pre>
|
|
set the value of the node.<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_value</span> </td><td> New value of the node.</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="9520"/><h3>getValue</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <span class="code-storage-keyword">const</span> <a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> & <span class="code-function">getValue</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
get the current element Value.<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>the reference of the string value.</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="9522"/><h3>getType</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <span class="code-storage-keyword">enum</span> nodeType <span class="code-function">getType</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
get the node type.<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>the type of the Node.</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="9525"/><h3>addIndent</h3><pre>
|
|
# <span class="code-type" >void</span> <span class="code-function">addIndent</span> (<a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> & <span class="code-argument">_data</span>,<br/> <span class="code-type" >int32_t</span> <span class="code-argument">_indent</span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
add indentation of the string input.<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input] [output]:</b></td><td><span class="code-argument">_data</span> </td><td> String where the indentation is done.</td></tr>
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_indent</span> </td><td> Number of tab to add at the string.</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="9528"/><h3>drawElementParsed</h3><pre>
|
|
# <span class="code-type" >void</span> <span class="code-function">drawElementParsed</span> (<span class="code-type" >char32_t</span> <span class="code-argument">_val</span>,<br/> <span class="code-storage-keyword">const</span> <a class="code-type" href="class_exml__filePos.html">exml::filePos</a> & <span class="code-argument">_filePos</span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Display the cuurent element that is curently parse.<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_val</span> </td><td> Char that is parsed.</td></tr>
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_filePos</span> </td><td> Position of the char in the file.</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="9531"/><h3>checkAvaillable</h3><pre>
|
|
# <span class="code-type" >bool</span> <span class="code-function">checkAvaillable</span> (<span class="code-type" >char32_t</span> <span class="code-argument">_val</span>,<br/> <span class="code-type" >bool</span> <span class="code-argument">_firstChar</span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
check if an element or attribute is availlable (not : !"#$%&'()+,/;<=>?@[\]^`{|}~ \n\t\r and for first char : not -.0123456789).<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_val</span> </td><td> Value to check the conformity.</td></tr>
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_firstChar</span> </td><td> True if the element check is the first char.</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="9535"/><h3>countWhiteChar</h3><pre>
|
|
# <span class="code-type" >int32_t</span> <span class="code-function">countWhiteChar</span> (<span class="code-storage-keyword">const</span> <a class="code-type" href="http://www.cplusplus.com/reference/string/string/">std::string</a> & <span class="code-argument">_data</span>,<br/> <span class="code-type" >int32_t</span> <span class="code-argument">_pos</span>,<br/> <a class="code-type" href="class_exml__filePos.html">exml::filePos</a> & <span class="code-argument">_filePos</span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
count the number of white char in the string from the specify position (stop at the first element that is not a white char)<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_data</span> </td><td> Data to parse.</td></tr>
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_pos</span> </td><td> Start position in the string.</td></tr>
|
|
<td><b>Parameter [output]:</b></td><td><span class="code-argument">_filePos</span> </td><td> new poistion of te file to add.</td></tr>
|
|
<tr><td><b>Return: </b></td><td></td><td>number of white element.</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="9537"/><h3>toDocument</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <a class="code-type" href="class_exml__Document.html">exml::Document</a>* <span class="code-function">toDocument</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
Cast the element in a Document if it is possible.<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>pointer on the class or NULL.</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="9539"/><h3>toDocument</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <span class="code-storage-keyword">const</span> <a class="code-type" href="class_exml__Document.html">exml::Document</a>* <span class="code-function">toDocument</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="9541"/><h3>toAttribute</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <a class="code-type" href="class_exml__Attribute.html">exml::Attribute</a>* <span class="code-function">toAttribute</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
Cast the element in a Attribute if it is possible.<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>pointer on the class or NULL.</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="9543"/><h3>toAttribute</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <span class="code-storage-keyword">const</span> <a class="code-type" href="class_exml__Attribute.html">exml::Attribute</a>* <span class="code-function">toAttribute</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="9545"/><h3>toComment</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <a class="code-type" href="class_exml__Comment.html">exml::Comment</a>* <span class="code-function">toComment</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
Cast the element in a Comment if it is possible.<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>pointer on the class or NULL.</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="9547"/><h3>toComment</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <span class="code-storage-keyword">const</span> <a class="code-type" href="class_exml__Comment.html">exml::Comment</a>* <span class="code-function">toComment</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="9549"/><h3>toDeclaration</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <a class="code-type" href="class_exml__Declaration.html">exml::Declaration</a>* <span class="code-function">toDeclaration</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
Cast the element in a Declaration if it is possible.<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>pointer on the class or NULL.</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="9551"/><h3>toDeclaration</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <span class="code-storage-keyword">const</span> <a class="code-type" href="class_exml__Declaration.html">exml::Declaration</a>* <span class="code-function">toDeclaration</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="9553"/><h3>toElement</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <a class="code-type" href="class_exml__Element.html">exml::Element</a>* <span class="code-function">toElement</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
Cast the element in a Element if it is possible.<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>pointer on the class or NULL.</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="9555"/><h3>toElement</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <span class="code-storage-keyword">const</span> <a class="code-type" href="class_exml__Element.html">exml::Element</a>* <span class="code-function">toElement</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="9557"/><h3>toText</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <a class="code-type" href="class_exml__Text.html">exml::Text</a>* <span class="code-function">toText</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
Cast the element in a Text if it is possible.<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>pointer on the class or NULL.</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="9559"/><h3>toText</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <span class="code-storage-keyword">const</span> <a class="code-type" href="class_exml__Text.html">exml::Text</a>* <span class="code-function">toText</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="9561"/><h3>isDocument</h3><pre>
|
|
+ <span class="code-type" >bool</span> <span class="code-function">isDocument</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
check if the node is a exml::Document<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>true if the node is a exml::Document</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="9563"/><h3>isAttribute</h3><pre>
|
|
+ <span class="code-type" >bool</span> <span class="code-function">isAttribute</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
check if the node is a exml::Attribute<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>true if the node is a exml::Attribute</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="9565"/><h3>isComment</h3><pre>
|
|
+ <span class="code-type" >bool</span> <span class="code-function">isComment</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
check if the node is a exml::Comment<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>true if the node is a exml::Comment</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="9567"/><h3>isDeclaration</h3><pre>
|
|
+ <span class="code-type" >bool</span> <span class="code-function">isDeclaration</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
check if the node is a exml::Declaration<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>true if the node is a exml::Declaration</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="9569"/><h3>isElement</h3><pre>
|
|
+ <span class="code-type" >bool</span> <span class="code-function">isElement</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
check if the node is a exml::Element<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>true if the node is a exml::Element</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="9571"/><h3>isText</h3><pre>
|
|
+ <span class="code-type" >bool</span> <span class="code-function">isText</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
check if the node is a exml::Text<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>true if the node is a exml::Text</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<h3>clear</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >void</span> <span class="code-function">clear</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
clear the Node<br/>
|
|
<br/>
|
|
<hr/>
|
|
</div>
|
|
<script>
|
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
ga('create', 'UA-46753803-1', 'heeroyui.github.io');
|
|
ga('send', 'pageview');
|
|
</script>
|
|
</body>
|
|
</html>
|