LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
bariumferritepcscformat.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_BARIUMFERRITEPCSCFORMAT_H
8#define LOGICALACCESS_BARIUMFERRITEPCSCFORMAT_H
9
11
12namespace logicalaccess
13{
17class LLA_CORE_API BariumFerritePCSCFormat : 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
57 ByteVector getLinearData() const override;
58
64 void setLinearData(const ByteVector &data) override;
65
72 size_t getFormatLinearData(ByteVector &data) const override;
73
79 void setFormatLinearData(const ByteVector &data, size_t *indexByte) override;
80
85 FormatType getType() const override;
86
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
118 static unsigned char calcChecksum(const ByteVector &data);
119
120 protected:
121 struct
122 {
126 unsigned short int d_facilityCode;
127 } d_formatLinear;
128};
129}
130
131#endif /* LOGICALACCESS_BARIUMFERRITEPCSCFORMAT_HPP */
A Barium Ferrite PCSC format class.
Definition: bariumferritepcscformat.hpp:18
unsigned short int d_facilityCode
The facility code.
Definition: bariumferritepcscformat.hpp:126
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.