#include <rss.h>
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_node & | xml_reader |
output::pointer | deeper |
bool | begin_element_terminated |
bool | xml_version_printed |
Private Member Functions | |
xml_node_rss () | |
xml_node_rss & | operator= (const xml_node_rss &) |
Objects of this class cannot be instantiated.
Definition at line 37 of file rss.h.
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.
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.
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.
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.
const xml_text_reader_by_node& xml_node_rss::xml_reader [protected] |
output::pointer xml_node_rss::deeper [protected] |
bool xml_node_rss::begin_element_terminated [protected] |
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.
bool xml_node_rss::xml_version_printed [protected] |
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.