XMLStorage::XMLReaderBase Struct Reference

XML reader base class. More...

#include <xmlstorage.h>

Inheritance diagram for XMLStorage::XMLReaderBase:

Inheritance graph
[legend]
Collaboration diagram for XMLStorage::XMLReaderBase:

Collaboration graph
[legend]

Public Member Functions

 XMLReaderBase (XMLNode *node)
virtual ~XMLReaderBase ()
bool parse ()
void read ()
std::string get_position () const
const XMLFormatget_format () const
const char * get_endl () const
const XMLErrorListget_errors () const
const XMLErrorListget_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)
virtual void StartElementHandler (const XS_String &name, const XMLNode::AttributeMap &attributes)
virtual void EndElementHandler ()
virtual void DefaultHandler (const std::string &s)

Protected Attributes

XMLPos _pos
std::string _content
enum
XMLStorage::XMLReaderBase:: { ... }  
_last_tag
XMLErrorList _errors
XMLErrorList _warnings
XMLFormat _format
bool _endl_defined
bool _utf8

Detailed Description

XML reader base class.

Definition at line 1940 of file xmlstorage.h.


Member Enumeration Documentation

anonymous enum [protected]

Enumerator:
TAG_NONE 
TAG_START 
TAG_END 

Definition at line 2032 of file xmlstorage.h.


Constructor & Destructor Documentation

XMLStorage::XMLReaderBase::XMLReaderBase ( XMLNode node  )  [inline]

Definition at line 1990 of file xmlstorage.h.

01991      :  _pos(node),
01992         _endl_defined(false),
01993         _utf8(false)
01994     {
01995         _last_tag = TAG_NONE;
01996     }

virtual XMLStorage::XMLReaderBase::~XMLReaderBase (  )  [virtual]


Member Function Documentation

bool XMLStorage::XMLReaderBase::parse (  ) 

void XMLStorage::XMLReaderBase::read (  ) 

Referenced by XMLStorage::XMLDoc::read().

Here is the caller graph for this function:

std::string XMLStorage::XMLReaderBase::get_position (  )  const

const XMLFormat& XMLStorage::XMLReaderBase::get_format (  )  const [inline]

Definition at line 2010 of file xmlstorage.h.

Referenced by XMLStorage::XMLDoc::read().

02010 {return _format;}

Here is the caller graph for this function:

const char* XMLStorage::XMLReaderBase::get_endl (  )  const [inline]

Definition at line 2011 of file xmlstorage.h.

Referenced by XMLStorage::XMLDoc::read().

02011 {return _endl_defined? _format._endl: "\n";}

Here is the caller graph for this function:

const XMLErrorList& XMLStorage::XMLReaderBase::get_errors (  )  const [inline]

Definition at line 2013 of file xmlstorage.h.

Referenced by XMLStorage::XMLDoc::read().

02013 {return _errors;}

Here is the caller graph for this function:

const XMLErrorList& XMLStorage::XMLReaderBase::get_warnings (  )  const [inline]

Definition at line 2014 of file xmlstorage.h.

02014 {return _warnings;}

void XMLStorage::XMLReaderBase::clear_errors (  )  [inline]

Definition at line 2016 of file xmlstorage.h.

Referenced by XMLStorage::XMLDoc::read().

02016 {_errors.clear(); _warnings.clear();}

Here is the caller graph for this function:

virtual int XMLStorage::XMLReaderBase::get (  )  [protected, pure virtual]

Implemented in XMLStorage::XMLReader.

int XMLStorage::XMLReaderBase::eat_endl (  )  [protected]

void XMLStorage::XMLReaderBase::finish_read (  )  [protected]

virtual void XMLStorage::XMLReaderBase::XmlDeclHandler ( const char *  version,
const char *  encoding,
int  standalone 
) [protected, virtual]

virtual void XMLStorage::XMLReaderBase::StartElementHandler ( const XS_String name,
const XMLNode::AttributeMap attributes 
) [protected, virtual]

virtual void XMLStorage::XMLReaderBase::EndElementHandler (  )  [protected, virtual]

virtual void XMLStorage::XMLReaderBase::DefaultHandler ( const std::string &  s  )  [protected, virtual]


Field Documentation

XMLPos XMLStorage::XMLReaderBase::_pos [protected]

Definition at line 2029 of file xmlstorage.h.

std::string XMLStorage::XMLReaderBase::_content [protected]

Definition at line 2031 of file xmlstorage.h.

enum { ... } XMLStorage::XMLReaderBase::_last_tag [protected]

XMLErrorList XMLStorage::XMLReaderBase::_errors [protected]

Definition at line 2034 of file xmlstorage.h.

XMLErrorList XMLStorage::XMLReaderBase::_warnings [protected]

Definition at line 2035 of file xmlstorage.h.

XMLFormat XMLStorage::XMLReaderBase::_format [protected]

Definition at line 2037 of file xmlstorage.h.

bool XMLStorage::XMLReaderBase::_endl_defined [protected]

Definition at line 2038 of file xmlstorage.h.

bool XMLStorage::XMLReaderBase::_utf8 [protected]

Definition at line 2048 of file xmlstorage.h.


The documentation for this struct was generated from the following file:
IBrowser Source Code Documentation
generated on 18.09.2008 by doxygen

Homepage