forgetIt/ParserClass/FileManContainer/Website.cpp

68 lines
1.1 KiB
C++
Raw Normal View History

2015-03-11 10:52:05 +04:00
/**
* @file Website.cpp
* @brief Website class definitions
* @author manzerbredes
* @date 11 Mars 2015
*
* Contain all implementations of Website class.
*
*/
2015-03-11 16:12:56 +04:00
#include "Website.hpp"
2015-03-11 19:53:47 +04:00
2015-03-14 20:11:18 +04:00
//Constructor
2015-03-11 19:53:47 +04:00
Website::Website(){
2015-03-11 21:32:36 +04:00
2015-03-11 19:53:47 +04:00
}
2015-03-14 20:11:18 +04:00
//----- Getters -----
2015-03-11 16:12:56 +04:00
std::string Website::getTitle(){
return this->title;
}
std::string Website::getUrl(){
return this->url;
}
std::string Website::getUsername(){
return this->username;
}
std::string Website::getPassword(){
return this->password;
}
std::string Website::getDescription(){
return this->description;
}
2015-03-14 20:11:18 +04:00
//----- Setters -----
2015-03-11 16:12:56 +04:00
void Website::setTitle(std::string title){
this->title = title;
}
void Website::setUrl(std::string url){
this->url = url;
}
void Website::setUsername(std::string username){
this->username = username;
}
void Website::setPassword(std::string password){
this->password = password;
}
void Website::setDescription(std::string description){
this->description = description;
}
2015-03-14 18:44:05 +04:00
2015-03-14 20:11:18 +04:00
//Equality comparator
2015-03-14 18:44:05 +04:00
bool Website::operator==(const Website& website) const{
if((this->getId()).compare(website.getId())==0){
return true;
}
return false;
}