LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
wiegand34withfacilityformat.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_WIEGAND34WITHFACILITYFORMAT_HPP
8#define LOGICALACCESS_WIEGAND34WITHFACILITYFORMAT_HPP
9
11
12namespace logicalaccess
13{
18{
19 public:
26
33
38 std::string getName() const override;
39
43 unsigned short int getFacilityCode() const;
44
49 void setFacilityCode(unsigned short int facilityCode);
50
56 BitsetStream getLinearDataWithoutParity() const override;
57
63 void setLinearDataWithoutParity(const ByteVector &data) override;
64
71 size_t getFormatLinearData(ByteVector &data) const override;
72
78 void setFormatLinearData(const ByteVector &data, size_t *indexByte) override;
79
84 FormatType getType() const override;
85
90 void serialize(boost::property_tree::ptree &parentNode) override;
91
96 void unSerialize(boost::property_tree::ptree &node) override;
97
102 std::string getDefaultXmlNodeName() const override;
103
109 bool checkSkeleton(std::shared_ptr<Format> format) const override;
110
111 protected:
112 struct
113 {
117 unsigned short int d_facilityCode;
118 } d_formatLinear;
119};
120}
121
122#endif /* LOGICALACCESS_WIEGAND34WITHFACILITYFORMAT_HPP */
Definition: BitsetStream.hpp:15
A Wiegand 34 format class.
Definition: wiegand34format.hpp:18
A Wiegand 34 with Facility format class.
Definition: wiegand34withfacilityformat.hpp:18
unsigned short int d_facilityCode
The facility code.
Definition: wiegand34withfacilityformat.hpp:117
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9
FormatType
Format type.
Definition: format.hpp:27
Wiegand 34 format.