-
Notifications
You must be signed in to change notification settings - Fork 0
/
Access.cpp
49 lines (37 loc) · 1.4 KB
/
Access.cpp
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
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
#include "Access.h"
Spatch::Configuration::Access::Access(const std::string &id,const std::shared_ptr<User> user, const std::shared_ptr<Credential> cred, const std::shared_ptr<Server> serv)
: _id(id), _user(user), _cred(cred), _serv(serv), _type(Spatch::Configuration::Access::Provided)
{
}
Spatch::Configuration::Access::Access(const std::string &id,const std::shared_ptr<User> user, const Spatch::Configuration::Access::CredentialType type, const std::shared_ptr<Server> serv)
: _id(id), _user(user), _cred(nullptr), _serv(serv), _type(type)
{
}
Spatch::Configuration::Access::~Access()
{
}
const std::string &Spatch::Configuration::Access::getId() const
{
return _id;
}
const std::shared_ptr<Spatch::Configuration::Server> Spatch::Configuration::Access::getServer() const
{
return _serv;
}
const std::shared_ptr<Spatch::Configuration::User> Spatch::Configuration::Access::getUser() const
{
return _user;
}
const std::shared_ptr<Spatch::Configuration::Credential> Spatch::Configuration::Access::getCredential() const
{
return _cred;
}
const Spatch::Configuration::Access::CredentialType Spatch::Configuration::Access::getCredentialType() const
{
return _type;
}