ReactOS
0.4.15-dev-5608-gafb953a
|
in memory representation of an XML node More...
#include <xmlstorage.h>
Classes | |
struct | AttributeMap |
map of XML node attributes More... | |
struct | Children |
internal children node list More... | |
Public Types | |
enum | COPY_FLAGS { COPY_NOCHILDREN } |
![]() | |
typedef std::string | super |
Protected Member Functions | |
XMLNode * | create_relative (const XPath &xpath) |
relative XPath create function More... | |
XMLNode * | filter (XPath::const_iterator from, const XPath::const_iterator &to) const |
create a new node tree using the given XPath filter expression More... | |
void | original_write_worker (std::ostream &out) const |
write node with children tree to output stream using original white space More... | |
void | plain_write_worker (std::ostream &out) const |
print node without any white space More... | |
void | pretty_write_worker (std::ostream &out, const XMLFormat &format, int indent) const |
pretty print node with children tree to output stream More... | |
void | smart_write_worker (std::ostream &out, const XMLFormat &format, int indent) const |
write node with children tree to output stream using smart formating More... | |
Protected Attributes | |
Children | _children |
AttributeMap | _attributes |
std::string | _leading |
std::string | _content |
std::string | _end_leading |
std::string | _trailing |
bool | _cdata_content |
Friends | |
struct | XMLPos |
struct | const_XMLPos |
struct | XMLReaderBase |
struct | XPathElement |
in memory representation of an XML node
Definition at line 854 of file xmlstorage.h.
Definition at line 984 of file xmlstorage.h.
Referenced by XMLStorage::XMLNode::Children::copy(), create_relative(), filter(), XMLStorage::XMLReaderBase::StartElementHandler(), and subvalue().
|
inline |
Definition at line 990 of file xmlstorage.h.
Definition at line 997 of file xmlstorage.h.
|
inline |
Definition at line 1015 of file xmlstorage.h.
|
inlinevirtual |
Definition at line 1030 of file xmlstorage.h.
add a new child node
Definition at line 1067 of file xmlstorage.h.
Referenced by XMLStorage::XMLPos::add_down(), XMLStorage::XMLPos::create_node_content(), and subvalue().
Definition at line 1038 of file xmlstorage.h.
count the nodes matching the given relative XPath expression
Definition at line 1244 of file xmlstorage.h.
Referenced by XMLStorage::XMLPos::count().
int XMLStorage::XMLNode::count | ( | XPath::const_iterator | from, |
const XPath::const_iterator & | to | ||
) | const |
count the nodes matching the given relative XPath expression
Definition at line 301 of file xmlstorage.cpp.
relative XPath create function
Definition at line 279 of file xmlstorage.cpp.
Referenced by XMLStorage::XMLPos::create_relative(), and set_sub_content().
remove the attribute 'attr_name'
Definition at line 1106 of file xmlstorage.h.
Referenced by XMLStorage::XMLPos::erase(), and XMLStorage::XMLNode::Children::remove().
copy matching tree nodes using the given XPath filter expression
Definition at line 321 of file xmlstorage.cpp.
Referenced by XMLStorage::XMLPos::filter().
|
protected |
create a new node tree using the given XPath filter expression
Definition at line 338 of file xmlstorage.cpp.
XPath find function (const)
Definition at line 251 of file xmlstorage.cpp.
Referenced by get_sub_content().
XPath find function.
Definition at line 265 of file xmlstorage.cpp.
|
inline |
read only access to an attribute
Definition at line 1095 of file xmlstorage.h.
Referenced by XMLStorage::XMLPos::get(), XMLStorage::const_XMLPos::get(), and XMLStorage::const_XMLPos::operator[]().
|
inline |
Definition at line 1171 of file xmlstorage.h.
|
inline |
Definition at line 1176 of file xmlstorage.h.
Definition at line 1161 of file xmlstorage.h.
|
inline |
Definition at line 1166 of file xmlstorage.h.
|
inline |
read element node content
Definition at line 1182 of file xmlstorage.h.
|
inline |
Definition at line 1261 of file xmlstorage.h.
Referenced by XMLStorage::XMLPos::go_down(), and XMLStorage::const_XMLPos::go_down().
read content of a subnode specified by an XPath expression
Definition at line 1188 of file xmlstorage.h.
|
inline |
Definition at line 1051 of file xmlstorage.h.
|
inline |
|
protected |
write node with children tree to output stream using original white space
Definition at line 528 of file xmlstorage.cpp.
Referenced by write().
|
protected |
print node without any white space
Definition at line 555 of file xmlstorage.cpp.
Referenced by write().
|
protected |
pretty print node with children tree to output stream
Definition at line 579 of file xmlstorage.cpp.
Referenced by write().
write access to an attribute
Definition at line 1083 of file xmlstorage.h.
Referenced by XMLStorage::XMLPos::put().
remove all children named 'name'
Definition at line 1073 of file xmlstorage.h.
Referenced by XMLStorage::XMLPos::remove_children().
set element node content
Definition at line 1199 of file xmlstorage.h.
Referenced by XMLStorage::XMLPos::create_node_content().
|
inline |
set content of a subnode specified by an XPath expression
Definition at line 1205 of file xmlstorage.h.
|
protected |
write node with children tree to output stream using smart formating
Definition at line 612 of file xmlstorage.cpp.
Referenced by write().
|
inline |
convenient value access in children node
Definition at line 1112 of file xmlstorage.h.
|
inline |
convenient storage of distinct values in children node
Definition at line 1123 of file xmlstorage.h.
|
inline |
write node with children tree to output stream
Definition at line 1221 of file xmlstorage.h.
|
friend |
Definition at line 980 of file xmlstorage.h.
Definition at line 979 of file xmlstorage.h.
|
friend |
Definition at line 981 of file xmlstorage.h.
|
friend |
Definition at line 982 of file xmlstorage.h.
Referenced by subvalue().
|
protected |
Definition at line 1271 of file xmlstorage.h.
Referenced by clear(), erase(), get(), get_attributes(), operator=(), operator[](), original_write_worker(), and put().
|
protected |
Definition at line 1282 of file xmlstorage.h.
|
protected |
Definition at line 1270 of file xmlstorage.h.
Referenced by add_child(), clear(), count(), XMLStorage::XMLPos::delete_this(), filter(), get_children(), get_first_child(), operator=(), original_write_worker(), remove_children(), XMLStorage::XMLDoc::write(), XMLNode(), and ~XMLNode().
|
protected |
Definition at line 1274 of file xmlstorage.h.
Referenced by clear(), XMLStorage::XMLReaderBase::EndElementHandler(), XMLStorage::XMLReaderBase::finish_read(), get_content(), operator=(), original_write_worker(), set_content(), and XMLStorage::XMLReaderBase::StartElementHandler().
|
protected |
Definition at line 1275 of file xmlstorage.h.
Referenced by clear(), and operator=().
|
protected |
Definition at line 1273 of file xmlstorage.h.
Referenced by clear(), operator=(), and original_write_worker().
|
protected |
Definition at line 1276 of file xmlstorage.h.
Referenced by clear(), and operator=().