23 #include "zmqpp/zmqpp.hpp"    24 #include <boost/any.hpp>    34 class WiegandReaderImpl;
    37 class WiegandStrategy;
    85     virtual void signal(zmqpp::socket &sock) = 0;
    94     virtual void reset() = 0;
 virtual ~WiegandStrategy()=default
 
std::unique_ptr< WiegandStrategy > WiegandStrategyUPtr
 
An implementation class that represents a Wiegand Reader. 
 
WiegandStrategy(WiegandReaderImpl *reader)
 
This is the header file for a generated source file, GitSHA1.cpp. 
 
WiegandReaderImpl * reader_
 
virtual void reset()=0
Reset the strategy, meaning that the next time timeout() is called the behavior should be the same th...
 
virtual void signal(zmqpp::socket &sock)=0
Tells the strategy implementation to send a message to the application containing the received creden...
 
The multiple modes available to wiegand reader are implemented through the strategy pattern...
 
virtual bool completed() const =0
Did the strategy gather needed data? If this function returns true, that means that the strategy impl...
 
virtual void timeout()=0
This is called when the module detect a timeout. 
 
virtual void set_reader(WiegandReaderImpl *new_ptr)
Update the pointer that points back to the associated reader.