32 NOTICE(
"Changing target name (from " <<
name_ <<
" to " << param);
58 gpio_ = std::move(new_gpio);
62 const std::chrono::system_clock::time_point &tp)
const 66 if (sched->is_in_schedule(tp))
73 const std::chrono::system_clock::time_point &tp)
const 77 if (sched->is_in_schedule(tp))
bool 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.
std::vector< Tools::IScheduleCPtr > always_open_
A Facade to a GPIO object.
std::vector< Tools::IScheduleCPtr > always_close_
Hardware::FGPIO * gpio()
Returns the pointer to the optional FGPIO associated with the door.
void add_always_open_sched(const Tools::IScheduleCPtr &sched)
std::unique_ptr< Hardware::FGPIO > gpio_
Optional GPIO associated with the door.
Holds classes relevant to the Authentication and Authorization subsystem.
const std::string & name() const
void add_always_close_sched(const Tools::IScheduleCPtr &sched)
AuthTarget(const std::string target_name)
bool 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.