blob: f65a66d2c25cb07c892beec0b170400b4b50d2c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
/**
* @file Website.cpp
* @brief Website class definitions
* @author manzerbredes
* @date 11 Mars 2015
*
* Contain all implementations of Website class.
*
*/
#include "Website.hpp"
//Constructor
Website::Website(){
}
//----- Getters -----
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;
}
//----- Setters -----
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;
}
//Equality comparator
bool Website::operator==(const Website& website) const{
if((this->getId()).compare(website.getId())==0){
return true;
}
return false;
}
|