Leosac  0.8.0
Open Source Access Control
Leosac::Module::Doorman::DoormanDoor Class Reference

Implements a Doorman Door, that is, a component that will listen to door specific event unrelated to authentication and react accordingly. More...

#include <DoormanDoor.hpp>

+ Collaboration diagram for Leosac::Module::Doorman::DoormanDoor:

Public Member Functions

 DoormanDoor (const Auth::AuthTargetPtr &door, zmqpp::context &ctx)
 Create a new doorman door. More...
 
 DoormanDoor (const DoormanDoor &)=delete
 
DoormanDooroperator= (const DoormanDoor &)=delete
 
zmqpp::socket & bus_sub ()
 
void handle_bus_msg ()
 Activity we care about happened on the bus. More...
 
Leosac::Auth::AuthTargetPtr door () const
 

Private Attributes

Leosac::Auth::AuthTargetPtr door_
 
zmqpp::socket bus_sub_
 
std::string topic_exitreq_
 
std::string topic_contact_
 
bool contact_triggered
 
std::chrono::system_clock::time_point contact_lastupdate
 

Detailed Description

Implements a Doorman Door, that is, a component that will listen to door specific event unrelated to authentication and react accordingly.

Definition at line 37 of file DoormanDoor.hpp.

Constructor & Destructor Documentation

◆ DoormanDoor() [1/2]

DoormanDoor::DoormanDoor ( const Auth::AuthTargetPtr door,
zmqpp::context &  ctx 
)

Create a new doorman door.

Parameters
doorThe door that we wish to watch events for
ctxZeroMQ context
actionslist of action to do when an event

Definition at line 27 of file DoormanDoor.cpp.

◆ DoormanDoor() [2/2]

Leosac::Module::Doorman::DoormanDoor::DoormanDoor ( const DoormanDoor )
delete

Member Function Documentation

◆ bus_sub()

zmqpp::socket & DoormanDoor::bus_sub ( )

Definition at line 51 of file DoormanDoor.cpp.

◆ door()

Leosac::Auth::AuthTargetPtr DoormanDoor::door ( ) const

Definition at line 46 of file DoormanDoor.cpp.

◆ handle_bus_msg()

void DoormanDoor::handle_bus_msg ( )

Activity we care about happened on the bus.

Definition at line 56 of file DoormanDoor.cpp.

◆ operator=()

DoormanDoor& Leosac::Module::Doorman::DoormanDoor::operator= ( const DoormanDoor )
delete

Member Data Documentation

◆ bus_sub_

zmqpp::socket Leosac::Module::Doorman::DoormanDoor::bus_sub_
private

Definition at line 66 of file DoormanDoor.hpp.

◆ contact_lastupdate

std::chrono::system_clock::time_point Leosac::Module::Doorman::DoormanDoor::contact_lastupdate
private

Definition at line 74 of file DoormanDoor.hpp.

◆ contact_triggered

bool Leosac::Module::Doorman::DoormanDoor::contact_triggered
private

Definition at line 72 of file DoormanDoor.hpp.

◆ door_

Leosac::Auth::AuthTargetPtr Leosac::Module::Doorman::DoormanDoor::door_
private

Definition at line 64 of file DoormanDoor.hpp.

◆ topic_contact_

std::string Leosac::Module::Doorman::DoormanDoor::topic_contact_
private

Definition at line 70 of file DoormanDoor.hpp.

◆ topic_exitreq_

std::string Leosac::Module::Doorman::DoormanDoor::topic_exitreq_
private

Definition at line 68 of file DoormanDoor.hpp.


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