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;
An implementation class that represents a Wiegand Reader.
This is the header file for a generated source file, GitSHA1.cpp.
virtual void timeout() override
This is called when the module detect a timeout.
std::unique_ptr< CardReading > CardReadingUPtr
virtual void signal(zmqpp::socket &sock) override
Tells the strategy implementation to send a message to the application containing the received creden...
std::unique_ptr< PinReading > PinReadingUPtr
CardReadingUPtr read_card_strategy_
PinReadingUPtr read_pin_strategy_
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...
Strategy for reading a card then a PIN code.
virtual bool completed() const override
Did the strategy gather needed data? If this function returns true, that means that the strategy impl...
std::chrono::milliseconds delay_
TimePoint time_card_read_
WiegandCardAndPin(WiegandReaderImpl *reader, CardReadingUPtr read_card, PinReadingUPtr read_pin, std::chrono::milliseconds delay)
Create a strategy that read card and PIN code.
void reset() override
Reset self.