doxybook::xml::node
Defined in header <doxybook/xml.hpp>
class node;
An xml node.
Public Functions
Member Functions | Description |
---|---|
(constructor) | Constructor. (function) |
(destructor) = default | Destructor. (function) |
next_sibling const | Get next node. (function) |
first_child const | Get first child node. (function) |
has_text const | Check if node has text. (function) |
get_text const | Get node text. (function) |
is_element const | Check if this is an element node. (function) |
as_element const | Get node as an element. (function) |
operator bool const | Check if node is valid. (function) |
Public Functions
function node
Defined in header <doxybook/xml.hpp>
node() = default;
explicit node(tinyxml2::XMLNode * ptr);
- Constructor.
- Construct from a tinyxml node.
Exception Safety
Basic exception guarantee.
function ~node
Defined in header <doxybook/xml.hpp>
~node() = default;
Destructor.
Exception Safety
Basic exception guarantee.
function next_sibling
Defined in header <doxybook/xml.hpp>
node
next_sibling() const;
Get next node.
Exception Safety
Basic exception guarantee.
function first_child
Defined in header <doxybook/xml.hpp>
node
first_child() const;
Get first child node.
Exception Safety
Basic exception guarantee.
function has_text
Defined in header <doxybook/xml.hpp>
bool
has_text() const;
Check if node has text.
Exception Safety
Basic exception guarantee.
function get_text
Defined in header <doxybook/xml.hpp>
std::string
get_text() const;
Get node text.
Exception Safety
Basic exception guarantee.
function is_element
Defined in header <doxybook/xml.hpp>
bool
is_element() const;
Check if this is an element node.
Exception Safety
Basic exception guarantee.
function as_element
Defined in header <doxybook/xml.hpp>
element
as_element() const;
Get node as an element.
Exception Safety
Basic exception guarantee.
function operator bool
Defined in header <doxybook/xml.hpp>
operator bool() const;
Check if node is valid.
Exception Safety
Basic exception guarantee.
Updated on 2023-04-03