13 #include "element.hpp" 32 time_t parseRfc822Date_(std::string);
33 time_t parseIso8601Date_(std::string s);
34 std::string stripWs_(
const std::string &s);
36 formatIso8601_(time_t t);
38 formatRfc822_(time_t t);
87 friend FeedFormat &formatFor__(
const T &);
89 const ItemFormat &format_;
104 std::string
title()
const;
111 void title(
const std::string &s);
116 std::string
link()
const;
123 void link(
const std::string &s);
135 void content(
const std::string &s);
152 std::string
author()
const;
160 void author(
const std::string &author);
165 std::string
guid()
const;
172 void guid(
const std::string &s);
218 friend FeedFormat &formatFor__(
const T &);
220 const FeedFormat &format_;
226 Feed(
const FeedFormat &format,
const Element &elem);
236 std::string
title()
const;
241 void title(
const std::string &s);
247 std::string
link()
const;
252 void link(
const std::string &s);
257 std::string description()
const;
262 void description(
const std::string &s);
267 std::string icon()
const;
272 void icon(
const std::string &s);
277 std::vector<Item> items()
const;
297 void append(
Item item);
Equivalent to MIME type text/html.
Definition: feed.hpp:59
Represents a reference to a single XML element.
Definition: element.hpp:721
time_t published() const
Return the item's published date as a UNIX timestamp.
Definition: feed.cpp:216
std::string link() const
Return the item link URL, or the empty string.
Definition: feed.cpp:152
ATOM.
Definition: feed.hpp:48
feed_format
Enumeration of supported feed types.
Definition: feed.hpp:44
std::string title() const
Return the item title.
Definition: feed.cpp:140
Represents a feed.
Definition: feed.hpp:215
ElementTree namespace; public classes and functions are defined here.
Definition: element.cpp:28
Represent a single feed item.
Definition: feed.hpp:84
content_type
Enumeration of possible content types for an element's content.
Definition: feed.hpp:55
enum content_type type() const
Return the item content's content type.
Definition: feed.cpp:174
std::string originalGuid() const
Return the item's GUID as it appeared in the original source feed, or the present GUID if no original...
Definition: feed.cpp:210
RSS 2.0.
Definition: feed.hpp:46
Equivalent to MIME type text/plain.
Definition: feed.hpp:57
std::string guid() const
Return the item GUID, often this is simply the item URL.
Definition: feed.cpp:198
std::string author() const
Return the item author name, or the empty string.
Definition: feed.cpp:186
Feed fromelement(Element elem)
Wrap an Element containing a feed and return a reference.
Definition: feed.cpp:804
std::string content() const
Return the item content, or the empty string.
Definition: feed.cpp:163
Feed create(enum feed_format f)
Create a new completely empty feed in the specified format.
Definition: feed.cpp:796
time_t updated() const
Return the item's updated date as a UNIX timestamp.
Definition: feed.cpp:228