Leosac
0.8.0
Open Source Access Control
|
The interface for zones. More...
#include <IZone.hpp>
Public Types | |
enum | Type { Type::PHYSICAL = 0x00, Type::LOGICAL = 0x01 } |
Zone's type. More... | |
Public Member Functions | |
virtual ZoneId | id () const =0 |
virtual std::string | alias () const =0 |
virtual std::string | description () const =0 |
virtual Type | type () const =0 |
virtual void | alias (const std::string &alias)=0 |
virtual void | description (const std::string &desc)=0 |
virtual void | type (Type t)=0 |
virtual void | clear_children ()=0 |
virtual void | clear_doors ()=0 |
virtual void | add_door (DoorLPtr door)=0 |
virtual void | add_child (ZoneLPtr zone)=0 |
virtual std::vector< ZoneLPtr > | children () const =0 |
Retrieve the children zones. More... | |
virtual std::vector< DoorLPtr > | doors () const =0 |
Retrieve the doors associated with the zones. More... | |
The interface for zones.
A zone is a hierarchical container for doors and other zones. It allows users to better organize their doors and allows easier schedule management.
A zone have one of two Type and any number of doors and child zones.
There is a few rules to respect:
|
strong |
|
pure virtual |
Implemented in Leosac::Auth::Zone.
|
pure virtual |
Implemented in Leosac::Auth::Zone.
|
pure virtual |
Implemented in Leosac::Auth::Zone.
|
pure virtual |
Implemented in Leosac::Auth::Zone.
|
pure virtual |
Retrieve the children zones.
Implemented in Leosac::Auth::Zone.
|
pure virtual |
Implemented in Leosac::Auth::Zone.
|
pure virtual |
Implemented in Leosac::Auth::Zone.
|
pure virtual |
Implemented in Leosac::Auth::Zone.
|
pure virtual |
Implemented in Leosac::Auth::Zone.
|
pure virtual |
Retrieve the doors associated with the zones.
Implemented in Leosac::Auth::Zone.
|
pure virtual |
Implemented in Leosac::Auth::Zone.
|
pure virtual |
Implemented in Leosac::Auth::Zone.
|
pure virtual |