LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
dataclockformat.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_DATACLOCKFORMAT_HPP
8#define LOGICALACCESS_DATACLOCKFORMAT_HPP
9
11
12namespace logicalaccess
13{
17class LLA_CORE_API DataClockFormat : public StaticFormat
18{
19 public:
26
32 virtual ~DataClockFormat();
33
37 unsigned int getDataLength() const override;
38
43 std::string getName() const override;
44
54 static unsigned char getRightParity(const BitsetStream &data, ParityType type,
55 std::vector<unsigned int> locations);
56
63 static unsigned char getRightParity1(const BitsetStream &data);
64
71 static unsigned char getRightParity2(const BitsetStream &data);
72
79 static unsigned char getRightParity3(const BitsetStream &data);
80
87 static unsigned char getRightParity4(const BitsetStream &data);
88
94 ByteVector getLinearData() const override;
95
101 void setLinearData(const ByteVector &data) override;
102
109 size_t getFormatLinearData(ByteVector &data) const override;
110
116 void setFormatLinearData(const ByteVector &data, size_t *indexByte) override;
117
122 FormatType getType() const override;
123
128 void serialize(boost::property_tree::ptree &parentNode) override;
129
134 void unSerialize(boost::property_tree::ptree &node) override;
135
140 std::string getDefaultXmlNodeName() const override;
141
147 bool checkSkeleton(std::shared_ptr<Format> format) const override;
148};
149}
150
151#endif /* LOGICALACCESS_DATACLOCKFORMAT_HPP */
Definition: BitsetStream.hpp:15
A data clock format class.
Definition: dataclockformat.hpp:18
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
ParityType
Parity type.
Definition: datatype.hpp:19
Static Format.