diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-03-21 07:08:34 +0100 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-03-21 07:08:34 +0100 |
| commit | 3a10207bf5ddf14c478623b6e32ff72af6379a48 (patch) | |
| tree | 8506da971d0661fc074b0b79a56fe705273d1c32 /src/ParserClass/FileManContainer/Website.cpp | |
| parent | 77affb6d5564f691ea337a3971fdc85f2460ed92 (diff) | |
| parent | 697d44fd357779309bb0c1931f589a92bb88a642 (diff) | |
Merge branch 'PARSER'
Diffstat (limited to 'src/ParserClass/FileManContainer/Website.cpp')
| -rw-r--r-- | src/ParserClass/FileManContainer/Website.cpp | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/src/ParserClass/FileManContainer/Website.cpp b/src/ParserClass/FileManContainer/Website.cpp new file mode 100644 index 0000000..f65a66d --- /dev/null +++ b/src/ParserClass/FileManContainer/Website.cpp @@ -0,0 +1,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; +} + |
