LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
customformat.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_CUSTOMFORMAT_HPP
8#define LOGICALACCESS_CUSTOMFORMAT_HPP
9
12
13#include <list>
14
15namespace logicalaccess
16{
20class LLA_CORE_API CustomFormat : public Format
21{
22 public:
27
31 virtual ~CustomFormat();
32
37 unsigned int getDataLength() const override;
38
43 virtual void setName(const std::string &name);
44
49 std::string getName() const override;
50
56 ByteVector getLinearData() const override;
57
63 void setLinearData(const ByteVector &data) override;
64
70 bool checkSkeleton(std::shared_ptr<Format> format) const override;
71
76 FormatType getType() const override;
77
83 size_t getSkeletonLinearData(ByteVector &data) const override;
84
90 void setSkeletonLinearData(const ByteVector &data) override;
91
96 void serialize(boost::property_tree::ptree &parentNode) override;
97
102 void unSerialize(boost::property_tree::ptree &node) override;
103
108 std::string getDefaultXmlNodeName() const override;
109
115 std::shared_ptr<DataField> getFieldForPosition(unsigned int position) const;
116
117 protected:
121 std::string d_name;
122};
123}
124
125#endif /* LOGICALACCESS_CUSTOMFORMAT_HPP */
A custom format.
Definition: customformat.hpp:21
std::string d_name
The custom format name.
Definition: customformat.hpp:121
A format.
Definition: format.hpp:53
Data field.
Format.
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9
FormatType
Format type.
Definition: format.hpp:27