textwolf  0.2
Public Member Functions | Friends | List of all members
textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::Element Class Reference

Iterator element visited. More...

#include <xmlscanner.hpp>

Public Member Functions

bool valid () const
 Check if the element does neither mark the end of document nor reports an error occurred. More...
 
const char * error () const
 Return the current error. More...
 
const char * name () const
 Type of the current element as string. More...
 
ElementType type () const
 Type of the current element. More...
 
const char * content () const
 Value of the current element. More...
 
std::size_t size () const
 Size of the value of the current element in bytes. More...
 
 Element ()
 Constructor. More...
 
 Element (const End &)
 Constructor. More...
 
 Element (const Element &orig)
 Copy constructor. More...
 

Friends

class iterator
 

Detailed Description

template<class InputIterator, class InputCharSet_, class OutputCharSet_, class OutputBuffer_>
class textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::Element

Iterator element visited.

Constructor & Destructor Documentation

template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::Element::Element ( )
inline

Constructor.

template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::Element::Element ( const End )
inline

Constructor.

template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::Element::Element ( const Element orig)
inline

Copy constructor.

Parameters
[in]origelement to copy

Member Function Documentation

template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
const char* textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::Element::content ( ) const
inline

Value of the current element.

Returns
the value as C string
template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
const char* textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::Element::error ( ) const
inline

Return the current error.

Returns
the error string or NULL, if no error occurred
template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
const char* textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::Element::name ( ) const
inline

Type of the current element as string.

Returns
the name as C string
template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
std::size_t textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::Element::size ( ) const
inline

Size of the value of the current element in bytes.

Returns
the size in bytes
template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
ElementType textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::Element::type ( ) const
inline

Type of the current element.

Returns
the type
template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
bool textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::Element::valid ( ) const
inline

Check if the element does neither mark the end of document nor reports an error occurred.

Returns
true, if the element is a valid document element

Friends And Related Function Documentation

template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
friend class iterator
friend

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