|
Aegis
4.25.D505
|
#include <feed.h>
The rss_feed class is used to represent an RSS feed.
Is is assumed that the client using this class has confirmed that the project and change passed in are valid and exist.
| virtual rss_feed::~rss_feed | ( | ) | [virtual] |
The destructor.
| rss_feed::rss_feed | ( | project * | the_project, |
| change::pointer | the_change, | ||
| const nstring & | the_file | ||
| ) |
Constructor.
| the_project | A pointer to a project. |
| the_change | A pointer to a change. |
| the_file | A pointer to the filename associated with this feed. |
| rss_feed::rss_feed | ( | ) | [private] |
The default constructor. Don't use.
| rss_feed::rss_feed | ( | const rss_feed & | arg | ) | [private] |
The copy constructor. Do not use.
| rss_item* rss_feed::back | ( | ) | const |
The back method is used to obtain the last item on the list.
The channel_elements_from_change method is used to set the craete a new feed item, and set its descriptive elements from the given change.
The channel_elements_from_project method is used to set the channel's descriptive elements from the given project.
| void rss_feed::description_set | ( | const nstring & | rg | ) |
| void rss_feed::handle_item | ( | ) |
| void rss_feed::handle_item_author | ( | const nstring & | value | ) |
| void rss_feed::handle_item_category | ( | const nstring & | value | ) |
| void rss_feed::handle_item_comments | ( | const nstring & | value | ) |
| void rss_feed::handle_item_description | ( | const nstring & | value | ) |
| void rss_feed::handle_item_enclosure | ( | const nstring & | value | ) |
| void rss_feed::handle_item_guid | ( | const nstring & | value, |
| bool | attr | ||
| ) |
| void rss_feed::handle_item_link | ( | const nstring & | value | ) |
| void rss_feed::handle_item_pub_date | ( | const nstring & | value | ) |
| void rss_feed::handle_item_source | ( | const nstring & | value | ) |
| void rss_feed::handle_item_title | ( | const nstring & | value | ) |
The assignment operator. Do not use.
| void rss_feed::parse | ( | ) |
The parse method is used to read and parse the RSS feed file into this object. All items read from the file are appended to the feed, via the push_back method. If the file does not exits, this method does nothing.
| void rss_feed::print | ( | ) | const |
The print method is used to print the contents of the feed to the file named in the constructor.
| void rss_feed::print | ( | output::pointer | op | ) | const |
The print method is used to print the contents of the feed to the file named in the constructor.
| op | The output stream in which to write the output. |
| void rss_feed::push_back | ( | rss_item * | the_item | ) |
Add an item to the RSS feed.
| the_item | The new item to be added to the feed. |
| size_t rss_feed::size | ( | void | ) | const [inline] |
| void rss_feed::title_set | ( | const nstring & | rg | ) |
change::pointer rss_feed::cp [private] |
nstring rss_feed::description [private] |
nstring rss_feed::docs [private] |
The docs instance variable is used to remember A URL that points to the documentation for the format used in the RSS file. It's probably a pointer to this page. It's for people who might stumble across an RSS file on a Web server 25 years from now and wonder what it is.
nstring rss_feed::filename [private] |
nstring rss_feed::generator [private] |
rss_item** rss_feed::item [private] |
size_t rss_feed::item_count [private] |
size_t rss_feed::item_max [private] |
nstring rss_feed::language [private] |
nstring rss_feed::last_build_date [private] |
nstring rss_feed::link [private] |
project* rss_feed::pp [private] |
nstring rss_feed::pub_date [private] |
nstring rss_feed::title [private] |
The title instance variable is used to remember The name of the channel. It's how people refer to your service. If you have an HTML website that contains the same information as your RSS file, the title of your channel should be the same as the title of your website.
1.7.6.1