ReactOS 0.4.16-dev-823-g9a093ec
|
helper structure to read XML messages from strings More...
#include <xmlstorage.h>
Public Member Functions | |
XMLMessageFromString (const std::string &xml_str, const std::string &system_id=std::string()) | |
![]() | |
XMLMessage (const char *name) | |
std::string | toString () const |
![]() | |
XMLDoc () | |
XMLDoc (LPCTSTR path) | |
bool | read_file (LPCTSTR path) |
bool | read_buffer (const char *buffer, size_t len, const std::string &system_id=std::string()) |
bool | read_buffer (const std::string &buffer, const std::string &system_id=std::string()) |
bool | read_stream (std::istream &in, const std::string &system_id=std::string()) |
bool | read (XMLReaderBase &reader, const std::string &display_path) |
bool | write (std::ostream &out, WRITE_MODE mode=FORMAT_SMART) const |
write XML stream | |
bool | write_formating (std::ostream &out) const |
write XML stream with formating | |
bool | write_file (LPCTSTR path, WRITE_MODE mode=FORMAT_SMART) const |
bool | write_formating (LPCTSTR path) const |
![]() | |
XMLNode (const XS_String &name) | |
XMLNode (const XS_String &name, const std::string &leading) | |
XMLNode (const XMLNode &other) | |
XMLNode (const XMLNode &other, COPY_FLAGS copy_no_children) | |
virtual | ~XMLNode () |
void | clear () |
XMLNode & | operator= (const XMLNode &other) |
void | add_child (XMLNode *child) |
add a new child node | |
void | remove_children (const XS_String &name) |
remove all children named 'name' | |
void | put (const XS_String &attr_name, const XS_String &value) |
write access to an attribute | |
XS_String & | operator[] (const XS_String &attr_name) |
index operator write access to an attribute | |
template<typename T > | |
XS_String | get (const T &attr_name, LPCXSSTR def=XS_EMPTY_STR) const |
read only access to an attribute | |
void | erase (const XS_String &attr_name) |
remove the attribute 'attr_name' | |
XS_String | subvalue (const XS_String &child_name, const XS_String &attr_name, int n=0) const |
convenient value access in children node | |
XS_String & | subvalue (const XS_String &child_name, const XS_String &attr_name, int n=0) |
convenient storage of distinct values in children node | |
const Children & | get_children () const |
Children & | get_children () |
const AttributeMap & | get_attributes () const |
AttributeMap & | get_attributes () |
XS_String | get_content () const |
read element node content | |
XS_String | get_sub_content (const XPath &xpath) const |
read content of a subnode specified by an XPath expression | |
void | set_content (const XS_String &s, bool cdata=false) |
set element node content | |
bool | set_sub_content (const XPath &xpath, const XS_String &s, bool cdata=false) |
set content of a subnode specified by an XPath expression | |
bool | write (std::ostream &out, const XMLFormat &format, WRITE_MODE mode=FORMAT_SMART, int indent=0) const |
write node with children tree to output stream | |
int | count (const XPath &xpath) const |
count the nodes matching the given relative XPath expression | |
int | count (XPath::const_iterator from, const XPath::const_iterator &to) const |
count the nodes matching the given relative XPath expression | |
bool | filter (const XPath &xpath, XMLNode &target) const |
copy matching tree nodes using the given XPath filter expression | |
const XMLNode * | find_relative (const XPath &xpath) const |
XPath find function (const) | |
XMLNode * | find_relative (const XPath &xpath) |
XPath find function. | |
XMLNode * | get_first_child () const |
![]() | |
XS_String () | |
XS_String (LPCXSSTR s) | |
XS_String (LPCXSSTR s, size_t l) | |
XS_String (const super &other) | |
XS_String (const XS_String &other) | |
void | assign (const XS_String &s) |
XS_String & | operator= (LPCXSSTR s) |
XS_String & | operator= (const super &s) |
void | assign (LPCXSSTR s) |
void | assign (LPCXSSTR s, size_t l) |
operator LPCXSSTR () const | |
XS_String & | printf (LPCXSSTR fmt,...) |
XS_String & | vprintf (LPCXSSTR fmt, va_list l) |
XS_String & | appendf (LPCXSSTR fmt,...) |
XS_String & | vappendf (LPCXSSTR fmt, va_list l) |
Additional Inherited Members | |
![]() | |
enum | COPY_FLAGS { COPY_NOCHILDREN } |
![]() | |
typedef std::string | super |
![]() | |
XMLPos | _pos |
![]() | |
XMLFormat | _format |
XMLErrorList | _errors |
![]() | |
XMLMessage () | |
![]() | |
XMLNode * | create_relative (const XPath &xpath) |
relative XPath create function | |
XMLNode * | filter (XPath::const_iterator from, const XPath::const_iterator &to) const |
create a new node tree using the given XPath filter expression | |
void | original_write_worker (std::ostream &out) const |
write node with children tree to output stream using original white space | |
void | plain_write_worker (std::ostream &out) const |
print node without any white space | |
void | pretty_write_worker (std::ostream &out, const XMLFormat &format, int indent) const |
pretty print node with children tree to output stream | |
void | smart_write_worker (std::ostream &out, const XMLFormat &format, int indent) const |
write node with children tree to output stream using smart formating | |
![]() | |
Children | _children |
AttributeMap | _attributes |
std::string | _leading |
std::string | _content |
std::string | _end_leading |
std::string | _trailing |
bool | _cdata_content |
helper structure to read XML messages from strings
Definition at line 2872 of file xmlstorage.h.
|
inline |
Definition at line 2874 of file xmlstorage.h.