LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
wiegand26format.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_WIEGAND26FORMAT_HPP
8#define LOGICALACCESS_WIEGAND26FORMAT_HPP
9
11
12namespace logicalaccess
13{
17class LLA_CORE_API Wiegand26Format : public WiegandFormat
18{
19 public:
26
32 virtual ~Wiegand26Format();
33
37 unsigned char getFacilityCode() const;
38
42 void setFacilityCode(unsigned char facilityCode);
43
47 unsigned int getDataLength() const override;
48
53 std::string getName() const override;
54
60 BitsetStream getLinearDataWithoutParity() const override;
61
67 void setLinearDataWithoutParity(const ByteVector &data) override;
68
75 size_t getFormatLinearData(ByteVector &data) const override;
76
82 void setFormatLinearData(const ByteVector &data, size_t *indexByte) override;
83
88 FormatType getType() const override;
89
94 void serialize(boost::property_tree::ptree &parentNode) override;
95
100 void unSerialize(boost::property_tree::ptree &node) override;
101
106 std::string getDefaultXmlNodeName() const override;
107
113 bool checkSkeleton(std::shared_ptr<Format> format) const override;
114
115 protected:
116 struct
117 {
121 unsigned char d_facilityCode;
122 } d_formatLinear;
123};
124}
125
126#endif /* LOGICALACCESS_WIEGAND26FORMAT_HPP */
Definition: BitsetStream.hpp:15
A Wiegand 26 format class.
Definition: wiegand26format.hpp:18
unsigned char d_facilityCode
The facility code.
Definition: wiegand26format.hpp:121
A Wiegand format.
Definition: wiegandformat.hpp:18
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9
FormatType
Format type.
Definition: format.hpp:27
Wiegand format.