LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
numberdatafield.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_NUMBERDATAFIELD_HPP
8#define LOGICALACCESS_NUMBERDATAFIELD_HPP
9
11#include <logicalaccess/lla_core_api.hpp>
12
13namespace logicalaccess
14{
18class LLA_CORE_API NumberDataField : public ValueDataField
19{
20 public:
25
29 virtual ~NumberDataField();
30
35 DataFieldType getDFType() const override
36 {
37 return DFT_NUMBER;
38 }
39
44 void setValue(long long value);
45
50 long long getValue() const;
51
56 BitsetStream getLinearData(const BitsetStream &data) const override;
57
62 void setLinearData(const ByteVector &data) override;
63
69 bool checkSkeleton(std::shared_ptr<DataField> field) const override;
70
75 void serialize(boost::property_tree::ptree &parentNode) override;
76
81 void unSerialize(boost::property_tree::ptree &node) override;
82
87 std::string getDefaultXmlNodeName() const override;
88
89 protected:
90 long long d_value;
91};
92}
93
94#endif /* LOGICALACCESS_NUMBERDATAFIELD_HPP */
Definition: BitsetStream.hpp:15
A number data field.
Definition: numberdatafield.hpp:19
DataFieldType getDFType() const override
Get the field type.
Definition: numberdatafield.hpp:35
long long d_value
Definition: numberdatafield.hpp:90
A value data field base class.
Definition: valuedatafield.hpp:20
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9
DataFieldType
Definition: datafield.hpp:22
@ DFT_NUMBER
Definition: datafield.hpp:27
Value data field.