LibLogicalAccess  2.5.0
An Open Source RFID Library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
wiegand37withfacilityrightparity2format.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_WIEGAND37WITHFACILITYRP2FORMAT_HPP
8#define LOGICALACCESS_WIEGAND37WITHFACILITYRP2FORMAT_HPP
9
11
12namespace logicalaccess
13{
18{
19 public:
26
33
37 unsigned int getDataLength() const override;
38
43 std::string getName() const override;
44
48 unsigned short int getFacilityCode() const;
49
54 void setFacilityCode(unsigned short int facilityCode);
55
62 static unsigned char getLeftParity(const BitsetStream &data);
63
70 static unsigned char getRightParity1(const BitsetStream &data);
71
78 static unsigned char getRightParity2(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
140 protected:
141 struct
142 {
146 unsigned short int d_facilityCode;
147 } d_formatLinear;
148};
149}
150
151#endif /* LOGICALACCESS_WIEGAND37WITHFACILITYRP2FORMAT_HPP */
Definition: BitsetStream.hpp:15
A static format.
Definition: staticformat.hpp:18
A Wiegand 37 with Facility Right Parity 2 format class.
Definition: wiegand37withfacilityrightparity2format.hpp:18
unsigned short int d_facilityCode
The facility code.
Definition: wiegand37withfacilityrightparity2format.hpp:146
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9
FormatType
Format type.
Definition: format.hpp:27
Static Format.