]> SALOME platform Git repositories - modules/gde.git/blob - projects/GDE_API_CPP/api/src/Credentials.hpp
Salome HOME
ProfilesService
[modules/gde.git] / projects / GDE_API_CPP / api / src / Credentials.hpp
1 #ifndef GDE_CREDENTIALS_HPP
2 #define GDE_CREDENTIALS_HPP
3
4 #include <string>
5
6 namespace gde {
7
8   class Credentials {
9
10   public:
11     Credentials(const std::string& login="", const std::string& password="")
12       : _login(login), _password(password)
13     {}
14     Credentials(const Credentials& x)
15       : _login(x._login), _password(x._password)
16     {}
17     ~Credentials() {}
18
19     inline std::string getLogin() const { return _login; }
20     inline void setLogin(const std::string& login) { this->_login = login; }
21
22     inline std::string getPassword() const { return _password; }
23     inline void setPassword(const std::string& password) { this->_password = password; }
24
25   private:
26     std::string _login;
27     std::string _password;
28   };
29
30 };
31
32 #endif