forgetIt/ParserClass/FileManContainer/Website.cpp

64 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
Website::Website(){
boost::uuids::uuid uuid = boost::uuids::random_generator()();
std::stringstream ss;
ss << uuid;
this->id=ss.str();
}
std::string Website::getId(){
return this->id;
}
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-11 19:53:47 +04:00
void Website::setId(std::string id){
this->id = id;
}
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;
}