LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
encoding.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_ENCODING_HPP
8#define LOGICALACCESS_ENCODING_HPP
9
10#include <string>
11
13
14namespace logicalaccess
15{
19typedef enum {
20 ET_UNKNOWN = 0x00,
21 ET_BCDBYTE = 0x01,
23 ET_BINARY = 0x03,
26 ET_NOENCODING = 0x06
28
32class LLA_CORE_API Encoding
33{
34 public:
35 virtual ~Encoding() = default;
36
41 virtual std::string getName() const = 0;
42
47 virtual EncodingType getType() const = 0;
48};
49}
50
51#endif /* LOGICALACCESS_ENCODING_HPP */
An encoder type.
Definition: encoding.hpp:33
virtual EncodingType getType() const =0
Get the encoder type.
virtual std::string getName() const =0
Get the encoder name.
virtual ~Encoding()=default
Logging header.
Definition: asn1.hpp:9
EncodingType
Encoding type.
Definition: encoding.hpp:19
@ ET_BCDNIBBLE
Definition: encoding.hpp:22
@ ET_LITTLEENDIAN
Definition: encoding.hpp:25
@ ET_UNKNOWN
Definition: encoding.hpp:20
@ ET_BINARY
Definition: encoding.hpp:23
@ ET_BIGENDIAN
Definition: encoding.hpp:24
@ ET_BCDBYTE
Definition: encoding.hpp:21
@ ET_NOENCODING
Definition: encoding.hpp:26