Leosac
0.8.0
Open Source Access Control
|
A test helper that fake a WiegandReader (it read command on a socket and send OK) More...
#include <FakeWiegandReader.hpp>
Public Member Functions | |
FakeWiegandReader (zmqpp::context &ctx, const std::string &name) | |
FakeWiegandReader (const FakeWiegandReader &)=delete | |
bool | run (zmqpp::socket *pipe) |
Runs the dummy ready in a thread. More... | |
Private Attributes | |
zmqpp::socket | rep_ |
Receive command here. More... | |
A test helper that fake a WiegandReader (it read command on a socket and send OK)
Definition at line 33 of file FakeWiegandReader.hpp.
FakeWiegandReader::FakeWiegandReader | ( | zmqpp::context & | ctx, |
const std::string & | name | ||
) |
Definition at line 24 of file FakeWiegandReader.cpp.
|
delete |
bool FakeWiegandReader::run | ( | zmqpp::socket * | pipe | ) |
Runs the dummy ready in a thread.
Definition at line 30 of file FakeWiegandReader.cpp.
|
private |
Receive command here.
Definition at line 49 of file FakeWiegandReader.hpp.