Leosac  0.8.0
Open Source Access Control
Leosac::Test::Helper::FakeWiegandReader Class Reference

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...
 

Detailed Description

A test helper that fake a WiegandReader (it read command on a socket and send OK)

Definition at line 33 of file FakeWiegandReader.hpp.

Constructor & Destructor Documentation

◆ FakeWiegandReader() [1/2]

FakeWiegandReader::FakeWiegandReader ( zmqpp::context &  ctx,
const std::string &  name 
)

Definition at line 24 of file FakeWiegandReader.cpp.

◆ FakeWiegandReader() [2/2]

Leosac::Test::Helper::FakeWiegandReader::FakeWiegandReader ( const FakeWiegandReader )
delete

Member Function Documentation

◆ run()

bool FakeWiegandReader::run ( zmqpp::socket *  pipe)

Runs the dummy ready in a thread.

Definition at line 30 of file FakeWiegandReader.cpp.

Member Data Documentation

◆ rep_

zmqpp::socket Leosac::Test::Helper::FakeWiegandReader::rep_
private

Receive command here.

Definition at line 49 of file FakeWiegandReader.hpp.


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