ReactOS 0.4.15-dev-6680-g8c76870
|
on the fly XML writer More...
#include <xmlstorage.h>
Classes | |
struct | StackEntry |
container for XMLWriter state information More... | |
Public Types | |
enum | WRITESTATE { NOTHING , ATTRIBUTES , PRE_CLOSED , POST } |
Public Member Functions | |
XMLWriter (std::ostream &out, const XMLFormat &format=XMLFormat()) | |
XMLWriter (LPCTSTR path, const XMLFormat &format=XMLFormat()) | |
~XMLWriter () | |
void | create (const XS_String &name) |
create node and move to it | |
bool | back () |
go back to previous position | |
void | put (const XS_String &attr_name, const XS_String &value) |
attribute setting | |
XS_String & | operator[] (const XS_String &attr_name) |
index operator write access to an attribute | |
void | set_content (const XS_String &s, bool cdata=false) |
void | create_node_content (const XS_String &node_name, const XS_String &content) |
create node with string content | |
Protected Types | |
typedef XMLNode::AttributeMap | AttrMap |
Protected Member Functions | |
void | close_pre (StackEntry &entry) |
void | write_pre (StackEntry &entry) |
void | write_attributes (StackEntry &entry) |
void | write_post (StackEntry &entry) |
Protected Attributes | |
tofstream * | _pofstream |
std::ostream & | _out |
XMLFormat | _format |
std::stack< StackEntry > | _stack |
Static Protected Attributes | |
static XS_String | s_empty_attr |
on the fly XML writer
Definition at line 2901 of file xmlstorage.h.
|
protected |
Definition at line 2971 of file xmlstorage.h.
Enumerator | |
---|---|
NOTHING | |
ATTRIBUTES | |
PRE_CLOSED | |
POST |
Definition at line 2962 of file xmlstorage.h.
|
inline |
Definition at line 2903 of file xmlstorage.h.
Definition at line 2911 of file xmlstorage.h.
|
inline |
Definition at line 2919 of file xmlstorage.h.
bool XMLStorage::XMLWriter::back | ( | ) |
go back to previous position
Definition at line 972 of file xmlstorage.cpp.
Referenced by create_node_content().
|
protected |
Definition at line 983 of file xmlstorage.cpp.
Referenced by create(), and write_post().
create node and move to it
Definition at line 952 of file xmlstorage.cpp.
|
inline |
create node with string content
Definition at line 2954 of file xmlstorage.h.
index operator write access to an attribute
Definition at line 2939 of file xmlstorage.h.
attribute setting
Definition at line 2932 of file xmlstorage.h.
Definition at line 2947 of file xmlstorage.h.
Referenced by create_node_content().
|
protected |
Definition at line 1004 of file xmlstorage.cpp.
Referenced by create(), and write_post().
|
protected |
Definition at line 1012 of file xmlstorage.cpp.
Referenced by back().
|
protected |
Definition at line 990 of file xmlstorage.cpp.
Referenced by create().
|
protected |
Definition at line 2969 of file xmlstorage.h.
Referenced by write_post(), write_pre(), and ~XMLWriter().
|
protected |
Definition at line 2968 of file xmlstorage.h.
Referenced by close_pre(), write_attributes(), write_post(), write_pre(), XMLWriter(), and ~XMLWriter().
|
protected |
Definition at line 2967 of file xmlstorage.h.
Referenced by ~XMLWriter().
|
protected |
Definition at line 2984 of file xmlstorage.h.
Referenced by back(), create(), operator[](), put(), set_content(), write_post(), and write_pre().
|
staticprotected |
Definition at line 2986 of file xmlstorage.h.
Referenced by operator[]().