xml_node_rss Class Reference

#include <rss.h>

Inheritance diagram for xml_node_rss:

xml_node xml_node_rss_channel xml_node_rss_generic xml_node_rss_item xml_node_rss_timedate

Public Member Functions

virtual ~xml_node_rss ()
 xml_node_rss (const xml_node_rss &arg)
virtual void element_begin (const nstring &name)
virtual void element_end (const nstring &name)
virtual void attribute (const nstring &name, const nstring &value)

Protected Member Functions

 xml_node_rss (xml_text_reader_by_node &reader, const output::pointer &out)
void terminate_element_begin ()

Protected Attributes

const xml_text_reader_by_nodexml_reader
output::pointer deeper
bool begin_element_terminated
bool xml_version_printed

Private Member Functions

 xml_node_rss ()
xml_node_rssoperator= (const xml_node_rss &)

Detailed Description

The xml_node_rss class is a base class for specific RSS node processors. It exists merely to group together attributes common to the RSS processors.

Objects of this class cannot be instantiated.

Definition at line 37 of file rss.h.


Constructor & Destructor Documentation

virtual xml_node_rss::~xml_node_rss (  )  [virtual]

The destructor.

xml_node_rss::xml_node_rss ( const xml_node_rss arg  ) 

The copy constructor.

xml_node_rss::xml_node_rss ( xml_text_reader_by_node reader,
const output::pointer out 
) [protected]

Constructor.

Protected so this base class cannot be instantiated.

Parameters:
reader The xml_text_reader_by_node using this object.
out The output destination to write to.

xml_node_rss::xml_node_rss (  )  [private]

The default constructor. Don't use.


Member Function Documentation

virtual void xml_node_rss::element_begin ( const nstring name  )  [virtual]

element_begin handler. Write out the element.

Reimplemented from xml_node.

Reimplemented in xml_node_rss_channel, and xml_node_rss_item.

virtual void xml_node_rss::element_end ( const nstring name  )  [virtual]

element_end handler. Write out the element.

Reimplemented from xml_node.

Reimplemented in xml_node_rss_channel, and xml_node_rss_item.

virtual void xml_node_rss::attribute ( const nstring name,
const nstring value 
) [virtual]

attribute handler. Write out the attribute and value.

Reimplemented from xml_node.

void xml_node_rss::terminate_element_begin (  )  [protected]

Take care of terminating a begin element if necessary.

xml_node_rss& xml_node_rss::operator= ( const xml_node_rss  )  [private]

The assignment operator. Don't use.


Field Documentation

The xmltextreader that is using this object. Store its address so we can register ourselves to handle a whole bunch of RSS elements.

Definition at line 88 of file rss.h.

The output destination to write to.

Definition at line 93 of file rss.h.

Remember if the begin element has been properly terminated with a trailing '>'.

The element_begin handler cannot close the element when it prints it out in case that element contains an attribute. So the opening element must be left unterminated until it is determined if there is an attribute present or not.

Definition at line 104 of file rss.h.

We need to print out the XML version as the first line of output. This doesn't seem to be handled by the xml_text_reader_by_node.

Definition at line 110 of file rss.h.


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

Generated on Wed Mar 12 23:37:45 2008 for Aegis by  doxygen 1.5.5