#include <channel.h>
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_channel & | operator= (const xml_node_rss_channel &) |
Private Attributes | |
rss_item * | new_item |
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.
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.
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.
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.
rss_item* xml_node_rss_channel::new_item [private] |