|
Leosac
0.8.0
Open Source Access Control
|
Go to the documentation of this file.
53 virtual void timeout()
override;
57 virtual void signal(zmqpp::socket &sock)
override;
67 void reset()
override;
73 using TimePoint = std::chrono::system_clock::time_point;
std::unique_ptr< CardReading > CardReadingUPtr
virtual bool completed() const override
Did the strategy gather needed data? If this function returns true, that means that the strategy impl...
void reset() override
Reset self.
An implementation class that represents a Wiegand Reader.
Strategy for reading a card then a PIN code.
virtual void signal(zmqpp::socket &sock) override
Tells the strategy implementation to send a message to the application containing the received creden...
PinReadingUPtr read_pin_strategy_
This is the header file for a generated source file, GitSHA1.cpp.
CardReadingUPtr read_card_strategy_
WiegandCardAndPin(WiegandReaderImpl *reader, CardReadingUPtr read_card, PinReadingUPtr read_pin, std::chrono::milliseconds delay)
Create a strategy that read card and PIN code.
std::chrono::system_clock::time_point TimePoint
virtual void set_reader(WiegandReaderImpl *new_ptr) override
Update the pointer that points back to the associated reader.
The multiple modes available to wiegand reader are implemented through the strategy pattern.
std::chrono::milliseconds delay_
std::unique_ptr< PinReading > PinReadingUPtr
virtual void timeout() override
This is called when the module detect a timeout.
TimePoint time_card_read_