|
Leosac
0.8.0
Open Source Access Control
|
Go to the documentation of this file.
35 namespace TestAndReset
42 const boost::property_tree::ptree &cfg,
Base class for module implementation.
void run_test_sequence()
Do some stuff to let the user known something happened.
bool run_on_start_
Play the sequence on module startup.
TestAndResetModule(zmqpp::context &ctx, zmqpp::socket *pipe, const boost::property_tree::ptree &cfg, CoreUtilsPtr utils)
void test_sequence()
Do some stuff to let the user known the test card was read.
std::map< std::string, std::string > device_test_card_
Map a device name to the test card.
zmqpp::socket kernel_sock_
REQ socket to kernel.
This is the header file for a generated source file, GitSHA1.cpp.
bool has_reset_card(const std::string &card_id) const
Search the device_reset_card_ map for an entry whose value is card_id;.
virtual ~TestAndResetModule()
std::unique_ptr< Hardware::FLED > test_led_
Led device for test card.
TestAndResetModule & operator=(const TestAndResetModule &)=delete
std::map< std::string, std::string > device_reset_card_
Map a device name to the reset card, since one device can support one reset card currently.
std::unique_ptr< Hardware::FLED > test_buzzer_
Buzzer device for test card.
zmqpp::socket sub_
Sub socket on the BUS.
std::shared_ptr< CoreUtils > CoreUtilsPtr