Leosac  0.8.0
Open Source Access Control
Leosac::Auth::AccessPoint Class Reference

#include <AccessPoint.hpp>

+ Inheritance diagram for Leosac::Auth::AccessPoint:
+ Collaboration diagram for Leosac::Auth::AccessPoint:

Public Member Functions

 AccessPoint ()
 
AccessPointId id () const override
 
const std::string & alias () const override
 
void alias (const std::string &new_alias) override
 
const std::string & description () const override
 
void description (const std::string &dsc) override
 
void controller_module (const std::string &ctrl_mod) override
 
std::string controller_module () const override
 The name of the module that manages the access point. More...
 
IDoorPtr door () const override
 
DoorId door_id () const override
 
void attach_update (AccessPointUpdatePtr)
 Attach a new update object to the access-point. More...
 

Protected Attributes

AccessPointId id_
 
std::string alias_
 
std::string description_
 
std::weak_ptr< Doordoor_
 
std::string controller_module_
 Which module is responsible for this access point. More...
 
std::vector< AccessPointUpdateLPtrupdates_
 The history of the updates performed against the access-point. More...
 
const size_t version_
 

Friends

class odb::access
 
class Leosac::TestAccess
 
class Door
 We are friend with Door so Door can set the inverse pointer (door_) when the access-point is set on a door. More...
 

Detailed Description

Definition at line 30 of file AccessPoint.hpp.

Constructor & Destructor Documentation

◆ AccessPoint()

AccessPoint::AccessPoint ( )

Definition at line 28 of file AccessPoint.cpp.

Member Function Documentation

◆ alias() [1/2]

const std::string & AccessPoint::alias ( ) const
overridevirtual

Implements Leosac::Auth::IAccessPoint.

Definition at line 38 of file AccessPoint.cpp.

◆ alias() [2/2]

void AccessPoint::alias ( const std::string &  new_alias)
overridevirtual

Implements Leosac::Auth::IAccessPoint.

Definition at line 43 of file AccessPoint.cpp.

◆ attach_update()

void AccessPoint::attach_update ( AccessPointUpdatePtr  ap_update)

Attach a new update object to the access-point.

The inverse pointer of AccessPointUpdate object will be set so that it points to this access-point.

Definition at line 80 of file AccessPoint.cpp.

◆ controller_module() [1/2]

std::string AccessPoint::controller_module ( ) const
overridevirtual

The name of the module that manages the access point.

Implements Leosac::Auth::IAccessPoint.

Definition at line 58 of file AccessPoint.cpp.

◆ controller_module() [2/2]

void AccessPoint::controller_module ( const std::string &  ctrl_mod)
overridevirtual

Implements Leosac::Auth::IAccessPoint.

Definition at line 63 of file AccessPoint.cpp.

◆ description() [1/2]

const std::string & AccessPoint::description ( ) const
overridevirtual

Implements Leosac::Auth::IAccessPoint.

Definition at line 48 of file AccessPoint.cpp.

◆ description() [2/2]

void AccessPoint::description ( const std::string &  dsc)
overridevirtual

Implements Leosac::Auth::IAccessPoint.

Definition at line 53 of file AccessPoint.cpp.

◆ door()

IDoorPtr AccessPoint::door ( ) const
overridevirtual

Implements Leosac::Auth::IAccessPoint.

Definition at line 68 of file AccessPoint.cpp.

◆ door_id()

DoorId AccessPoint::door_id ( ) const
overridevirtual

Implements Leosac::Auth::IAccessPoint.

Definition at line 73 of file AccessPoint.cpp.

◆ id()

AccessPointId AccessPoint::id ( ) const
overridevirtual

Implements Leosac::Auth::IAccessPoint.

Definition at line 33 of file AccessPoint.cpp.

Friends And Related Function Documentation

◆ Door

friend class Door
friend

We are friend with Door so Door can set the inverse pointer (door_) when the access-point is set on a door.

Definition at line 94 of file AccessPoint.hpp.

◆ Leosac::TestAccess

friend class Leosac::TestAccess
friend

Definition at line 88 of file AccessPoint.hpp.

◆ odb::access

friend class odb::access
friend

Definition at line 86 of file AccessPoint.hpp.

Member Data Documentation

◆ alias_

std::string Leosac::Auth::AccessPoint::alias_
protected

Definition at line 64 of file AccessPoint.hpp.

◆ controller_module_

std::string Leosac::Auth::AccessPoint::controller_module_
protected

Which module is responsible for this access point.

Definition at line 73 of file AccessPoint.hpp.

◆ description_

std::string Leosac::Auth::AccessPoint::description_
protected

Definition at line 65 of file AccessPoint.hpp.

◆ door_

std::weak_ptr<Door> Leosac::Auth::AccessPoint::door_
protected

Definition at line 68 of file AccessPoint.hpp.

◆ id_

AccessPointId Leosac::Auth::AccessPoint::id_
protected

Definition at line 63 of file AccessPoint.hpp.

◆ updates_

std::vector<AccessPointUpdateLPtr> Leosac::Auth::AccessPoint::updates_
protected

The history of the updates performed against the access-point.

Definition at line 80 of file AccessPoint.hpp.

◆ version_

const size_t Leosac::Auth::AccessPoint::version_
protected

Definition at line 83 of file AccessPoint.hpp.


The documentation for this class was generated from the following files: