cpp-ElementTree
Python ElementTree-alike XML API for C++
Public Member Functions | List of all members
etree::feed::Feed Class Reference

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< Itemitems () 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.
 

Detailed Description

Represents a feed.

Use etree::makeFeed() to create a blank feed.

Member Function Documentation

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.

Returns
The new item.
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.

Parameters
itemItem to append.

The documentation for this class was generated from the following files: