#include <DOMNode.h>
Definition at line 20 of file DOMNode.h.
◆ NodeType
Enumerator |
---|
DOCUMENT_NODE | |
ELEMENT_NODE | |
COMMENT_NODE | |
ENTITY_NODE | |
ENTITY_REFERENCE_NODE | |
Definition at line 23 of file DOMNode.h.
◆ DOMNode() [1/3]
CoreParser::DOMNode::DOMNode |
( |
| ) |
|
◆ DOMNode() [2/3]
◆ DOMNode() [3/3]
◆ ~DOMNode()
CoreParser::DOMNode::~DOMNode |
( |
| ) |
|
◆ get_attributes()
◆ get_first_child()
◆ get_name()
const std::string & CoreParser::DOMNode::get_name |
( |
| ) |
const |
◆ get_next_sibling()
◆ get_siblings()
◆ get_type()
◆ get_value()
const std::string & CoreParser::DOMNode::get_value |
( |
| ) |
const |
◆ print()
void CoreParser::DOMNode::print |
( |
const std::string & |
header = "" , |
|
|
int |
depth = 0 |
|
) |
| const |
Definition at line 109 of file DOMNode.cxx.
114 std::cout <<
header << std::endl;
121 for (
i = 0;
i <
depth;
i++) std::cout <<
" ";
122 std::cout <<
"<!--" <<
m_value <<
"-->" << std::endl;
131 for (
i = 0;
i <
depth;
i++) std::cout <<
" ";
132 std::cout <<
"<" <<
m_name;
134 std::map <std::string, std::string>::const_iterator ait;
138 const std::string&
n = (*ait).first;
139 const std::string&
v = (*ait).second;
141 std::cout <<
" " <<
n <<
"='" <<
v <<
"'";
144 std::cout <<
">" << std::endl;
146 DOMSiblings::const_iterator sit;
155 for (
i = 0;
i <
depth;
i++) std::cout <<
" ";
156 std::cout <<
"</" <<
m_name <<
">" << std::endl;
◆ sibling_number()
unsigned int CoreParser::DOMNode::sibling_number |
( |
| ) |
const |
◆ m_attributes
◆ m_it
DOMSiblings::iterator CoreParser::DOMNode::m_it |
◆ m_name
std::string CoreParser::DOMNode::m_name |
◆ m_parent
DOMNode* CoreParser::DOMNode::m_parent |
◆ m_siblings
◆ m_type
◆ m_value
std::string CoreParser::DOMNode::m_value |
The documentation for this class was generated from the following files: