LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
hidhoneywell40bitformat.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_HIDHONEYWELL40BITFORMAT_HPP
8#define LOGICALACCESS_HIDHONEYWELL40BITFORMAT_HPP
9
11
12namespace logicalaccess
13{
17class LLA_CORE_API HIDHoneywell40BitFormat : public StaticFormat
18{
19 public:
24
29
33 unsigned int getDataLength() const override;
34
39 std::string getName() const override;
40
44 unsigned short int getFacilityCode() const;
45
50 void setFacilityCode(unsigned short int facilityCode);
51
59 static unsigned char getRightParity(const BitsetStream &data, unsigned char rpNo);
60
66 ByteVector getLinearData() const override;
67
73 void setLinearData(const ByteVector &data) override;
74
81 size_t getFormatLinearData(ByteVector &data) const override;
82
88 void setFormatLinearData(const ByteVector &data, size_t *indexByte) override;
89
94 FormatType getType() const override;
95
100 void serialize(boost::property_tree::ptree &parentNode) override;
101
106 void unSerialize(boost::property_tree::ptree &node) override;
107
112 std::string getDefaultXmlNodeName() const override;
113
119 bool checkSkeleton(std::shared_ptr<Format> format) const override;
120
121 protected:
122 struct
123 {
127 unsigned short int d_facilityCode;
128 } d_formatLinear;
129};
130}
131
132#endif /* LOGICALACCESS_HIDHONEYWELL40BITFORMAT_HPP */
Definition: BitsetStream.hpp:15
A HID Honeywell format class.
Definition: hidhoneywell40bitformat.hpp:18
unsigned short int d_facilityCode
The facility code.
Definition: hidhoneywell40bitformat.hpp:127
A static format.
Definition: staticformat.hpp:18
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9
FormatType
Format type.
Definition: format.hpp:27
Static Format.