ReactOS 0.4.16-dev-457-g087979e
|
iterator for XML trees More...
#include <xmlstorage.h>
Public Member Functions | |
XMLPos (XMLNode *root) | |
XMLPos (const XMLPos &other) | |
XMLPos (XMLNode *node, const XS_String &name) | |
XMLPos (XMLNode *node, const XS_String &name, const XS_String &attr_name, const XS_String &attr_value) | |
XMLPos (const XMLPos &other, const XS_String &name) | |
XMLPos (const XMLPos &other, const XS_String &name, const XS_String &attr_name, const XS_String &attr_value) | |
XMLNode & | cur () |
access to current node | |
const XMLNode & | cur () const |
operator const XMLNode * () const | |
automatic access to current node | |
operator XMLNode * () | |
const XMLNode * | operator-> () const |
XMLNode * | operator-> () |
const XMLNode & | operator* () const |
XMLNode & | operator* () |
XS_String | get (const XS_String &attr_name, LPCXSSTR def=XS_EMPTY_STR) const |
attribute access | |
void | put (const XS_String &attr_name, const XS_String &value) |
attribute setting | |
template<typename T > | |
XS_String | get (const T &attr_name) const |
index operator attribute access | |
XS_String & | operator[] (const XS_String &attr_name) |
const XS_String & | operator[] (const XS_String &attr_name) const |
void | add_down (XMLNode *child) |
insert children when building tree | |
bool | back () |
go back to previous position | |
bool | go_down () |
go down to first child | |
bool | go_down (const XS_String &child_name, int n=0) |
search for child and go down | |
bool | iterate (const XS_String &child_name, size_t &cnt) |
iterate to the next matching child | |
bool | go (const XPath &xpath) |
move to the position defined by xpath in XML tree | |
bool | create_relative (const XPath &xpath) |
create child nodes using XPath notation and move to the deepest child | |
void | create (const XS_String &name) |
create node and move to it | |
void | create_node_content (const XS_String &node_name, const XS_String &content) |
create node with string content | |
void | smart_create (const XS_String &child_name) |
create node if not already existing and move to it | |
void | smart_create (const XS_String &child_name, const XS_String &attr_name, const XS_String &attr_value) |
search matching child node identified by key name and an attribute value | |
int | count (const XPath &xpath) const |
count the nodes matching the given relative XPath expression | |
int | filter (const XPath &xpath, XMLNode &target) const |
create a new node tree using the given XPath filter expression | |
bool | delete_this () |
delete current node and go back to previous position | |
void | remove_children (const XS_String &name) |
remove all children named 'name' | |
void | erase (const XS_String &attr_name) |
remove the attribute 'attr_name' from the current node | |
XS_String & | str () |
const XS_String & | str () const |
void | set_property (const XS_String &key, int value, const XS_String &name=XS_PROPERTY) |
void | set_property (const XS_String &key, double value, const XS_String &name=XS_PROPERTY) |
void | set_property (const XS_String &key, const XS_String &value, const XS_String &name=XS_PROPERTY) |
void | set_property (const XS_String &key, const struct XMLBool &value, const XS_String &name=XS_PROPERTY) |
void | set_property (const XS_String &key, const char *value, const XS_String &name=XS_PROPERTY) |
Protected Member Functions | |
void | go_to (XMLNode *child) |
go to specified node | |
Protected Attributes | |
XMLNode * | _root |
XMLNode * | _cur |
std::stack< XMLNode * > | _stack |
Friends | |
struct | const_XMLPos |
iterator for XML trees
Definition at line 1493 of file xmlstorage.h.
|
inline |
Definition at line 1495 of file xmlstorage.h.
Definition at line 1501 of file xmlstorage.h.
Definition at line 1507 of file xmlstorage.h.
|
inline |
Definition at line 1514 of file xmlstorage.h.
Definition at line 1521 of file xmlstorage.h.
|
inline |
Definition at line 1528 of file xmlstorage.h.
insert children when building tree
Definition at line 1574 of file xmlstorage.h.
Referenced by create(), smart_create(), and XMLStorage::XMLReaderBase::StartElementHandler().
|
inline |
go back to previous position
Definition at line 1581 of file xmlstorage.h.
Referenced by XMLStorage::XMLReaderBase::EndElementHandler(), and set_property().
count the nodes matching the given relative XPath expression
Definition at line 1682 of file xmlstorage.h.
create node and move to it
Definition at line 1643 of file xmlstorage.h.
Referenced by XMLStorage::XMLMessage::XMLMessage().
|
inline |
create node with string content
Definition at line 1649 of file xmlstorage.h.
create child nodes using XPath notation and move to the deepest child
Definition at line 1632 of file xmlstorage.h.
Referenced by ExplorerGlobals::get_cfg().
|
inline |
access to current node
Definition at line 1536 of file xmlstorage.h.
Definition at line 1541 of file xmlstorage.h.
|
inline |
delete current node and go back to previous position
Definition at line 1740 of file xmlstorage.h.
remove the attribute 'attr_name' from the current node
Definition at line 1761 of file xmlstorage.h.
create a new node tree using the given XPath filter expression
Definition at line 1688 of file xmlstorage.h.
|
inline |
attribute access
Definition at line 1557 of file xmlstorage.h.
|
inline |
go down to first child
Definition at line 1592 of file xmlstorage.h.
search for child and go down
Definition at line 1604 of file xmlstorage.h.
go to specified node
Definition at line 1786 of file xmlstorage.h.
Referenced by add_down(), create_relative(), go(), go_down(), iterate(), and smart_create().
|
inline |
Definition at line 1548 of file xmlstorage.h.
|
inline |
Definition at line 1554 of file xmlstorage.h.
Definition at line 1553 of file xmlstorage.h.
|
inline |
Definition at line 1551 of file xmlstorage.h.
Definition at line 1550 of file xmlstorage.h.
Definition at line 1570 of file xmlstorage.h.
Definition at line 1571 of file xmlstorage.h.
attribute setting
Definition at line 1563 of file xmlstorage.h.
remove all children named 'name'
Definition at line 1755 of file xmlstorage.h.
|
inline |
Definition at line 1775 of file xmlstorage.h.
void XMLStorage::XMLPos::set_property | ( | const XS_String & | key, |
const struct XMLBool & | value, | ||
const XS_String & | name = XS_PROPERTY |
||
) |
|
inline |
Definition at line 2288 of file xmlstorage.h.
|
inline |
Definition at line 2281 of file xmlstorage.h.
|
inline |
Definition at line 2274 of file xmlstorage.h.
Referenced by set_property().
create node if not already existing and move to it
Definition at line 1657 of file xmlstorage.h.
Referenced by ExplorerGlobals::get_cfg(), set_property(), and XMLPos().
|
inline |
search matching child node identified by key name and an attribute value
Definition at line 1668 of file xmlstorage.h.
|
inline |
Definition at line 1766 of file xmlstorage.h.
Definition at line 1767 of file xmlstorage.h.
|
friend |
Definition at line 1779 of file xmlstorage.h.
|
protected |
Definition at line 1782 of file xmlstorage.h.
Referenced by add_down(), back(), count(), create_node_content(), create_relative(), cur(), delete_this(), erase(), filter(), get(), go(), go_down(), go_to(), iterate(), operator const XMLNode *(), operator XMLNode *(), operator*(), operator->(), operator[](), put(), remove_children(), set_property(), smart_create(), and str().
|
protected |
Definition at line 1781 of file xmlstorage.h.
Referenced by go().
|
protected |
Definition at line 1783 of file xmlstorage.h.
Referenced by back(), delete_this(), and go_to().