#include <item.hpp>
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.
const std::string & Item::category |
( |
| ) |
const |
const std::string & Item::desc |
( |
| ) |
const |
- Returns
- RSS Item description
const std::string & Item::guid |
( |
| ) |
const |
const std::string & Item::link |
( |
| ) |
const |
Item::operator bool |
( |
| ) |
const |
- Returns
- Whether RSS item is valid.
- Return values
-
true | If title, link and description is filled. |
false | Otherwise. |
Item::operator std::string |
( |
| ) |
const |
|
explicit |
String representation of RSS Item.
Can be used as debug information.
Item::operator! |
( |
| ) |
const |
Unsets all attributes of RSS Item.
Item & Item::set_category |
( |
const std::string & |
category | ) |
|
Sets new value to RSS Item category.
- Parameters
-
category | Category of RSS Item. |
Item & Item::set_desc |
( |
const std::string & |
desc | ) |
|
Sets new value to RSS Item description.
- Parameters
-
desc | Description of RSS Item. |
Item & Item::set_guid |
( |
const std::string & |
guid | ) |
|
Sets new value to RSS Item guid.
- Parameters
-
Item & Item::set_link |
( |
const std::string & |
link | ) |
|
Sets new value to RSS Item link.
- Parameters
-
Item & Item::set_title |
( |
const std::string & |
title | ) |
|
Sets new value to RSS Item title.
- Parameters
-
const std::string & Item::title |
( |
| ) |
const |
The documentation for this class was generated from the following files: