Leosac
0.8.0
Open Source Access Control
|
Interface for a strategy that read a PIN code. More...
#include <PinReading.hpp>
Public Member Functions | |
PinReading (WiegandReaderImpl *reader) | |
virtual const std::string & | get_pin () const =0 |
Retrieve the pin code that was read from the reader. More... | |
Public Member Functions inherited from Leosac::Module::Wiegand::Strategy::WiegandStrategy | |
WiegandStrategy (WiegandReaderImpl *reader) | |
virtual | ~WiegandStrategy ()=default |
virtual void | timeout ()=0 |
This is called when the module detect a timeout. More... | |
virtual bool | completed () const =0 |
Did the strategy gather needed data? If this function returns true, that means that the strategy implementation successfully retrieve data from wiegand bits. More... | |
virtual void | signal (zmqpp::socket &sock)=0 |
Tells the strategy implementation to send a message to the application containing the received credentials. More... | |
virtual void | reset ()=0 |
Reset the strategy, meaning that the next time timeout() is called the behavior should be the same than the first time. More... | |
virtual void | set_reader (WiegandReaderImpl *new_ptr) |
Update the pointer that points back to the associated reader. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Leosac::Module::Wiegand::Strategy::WiegandStrategy | |
WiegandReaderImpl * | reader_ |
Interface for a strategy that read a PIN code.
Definition at line 37 of file PinReading.hpp.
|
inline |
Definition at line 40 of file PinReading.hpp.
|
pure virtual |
Retrieve the pin code that was read from the reader.
Implemented in Leosac::Module::Wiegand::Strategy::WiegandPinNBitsOnly< NbBits >, and Leosac::Module::Wiegand::Strategy::WiegandPinBuffered.