xml_node_rss_channel Class Reference

#include <channel.h>

Inheritance diagram for xml_node_rss_channel:

xml_node_rss xml_node

Public Member Functions

virtual ~xml_node_rss_channel ()
 xml_node_rss_channel (rss_item *the_item, xml_text_reader_by_node &reader, output::pointer out)
 xml_node_rss_channel (const xml_node_rss_channel &)
virtual void element_begin (const nstring &name)
virtual void element_end (const nstring &name)

Private Member Functions

 xml_node_rss_channel ()
xml_node_rss_channeloperator= (const xml_node_rss_channel &)

Private Attributes

rss_itemnew_item

Detailed Description

The xml_node_rss_channel class is used to represent a node processing object for channel elements of RSS feeds.

Instantiating an object of this class will register itself with the xml_text_reader_by_node object (specified in the constructor) as the handler for the channel element (not channel sub-elements).

An RSS item is also specified. This is an item intended to be added to an RSS feed file. The new item's contents will be dumped to the specified output when the channel end element is handled.

This class is used to print channel element begin/ends, but also new items when we are dealing with an RSS feed that contains exactly zero items already. Alternatively, it could be used for feeds that contains items, and we want the new item to be added to the end of the list of existing items. This would probably be unusual, though.

Definition at line 47 of file channel.h.


Constructor & Destructor Documentation

virtual xml_node_rss_channel::~xml_node_rss_channel (  )  [virtual]

The destructor.

xml_node_rss_channel::xml_node_rss_channel ( rss_item the_item,
xml_text_reader_by_node reader,
output::pointer  out 
)

Constructor.

Parameters:
the_item The item to the added. Can be null, in which case only the channel element begin/end are printed.
reader The xml_text_reader using this object.
out The output destination to write to.

xml_node_rss_channel::xml_node_rss_channel ( const xml_node_rss_channel  ) 

The copy constructor.

xml_node_rss_channel::xml_node_rss_channel (  )  [private]

The default constructor. Don't use.


Member Function Documentation

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

Handle element beginings.

Reimplemented from xml_node_rss.

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

Handle element endings.

Reimplemented from xml_node_rss.

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

The assignment operator. Don't use.


Field Documentation

The new item.

Definition at line 89 of file channel.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