SyndicationDomination 0.0
An RSS/Atom parser, because there's nothing else out there.
|
Represents an RSS/Atom feed. More...
#include <feed.hpp>
Public Member Functions | |
Feed (std::string path) | |
Constructs the Feed object from a valid RSS/Atom file path. | |
std::string | get_title () |
std::string | get_description () |
std::string | get_url () |
std::string | get_last_update () |
std::string | get_img_url () |
std::string | get_rss_url () |
std::vector< FeedItem > | get_items () |
std::string | to_json (bool no_items=false) |
Represents the Feed object (itself) as a json, returned as a string. | |
Represents an RSS/Atom feed.
Upon construction it will try its best to parse useful information out of the provided file.
In case some value cannot be found, it will just contain an empty string.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::string Feed::to_json | ( | bool | no_items = false | ) |
Represents the Feed object (itself) as a json, returned as a string.