SyndicationDomination 0.0
An RSS/Atom parser, because there's nothing else out there.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Feed Class Reference

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< FeedItemget_items ()
 
std::string to_json (bool no_items=false)
 Represents the Feed object (itself) as a json, returned as a string.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Feed()

Feed::Feed ( std::string  path)
inline

Constructs the Feed object from a valid RSS/Atom file path.

It will also automatically construct a vector of FeedItem objects representing the feed items or articles found in the feed.

Parameters
patha valid file path to an RSS or Atom XML file.

Member Function Documentation

◆ get_description()

std::string Feed::get_description ( )
inline

◆ get_img_url()

std::string Feed::get_img_url ( )
inline

◆ get_items()

std::vector< FeedItem > Feed::get_items ( )
inline

◆ get_last_update()

std::string Feed::get_last_update ( )
inline

◆ get_rss_url()

std::string Feed::get_rss_url ( )
inline

◆ get_title()

std::string Feed::get_title ( )
inline

◆ get_url()

std::string Feed::get_url ( )
inline

◆ to_json()

std::string Feed::to_json ( bool  no_items = false)

Represents the Feed object (itself) as a json, returned as a string.


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