LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
getronik40bitformat.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_GETRONIK40BITFORMAT_HPP
8#define LOGICALACCESS_GETRONIK40BITFORMAT_HPP
9
11
12namespace logicalaccess
13{
17class LLA_CORE_API Getronik40BitFormat : public StaticFormat
18{
19 public:
24
28 virtual ~Getronik40BitFormat();
29
33 unsigned int getDataLength() const override;
34
39 std::string getName() const override;
40
44 unsigned short int getField() const;
45
50 void setField(unsigned short int field);
51
58 static unsigned char getRightParity(const BitsetStream &data);
59
65 ByteVector getLinearData() const override;
66
72 void setLinearData(const ByteVector &data) override;
73
80 size_t getFormatLinearData(ByteVector &data) const override;
81
87 void setFormatLinearData(const ByteVector &data, size_t *indexByte) override;
88
93 FormatType getType() const override;
94
99 void serialize(boost::property_tree::ptree &parentNode) override;
100
105 void unSerialize(boost::property_tree::ptree &node) override;
106
111 std::string getDefaultXmlNodeName() const override;
112
118 bool checkSkeleton(std::shared_ptr<Format> format) const override;
119
120 protected:
121 struct
122 {
126 unsigned short int d_field;
127 } d_formatLinear;
128};
129}
130
131#endif /* LOGICALACCESS_GETRONIK40BITFORMAT_HPP */
Definition: BitsetStream.hpp:15
A Getronik 40-Bit format class.
Definition: getronik40bitformat.hpp:18
unsigned short int d_field
The facility code.
Definition: getronik40bitformat.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.