LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
wiegand37withfacilityformat.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_WIEGAND37WITHFACILITYFORMAT_HPP
8#define LOGICALACCESS_WIEGAND37WITHFACILITYFORMAT_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
91 void serialize(boost::property_tree::ptree &parentNode) override;
92
97 void unSerialize(boost::property_tree::ptree &node) override;
98
103 std::string getDefaultXmlNodeName() const override;
104
110 bool checkSkeleton(std::shared_ptr<Format> format) const override;
111
112 protected:
113 struct
114 {
118 unsigned short int d_facilityCode;
119 } d_formatLinear;
120};
121}
122
123#endif /* LOGICALACCESS_WIEGAND37WITHFACILITYFORMAT_HPP */
Definition: BitsetStream.hpp:15
A Wiegand 37 format class.
Definition: wiegand37format.hpp:18
A Wiegand 37 with Facility format class.
Definition: wiegand37withfacilityformat.hpp:18
unsigned short int d_facilityCode
The facility code.
Definition: wiegand37withfacilityformat.hpp:118
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9
FormatType
Format type.
Definition: format.hpp:27
Wiegand 37 format.