Leosac  0.8.0
Open Source Access Control
Leosac::Module::Wiegand::Strategy::PinReading Class Referenceabstract

Interface for a strategy that read a PIN code. More...

#include <PinReading.hpp>

+ Inheritance diagram for Leosac::Module::Wiegand::Strategy::PinReading:
+ Collaboration diagram for Leosac::Module::Wiegand::Strategy::PinReading:

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

Detailed Description

Interface for a strategy that read a PIN code.

Definition at line 37 of file PinReading.hpp.

Constructor & Destructor Documentation

◆ PinReading()

Leosac::Module::Wiegand::Strategy::PinReading::PinReading ( WiegandReaderImpl reader)

Definition at line 40 of file PinReading.hpp.

Member Function Documentation

◆ get_pin()

virtual const std::string& Leosac::Module::Wiegand::Strategy::PinReading::get_pin ( ) const
pure virtual

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