Represent an object that we are authorizing against (a door).
More...
#include <AuthTarget.hpp>
Represent an object that we are authorizing against (a door).
Definition at line 37 of file AuthTarget.hpp.
◆ ~AuthTarget()
virtual Leosac::Auth::AuthTarget::~AuthTarget |
( |
| ) |
|
|
virtualdefault |
◆ AuthTarget()
AuthTarget::AuthTarget |
( |
const std::string |
target_name | ) |
|
|
explicit |
◆ add_always_close_sched()
◆ add_always_open_sched()
◆ contact_duration() [1/2]
std::chrono::milliseconds Leosac::Auth::AuthTarget::contact_duration |
( |
| ) |
|
◆ contact_duration() [2/2]
void AuthTarget::contact_duration |
( |
std::chrono::milliseconds |
duration | ) |
|
◆ contact_gpio() [1/2]
◆ contact_gpio() [2/2]
void AuthTarget::contact_gpio |
( |
std::unique_ptr< Hardware::FGPIO > |
new_gpio | ) |
|
◆ exitreq_duration() [1/2]
std::chrono::milliseconds Leosac::Auth::AuthTarget::exitreq_duration |
( |
| ) |
|
◆ exitreq_duration() [2/2]
void AuthTarget::exitreq_duration |
( |
std::chrono::milliseconds |
duration | ) |
|
◆ exitreq_gpio() [1/2]
◆ exitreq_gpio() [2/2]
void AuthTarget::exitreq_gpio |
( |
std::unique_ptr< Hardware::FGPIO > |
new_gpio | ) |
|
◆ gpio() [1/2]
Returns the pointer to the optional FGPIO associated with the door.
It may be NULL.
Do not free or keep reference on it longer than the lifetime of the AuthTarget object. If you ever set a new gpio() pointer for this AuthTarget, the previous reference will become invalid.
Definition at line 52 of file AuthTarget.cpp.
◆ gpio() [2/2]
◆ is_always_closed()
bool AuthTarget::is_always_closed |
( |
const std::chrono::system_clock::time_point & |
tp | ) |
const |
Check whether the door is in "always closed" mode at the given time point.
Definition at line 93 of file AuthTarget.cpp.
◆ is_always_open()
bool AuthTarget::is_always_open |
( |
const std::chrono::system_clock::time_point & |
tp | ) |
const |
Check whether the door is in "always open" mode at the given time point.
Definition at line 82 of file AuthTarget.cpp.
◆ name() [1/2]
const std::string & AuthTarget::name |
( |
| ) |
const |
◆ name() [2/2]
void AuthTarget::name |
( |
const std::string & |
new_name | ) |
|
◆ resetToExpectedState()
void AuthTarget::resetToExpectedState |
( |
const std::chrono::system_clock::time_point & |
tp | ) |
|
◆ always_close_
◆ always_open_
◆ contact_duration_
std::chrono::milliseconds Leosac::Auth::AuthTarget::contact_duration_ |
|
protected |
Duration for the Contact Door Sensor to be ignored before triggering an alarm.
Definition at line 123 of file AuthTarget.hpp.
◆ contact_gpio_
Optional Contact Door Sensor GPIO associated with the door.
Definition at line 118 of file AuthTarget.hpp.
◆ exitreq_duration_
std::chrono::milliseconds Leosac::Auth::AuthTarget::exitreq_duration_ |
|
protected |
Duration for the Exit Req to keep the door open.
Definition at line 113 of file AuthTarget.hpp.
◆ exitreq_gpio_
Optional Exit Req GPIO associated with the door.
Definition at line 108 of file AuthTarget.hpp.
◆ gpio_
Optional GPIO associated with the door.
Definition at line 103 of file AuthTarget.hpp.
◆ name_
std::string Leosac::Auth::AuthTarget::name_ |
|
protected |
The documentation for this class was generated from the following files: