ReactOS  0.4.11-dev-946-g431643b
XMLStorage::XMLMessageFromString Struct Reference

helper structure to read XML messages from strings More...

#include <xmlstorage.h>

Inheritance diagram for XMLStorage::XMLMessageFromString:
Collaboration diagram for XMLStorage::XMLMessageFromString:

Public Member Functions

 XMLMessageFromString (const std::string &xml_str, const std::string &system_id=std::string())
 
- Public Member Functions inherited from XMLStorage::XMLMessage
 XMLMessage (const char *name)
 
std::string toString () const
 
- Public Member Functions inherited from XMLStorage::XMLDoc
 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 More...
 
bool write_formating (std::ostream &out) const
 write XML stream with formating More...
 
bool write_file (LPCTSTR path, WRITE_MODE mode=FORMAT_SMART) const
 
bool write_formating (LPCTSTR path) const
 
- Public Member Functions inherited from XMLStorage::XMLNode
 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 ()
 
XMLNodeoperator= (const XMLNode &other)
 
void add_child (XMLNode *child)
 add a new child node More...
 
void remove_children (const XS_String &name)
 remove all children named 'name' More...
 
void put (const XS_String &attr_name, const XS_String &value)
 write access to an attribute More...
 
XS_Stringoperator[] (const XS_String &attr_name)
 index operator write access to an attribute More...
 
template<typename T >
XS_String get (const T &attr_name, LPCXSSTR def=XS_EMPTY_STR) const
 read only access to an attribute More...
 
void erase (const XS_String &attr_name)
 remove the attribute 'attr_name' More...
 
XS_String subvalue (const XS_String &child_name, const XS_String &attr_name, int n=0) const
 convenient value access in children node More...
 
XS_Stringsubvalue (const XS_String &child_name, const XS_String &attr_name, int n=0)
 convenient storage of distinct values in children node More...
 
const Childrenget_children () const
 
Childrenget_children ()
 
const AttributeMapget_attributes () const
 
AttributeMapget_attributes ()
 
XS_String get_content () const
 read element node content More...
 
XS_String get_sub_content (const XPath &xpath) const
 read content of a subnode specified by an XPath expression More...
 
void set_content (const XS_String &s, bool cdata=false)
 set element node content More...
 
bool set_sub_content (const XPath &xpath, const XS_String &s, bool cdata=false)
 set content of a subnode specified by an XPath expression More...
 
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 More...
 
int count (const XPath &xpath) const
 count the nodes matching the given relative XPath expression More...
 
int count (XPath::const_iterator from, const XPath::const_iterator &to) const
 count the nodes matching the given relative XPath expression More...
 
bool filter (const XPath &xpath, XMLNode &target) const
 copy matching tree nodes using the given XPath filter expression More...
 
const XMLNodefind_relative (const XPath &xpath) const
 XPath find function (const) More...
 
XMLNodefind_relative (const XPath &xpath)
 XPath find function. More...
 
XMLNodeget_first_child () const
 
- Public Member Functions inherited from XMLStorage::XS_String
 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_Stringoperator= (LPCXSSTR s)
 
XS_Stringoperator= (const super &s)
 
void assign (LPCXSSTR s)
 
void assign (LPCXSSTR s, size_t l)
 
 operator LPCXSSTR () const
 
XS_Stringprintf (LPCXSSTR fmt,...)
 
XS_Stringvprintf (LPCXSSTR fmt, va_list l)
 
XS_Stringappendf (LPCXSSTR fmt,...)
 
XS_Stringvappendf (LPCXSSTR fmt, va_list l)
 

Additional Inherited Members

- Public Types inherited from XMLStorage::XMLNode
enum  COPY_FLAGS { COPY_NOCHILDREN }
 
- Public Types inherited from XMLStorage::XS_String
typedef std::string super
 
- Public Attributes inherited from XMLStorage::XMLMessage
XMLPos _pos
 
- Public Attributes inherited from XMLStorage::XMLDoc
XMLFormat _format
 
XMLErrorList _errors
 
- Protected Member Functions inherited from XMLStorage::XMLMessage
 XMLMessage ()
 
- Protected Member Functions inherited from XMLStorage::XMLNode
XMLNodecreate_relative (const XPath &xpath)
 relative XPath create function More...
 
XMLNodefilter (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 inherited from XMLStorage::XMLNode
Children _children
 
AttributeMap _attributes
 
std::string _leading
 
std::string _content
 
std::string _end_leading
 
std::string _trailing
 
bool _cdata_content
 

Detailed Description

helper structure to read XML messages from strings

Definition at line 2872 of file xmlstorage.h.

Constructor & Destructor Documentation

◆ XMLMessageFromString()

XMLStorage::XMLMessageFromString::XMLMessageFromString ( const std::string xml_str,
const std::string system_id = std::string() 
)
inline

Definition at line 2874 of file xmlstorage.h.

2875  {
2876  read_buffer(xml_str.c_str(), xml_str.length(), system_id);
2877  }
bool read_buffer(const char *buffer, size_t len, const std::string &system_id=std::string())
Definition: xmlstorage.h:2756
__u8 system_id[8]
Definition: mkdosfs.c:359

The documentation for this struct was generated from the following file: