LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
wiegand35format.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_WIEGAND35FORMAT_HPP
8#define LOGICALACCESS_WIEGAND35FORMAT_HPP
9
11
12namespace logicalaccess
13{
17class LLA_CORE_API Wiegand35Format : public StaticFormat
18{
19 public:
26
32 virtual ~Wiegand35Format();
33
37 unsigned int getDataLength() const override;
38
43 std::string getName() const override;
44
48 unsigned short int getCompanyCode() const;
49
54 void setCompanyCode(unsigned short int companyCode);
55
62 static unsigned char getLeftParity1(const BitsetStream &data);
63
70 static unsigned char getLeftParity2(const BitsetStream &data);
71
78 static unsigned char getRightParity(const BitsetStream &data);
79
85 ByteVector getLinearData() const override;
86
92 void setLinearData(const ByteVector &data) override;
93
100 size_t getFormatLinearData(ByteVector &data) const override;
101
107 void setFormatLinearData(const ByteVector &data, size_t *indexByte) override;
108
113 FormatType getType() const override;
114
119 void serialize(boost::property_tree::ptree &parentNode) override;
120
125 void unSerialize(boost::property_tree::ptree &node) override;
126
131 std::string getDefaultXmlNodeName() const override;
132
138 bool checkSkeleton(std::shared_ptr<Format> format) const override;
139
144 bool needUserConfigurationToBeUse() const override;
145
146 protected:
147 struct
148 {
152 unsigned short int d_companyCode;
153 } d_formatLinear;
154};
155}
156
157#endif /* LOGICALACCESS_WIEGAND35FORMAT_HPP */
Definition: BitsetStream.hpp:15
A static format.
Definition: staticformat.hpp:18
A Wiegand 35 format class. Also known as Corporate 1000.
Definition: wiegand35format.hpp:18
unsigned short int d_companyCode
The company code.
Definition: wiegand35format.hpp:152
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9
FormatType
Format type.
Definition: format.hpp:27
Static Format.