Lazy RSS
Public Member Functions | List of all members
item::Item Class Reference

#include <item.hpp>

Public Member Functions

 Item () noexcept(true)
 Default constructor for empty Item. More...
 
 Item (const std::string &title, const std::string &category, const std::string &link, const std::string &guid, const std::string &desc) noexcept(true)
 Initialization constructor of Item. More...
 
const std::string & title () const
 
Itemset_title (const std::string &title)
 Sets new value to RSS Item title. More...
 
const std::string & category () const
 
Itemset_category (const std::string &category)
 Sets new value to RSS Item category. More...
 
const std::string & link () const
 
Itemset_link (const std::string &link)
 Sets new value to RSS Item link. More...
 
const std::string & guid () const
 
Itemset_guid (const std::string &guid)
 Sets new value to RSS Item guid. More...
 
const std::string & desc () const
 
Itemset_desc (const std::string &desc)
 Sets new value to RSS Item description. More...
 
void reset ()
 Unsets all attributes of RSS Item. More...
 
 operator std::string () const
 String representation of RSS Item. More...
 
 operator bool () const
 
 operator! () const
 

Constructor & Destructor Documentation

Item::Item ( )
noexcept

Default constructor for empty Item.

Item::Item ( const std::string &  title,
const std::string &  category,
const std::string &  link,
const std::string &  guid,
const std::string &  desc 
)
noexcept

Initialization constructor of Item.

Member Function Documentation

const std::string & Item::category ( ) const
Returns
RSS item category
const std::string & Item::desc ( ) const
Returns
RSS Item description
const std::string & Item::guid ( ) const
Returns
RSS Item guid
const std::string & Item::link ( ) const
Returns
RSS Item link
Item::operator bool ( ) const
Returns
Whether RSS item is valid.
Return values
trueIf title, link and description is filled.
falseOtherwise.
Item::operator std::string ( ) const
explicit

String representation of RSS Item.

Can be used as debug information.

Item::operator! ( ) const
Returns
Negative of bool.
void Item::reset ( )

Unsets all attributes of RSS Item.

Item & Item::set_category ( const std::string &  category)

Sets new value to RSS Item category.

Parameters
categoryCategory of RSS Item.
Item & Item::set_desc ( const std::string &  desc)

Sets new value to RSS Item description.

Parameters
descDescription of RSS Item.
Item & Item::set_guid ( const std::string &  guid)

Sets new value to RSS Item guid.

Parameters
guidguid of RSS Item.
Item & Item::set_link ( const std::string &  link)

Sets new value to RSS Item link.

Parameters
linkLink of RSS Item.
Item & Item::set_title ( const std::string &  title)

Sets new value to RSS Item title.

Parameters
titleTitle of RSS Item.
const std::string & Item::title ( ) const
Returns
RSS Item title.

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