LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
wiegandformat.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_WIEGANDFORMAT_HPP
8#define LOGICALACCESS_WIEGANDFORMAT_HPP
9
11
12namespace logicalaccess
13{
17class LLA_CORE_API WiegandFormat : public StaticFormat
18{
19 public:
26
32 virtual ~WiegandFormat();
33
38 unsigned char getLeftParity() const;
39
44 unsigned char getRightParity() const;
45
51 ByteVector getLinearData() const override;
52
59
65 void setLinearData(const ByteVector &data) override;
66
72 virtual void setLinearDataWithoutParity(const ByteVector &data) = 0;
73
74 protected:
78 unsigned int d_leftParityLength;
79
84
88 unsigned int d_rightParityLength;
89
94};
95}
96
97#endif /* LOGICALACCESS_WIEGANDFORMAT_HPP */
Definition: BitsetStream.hpp:15
A static format.
Definition: staticformat.hpp:18
A Wiegand format.
Definition: wiegandformat.hpp:18
virtual void setLinearDataWithoutParity(const ByteVector &data)=0
Write linear data without parity into data buffer.
ParityType d_leftParityType
The left parity type.
Definition: wiegandformat.hpp:83
unsigned int d_leftParityLength
The left parity length.
Definition: wiegandformat.hpp:78
ParityType d_rightParityType
The right parity type.
Definition: wiegandformat.hpp:93
unsigned int d_rightParityLength
The right parity length.
Definition: wiegandformat.hpp:88
virtual BitsetStream getLinearDataWithoutParity() const =0
Get linear data without parity.
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9
ParityType
Parity type.
Definition: datatype.hpp:19
Static Format.