lsxml::XmlReader< _Ty > Class Template Reference

sequential xml reader class More...

#include <lsxml.h>

Inheritance diagram for lsxml::XmlReader< _Ty >:

lsxml::BaseObject lsxml::BaseObject List of all members.

Public Member Functions

 XmlReader (int flags=XRF_DEFAULT)
 ctor
 XmlReader (InputStream< _Ty > *s, int flags=XRF_DEFAULT)
 ctor
 XmlReader (const _Ty *begin, const _Ty *end, int flags=XRF_DEFAULT)
 ctor
 XmlReader (const _Ty *begin, int flags=XRF_DEFAULT)
 ctor
 ~XmlReader ()
 dtor
bool IsOpen () const
 checks if the reader is associated with a stream
void Close ()
 disposes of the stream
bool IsCDATA () const
 checks if the current node is a CDATA text node
XmlReadStatus Read ()
 Reads the next element in the stream.
XmlNodeType GetNodeType () const
 returns the type of the current node
const XmlString< _Ty > * GetNodeValue () const
 returns the value of the current node
const XmlAttribute< _Ty > * GetNodeAttributes () const
 returns the attributes of the current node
int GetNodeAttribCount () const
 returns the number of the current node's attributes
void SetFlags (int flags)
 sets the parser flags
int GetFlags () const
 gets the parser flags
 XmlReader (int flags=XRF_DEFAULT)
 Constructor.
 XmlReader (InputStream< _Ty > *s, int flags=XRF_DEFAULT)
 Constructor.
 XmlReader (const _Ty *begin, const _Ty *end, int flags=XRF_DEFAULT)
 Constructor.
 XmlReader (const _Ty *begin, int flags=XRF_DEFAULT)
 Constructor.
 ~XmlReader ()
 Destructor.
bool OpenFile (const _Ty *filename)
 Opens a file stream.
bool IsOpen () const
 Checks if the reader is associated with a stream.
void Close ()
 Disposes of the stream.
bool IsCDATA () const
 Checks if the current node is a CDATA text node.
XmlReadStatus Read ()
 Reads the next element in the stream.
XmlNodeType GetNodeType () const
 Returns the type of the current node.
const XmlString< _Ty > * GetNodeValue () const
 Returns the value of the current node.
const XmlAttribute< _Ty > * GetNodeAttributes () const
 Returns the attributes of the current node.
int GetNodeAttribCount () const
 Returns the number of the current node's attributes.
void SetFlags (int flags)
 Sets the parser flags.
int GetFlags () const
 Gets the parser flags.

Detailed Description

template<typename _Ty>
class lsxml::XmlReader< _Ty >

sequential xml reader class


Constructor & Destructor Documentation

template<typename _Ty>
lsxml::XmlReader< _Ty >::XmlReader ( int  flags = XRF_DEFAULT  )  [inline]

Constructor.

Parameters:
flags reader flags
See also:
XmlReaderFlags

template<typename _Ty>
lsxml::XmlReader< _Ty >::XmlReader ( InputStream< _Ty > *  s,
int  flags = XRF_DEFAULT 
) [inline]

Constructor.

Parameters:
s the input stream pointer
flags reader flags
See also:
XmlReaderFlags

template<typename _Ty>
lsxml::XmlReader< _Ty >::XmlReader ( const _Ty *  begin,
const _Ty *  end,
int  flags = XRF_DEFAULT 
) [inline]

Constructor.

Parameters:
begin address of the first character of the XML string
end address of the character past the last character of the XML string (if 0, the address of the zero terminating character is taken)
flags reader flags
See also:
XmlReaderFlags

template<typename _Ty>
lsxml::XmlReader< _Ty >::XmlReader ( const _Ty *  begin,
int  flags = XRF_DEFAULT 
) [inline]

Constructor.

Parameters:
begin address of the first character of the XML string
flags reader flags
See also:
XmlReaderFlags


Member Function Documentation

template<typename _Ty>
bool lsxml::XmlReader< _Ty >::OpenFile ( const _Ty *  filename  )  [inline]

Opens a file stream.

Parameters:
filename name of the file to open
Returns:
true on success, false on failure

template<typename _Ty>
void lsxml::XmlReader< _Ty >::SetFlags ( int  flags  ) 

Sets the parser flags.

See also:
XmlReaderFlags

template<typename _Ty>
int lsxml::XmlReader< _Ty >::GetFlags (  )  const [inline]

Gets the parser flags.

See also:
XmlReaderFlags


The documentation for this class was generated from the following files:
Generated on Tue Sep 29 14:51:12 2009 for lsxml by  doxygen 1.5.1-p1