|
cpp-ElementTree
Python ElementTree-alike XML API for C++
|
Represents a feed. More...
#include <feed.hpp>
Public Member Functions | |
| Item | append () |
| Create an empty item in the correct format and append it to this feed. More... | |
| void | append (Item item) |
| Append an item to this feed, removing it from its present feed. More... | |
| std::string | description () const |
| Fetch the feed description. | |
| void | description (const std::string &s) |
| Set the feed description. | |
| Element | element () const |
| Fetch the underlying etree::Element representing the feed. | |
| enum feed_format | format () const |
| Return the format of this feed. | |
| std::string | icon () const |
| Fetch the feed icon URL. | |
| void | icon (const std::string &s) |
| Set the feed icon URL. | |
| std::vector< Item > | items () const |
| Fetch a vector of all the feed's items. | |
| std::string | link () const |
| Fetch the feed's link, which is usually its associated web site or topic page. | |
| void | link (const std::string &s) |
| Set the feed's link. | |
| std::string | title () const |
| Fetch the feed title. | |
| void | title (const std::string &s) |
| Set the feed title. | |
Represents a feed.
Use etree::makeFeed() to create a blank feed.
| Item etree::feed::Feed::append | ( | ) |
Create an empty item in the correct format and append it to this feed.
Avoids a potentially redundant conversion in the case of populating a brand new feed.
| void etree::feed::Feed::append | ( | Item | item | ) |
Append an item to this feed, removing it from its present feed.
If the destination feed differs in format from the item, the item is converted in-place, discarding any non-essential data.
| item | Item to append. |
1.8.11