Leosac  0.8.0
Open Source Access Control
IAccessPoint.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2014-2016 Leosac
3 
4  This file is part of Leosac.
5 
6  Leosac is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Affero General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Leosac is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Affero General Public License for more details.
15 
16  You should have received a copy of the GNU Affero General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #pragma once
21 
22 #include "core/auth/AuthFwd.hpp"
23 #include <string>
24 
25 namespace Leosac
26 {
27 namespace Auth
28 {
36 {
37  public:
38  virtual AccessPointId id() const = 0;
39 
40  virtual const std::string &alias() const = 0;
41  virtual void alias(const std::string &new_alias) = 0;
42 
43  virtual const std::string &description() const = 0;
44  virtual void description(const std::string &dsc) = 0;
45 
46  virtual void controller_module(const std::string &ctrl_mod) = 0;
47 
51  virtual std::string controller_module() const = 0;
52 
53  virtual IDoorPtr door() const = 0;
54 
55  virtual DoorId door_id() const = 0;
56 };
57 }
58 }
AuthFwd.hpp
Leosac::Auth::IAccessPoint::door
virtual IDoorPtr door() const =0
Leosac::Auth::IAccessPoint::controller_module
virtual std::string controller_module() const =0
The name of the module that manages the access point.
Leosac
This is the header file for a generated source file, GitSHA1.cpp.
Definition: APIStatusCode.hpp:22
Leosac::Auth::IAccessPoint::id
virtual AccessPointId id() const =0
Leosac::Auth::DoorId
unsigned long DoorId
Definition: AuthFwd.hpp:107
Leosac::Auth::IAccessPoint::alias
virtual const std::string & alias() const =0
Leosac::Auth::IDoorPtr
std::shared_ptr< IDoor > IDoorPtr
Definition: AuthFwd.hpp:104
Leosac::Auth::IAccessPoint::door_id
virtual DoorId door_id() const =0
Leosac::Auth::IAccessPoint
An interface for access point.
Definition: IAccessPoint.hpp:35
Leosac::Auth::IAccessPoint::description
virtual const std::string & description() const =0
Leosac::Auth::AccessPointId
unsigned long AccessPointId
Definition: AuthFwd.hpp:128