ReactOS 0.4.16-dev-852-gcfcc8d8
|
XML reader base class. More...
#include <xmlstorage.h>
Public Member Functions | |
XMLReaderBase (XMLNode *node) | |
virtual | ~XMLReaderBase () |
bool | parse () |
void | read () |
read XML stream into XML tree below _pos | |
std::string | get_position () const |
return current parser position as string | |
const XMLFormat & | get_format () const |
const char * | get_endl () const |
const XMLErrorList & | get_errors () const |
const XMLErrorList & | get_warnings () const |
void | clear_errors () |
Protected Types | |
enum | { TAG_NONE , TAG_START , TAG_END } |
Protected Member Functions | |
virtual int | get ()=0 |
int | eat_endl () |
void | finish_read () |
virtual void | XmlDeclHandler (const char *version, const char *encoding, int standalone) |
store XML version and encoding into XML reader | |
virtual void | StartElementHandler (const XS_String &name, const XMLNode::AttributeMap &attributes) |
notifications about XML start tag | |
virtual void | EndElementHandler () |
notifications about XML end tag | |
virtual void | DefaultHandler (const std::string &s) |
store content, white space and comments | |
Protected Attributes | |
XMLPos | _pos |
std::string | _content |
enum XMLStorage::XMLReaderBase:: { ... } | _last_tag |
XMLErrorList | _errors |
XMLErrorList | _warnings |
XMLFormat | _format |
bool | _endl_defined |
bool | _utf8 |
XML reader base class.
Definition at line 2414 of file xmlstorage.h.
|
protected |
Enumerator | |
---|---|
TAG_NONE | |
TAG_START | |
TAG_END |
Definition at line 2506 of file xmlstorage.h.
|
inline |
Definition at line 2464 of file xmlstorage.h.
|
virtual |
Definition at line 54 of file xs-native.cpp.
|
inline |
Definition at line 2490 of file xmlstorage.h.
|
protected |
Definition at line 389 of file xs-native.cpp.
Referenced by parse().
|
protectedvirtual |
notifications about XML end tag
Definition at line 899 of file xmlstorage.cpp.
Referenced by parse().
|
protected |
Definition at line 831 of file xmlstorage.cpp.
Referenced by read().
|
protectedpure virtual |
Implemented in XMLStorage::XMLReader.
Referenced by eat_endl(), and parse().
Definition at line 2485 of file xmlstorage.h.
|
inline |
Definition at line 2487 of file xmlstorage.h.
Definition at line 2484 of file xmlstorage.h.
std::string XMLStorage::XMLReaderBase::get_position | ( | ) | const |
return current parser position as string
Definition at line 403 of file xs-native.cpp.
|
inline |
Definition at line 2488 of file xmlstorage.h.
bool XMLStorage::XMLReaderBase::parse | ( | ) |
Definition at line 226 of file xs-native.cpp.
Referenced by read().
void XMLStorage::XMLReaderBase::read | ( | ) |
read XML stream into XML tree below _pos
Definition at line 59 of file xs-native.cpp.
|
protectedvirtual |
notifications about XML start tag
Definition at line 856 of file xmlstorage.cpp.
Referenced by parse().
|
protectedvirtual |
store XML version and encoding into XML reader
Definition at line 843 of file xmlstorage.cpp.
Referenced by parse().
|
protected |
Definition at line 2505 of file xmlstorage.h.
Referenced by DefaultHandler(), EndElementHandler(), finish_read(), and StartElementHandler().
|
protected |
Definition at line 2512 of file xmlstorage.h.
Referenced by get_endl(), and parse().
|
protected |
Definition at line 2508 of file xmlstorage.h.
Referenced by clear_errors(), get_errors(), and read().
|
protected |
Definition at line 2511 of file xmlstorage.h.
Referenced by get_endl(), get_format(), parse(), and XmlDeclHandler().
enum { ... } XMLStorage::XMLReaderBase::_last_tag |
Referenced by EndElementHandler(), StartElementHandler(), and XMLReaderBase().
|
protected |
Definition at line 2503 of file xmlstorage.h.
Referenced by EndElementHandler(), finish_read(), and StartElementHandler().
|
protected |
Definition at line 2522 of file xmlstorage.h.
Referenced by parse().
|
protected |
Definition at line 2509 of file xmlstorage.h.
Referenced by clear_errors(), and get_warnings().