Update parser
This commit is contained in:
parent
1f12bca33f
commit
84c669f82a
5 changed files with 94 additions and 91 deletions
|
@ -12,14 +12,14 @@
|
|||
#include "Website.hpp"
|
||||
|
||||
|
||||
//Constructor
|
||||
Website::Website(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//----- Getters -----
|
||||
std::string Website::getTitle(){
|
||||
return this->title;
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ std::string Website::getDescription(){
|
|||
|
||||
|
||||
|
||||
|
||||
//----- Setters -----
|
||||
void Website::setTitle(std::string title){
|
||||
this->title = title;
|
||||
}
|
||||
|
@ -56,6 +56,8 @@ void Website::setDescription(std::string description){
|
|||
}
|
||||
|
||||
|
||||
|
||||
//Equality comparator
|
||||
bool Website::operator==(const Website& website) const{
|
||||
if((this->getId()).compare(website.getId())==0){
|
||||
return true;
|
||||
|
|
|
@ -64,9 +64,12 @@ class Website : public AbstractIDManager {
|
|||
void setPassword(std::string password);
|
||||
void setDescription(std::string description);
|
||||
|
||||
//bool operator==(Website const& website1, Website const& website2) const;
|
||||
|
||||
/**
|
||||
* @brief Equality comparator
|
||||
*/
|
||||
bool operator==(const Website& website) const;
|
||||
|
||||
private:
|
||||
|
||||
std::string title; ///< Title of the website
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue