LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
rawformat.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_RAWFORMAT_HPP
8#define LOGICALACCESS_RAWFORMAT_HPP
9
11
12namespace logicalaccess
13{
17class LLA_CORE_API RawFormat : public StaticFormat
18{
19 public:
25 RawFormat();
26
32 virtual ~RawFormat();
33
37 unsigned int getDataLength() const override;
38
43 std::string getName() const override;
44
49 FormatType getType() const override;
50
55 void serialize(boost::property_tree::ptree &parentNode) override;
56
61 void unSerialize(boost::property_tree::ptree &node) override;
62
67 std::string getDefaultXmlNodeName() const override;
68
74 unsigned int getFieldLength(const std::string &field) const override;
75
81 ByteVector getLinearData() const override;
82
88 void setLinearData(const ByteVector &data) override;
89
94 ByteVector getRawData() const;
95
100 void setRawData(const ByteVector &data);
101
107 bool checkSkeleton(std::shared_ptr<Format> format) const override;
108
113 bool needUserConfigurationToBeUse() const override;
114
115 protected:
122 size_t getFormatLinearData(ByteVector &data) const override;
123
129 void setFormatLinearData(const ByteVector &data, size_t *indexByte) override;
130
135};
136}
137
138#endif /* LOGICALACCESS_RAWFORMAT_HPP */
A Raw format.
Definition: rawformat.hpp:18
ByteVector d_rawData
The raw data.
Definition: rawformat.hpp:134
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.