Leosac
0.8.0
Open Source Access Control
|
A Zone is a container for doors and other zone. More...
#include <Zone.hpp>
Public Member Functions | |
Zone () | |
virtual ZoneId | id () const override |
virtual std::string | alias () const override |
virtual std::string | description () const override |
virtual void | alias (const std::string &alias) override |
virtual void | description (const std::string &desc) override |
virtual Type | type () const override |
virtual void | type (Type t) override |
virtual std::vector< ZoneLPtr > | children () const override |
Retrieve the children zones. More... | |
virtual std::vector< DoorLPtr > | doors () const override |
Retrieve the doors associated with the zones. More... | |
virtual void | clear_children () override |
virtual void | clear_doors () override |
virtual void | add_door (DoorLPtr door) override |
virtual void | add_child (ZoneLPtr zone) override |
void | validation_callback (odb::callback_event e, odb::database &) const |
Callback function called by ODB before/after database operation against a Zone object. More... | |
Public Member Functions inherited from Leosac::Auth::IZone | |
virtual void | type (Type t)=0 |
Protected Attributes | |
ZoneId | id_ |
std::string | alias_ |
std::string | description_ |
Type | type_ |
std::vector< ZoneLPtr > | children_ |
std::vector< DoorLPtr > | doors_ |
std::vector< ZoneLWPtr > | parents_ |
const size_t | version_ |
Friends | |
class | odb::access |
class | Leosac::TestAccess |
class | ZoneValidator |
Additional Inherited Members | |
Public Types inherited from Leosac::Auth::IZone | |
enum | Type { Type::PHYSICAL = 0x00, Type::LOGICAL = 0x01 } |
Zone's type. More... | |
A Zone is a container for doors and other zone.
This is the ODB-aware implementation.
|
overridevirtual |
Implements Leosac::Auth::IZone.
|
overridevirtual |
Implements Leosac::Auth::IZone.
|
overridevirtual |
Implements Leosac::Auth::IZone.
|
overridevirtual |
Implements Leosac::Auth::IZone.
|
overridevirtual |
Retrieve the children zones.
Implements Leosac::Auth::IZone.
|
overridevirtual |
Implements Leosac::Auth::IZone.
|
overridevirtual |
Implements Leosac::Auth::IZone.
|
overridevirtual |
Implements Leosac::Auth::IZone.
|
overridevirtual |
Implements Leosac::Auth::IZone.
|
overridevirtual |
Retrieve the doors associated with the zones.
Implements Leosac::Auth::IZone.
|
overridevirtual |
Implements Leosac::Auth::IZone.
|
overridevirtual |
Implements Leosac::Auth::IZone.
|
overridevirtual |
void Leosac::Auth::Zone::validation_callback | ( | odb::callback_event | e, |
odb::database & | |||
) | const |
|
friend |
|
friend |
|
protected |
|
protected |