LibLogicalAccess
2.5.0
An Open Source RFID Library
|
A Little Endian data representation class. More...
#include <littleendiandatarepresentation.hpp>
Public Member Functions | |
LittleEndianDataRepresentation () | |
Constructor. | |
~LittleEndianDataRepresentation () | |
Destructor. | |
std::string | getName () const override |
Get the representation name. | |
EncodingType | getType () const override |
Get the encoder type. | |
BitsetStream | convertNumeric (const BitsetStream &data) override |
Convert data to the encoding type. | |
BitsetStream | convertBinary (const BitsetStream &data) override |
Convert binary data to the encoding type. | |
unsigned int | convertLength (unsigned int lengthBits) override |
Get the length after conversation for a given base length in bits. | |
BitsetStream | revertNumeric (const BitsetStream &data) override |
Revert data. | |
BitsetStream | revertBinary (const BitsetStream &data) override |
Revert binary data. | |
![]() | |
virtual | ~DataRepresentation () |
Virtual Destructor. | |
virtual BitsetStream | convertNumeric (const BitsetStream &datam)=0 |
Convert data to the encoding type. | |
virtual BitsetStream | convertBinary (const BitsetStream &data)=0 |
Convert binary data to the encoding type. | |
virtual unsigned int | convertLength (unsigned int lengthBits)=0 |
Get the length after conversation for a given base length in bits. | |
virtual BitsetStream | revertNumeric (const BitsetStream &data)=0 |
Revert data. | |
virtual BitsetStream | revertBinary (const BitsetStream &data)=0 |
Revert binary data. | |
![]() | |
virtual | ~Encoding ()=default |
virtual std::string | getName () const =0 |
Get the encoder name. | |
virtual EncodingType | getType () const =0 |
Get the encoder type. | |
Additional Inherited Members | |
![]() | |
static DataRepresentation * | getByEncodingType (EncodingType type) |
Create a new Data Representation instance by the encoding type. | |
A Little Endian data representation class.
logicalaccess::LittleEndianDataRepresentation::LittleEndianDataRepresentation | ( | ) |
Constructor.
Create a LittleEndianDataRepresentation representation.
logicalaccess::LittleEndianDataRepresentation::~LittleEndianDataRepresentation | ( | ) |
Destructor.
Release the LittleEndianDataRepresentation representation.
|
overridevirtual |
Convert binary data to the encoding type.
data | Data to convert |
dataLengthBytes | Length of data to convert in bytes |
dataLengthBits | Length of data to convert in bits |
convertedData | Data after conversion |
convertedLengthBytes | Length of "convertedData" in bytes |
Implements logicalaccess::DataRepresentation.
|
overridevirtual |
Get the length after conversation for a given base length in bits.
lengthBits | The unconverted length in bits |
Implements logicalaccess::DataRepresentation.
|
overridevirtual |
Convert data to the encoding type.
data | Data to convert |
dataLengthBytes | Length of data to convert in bytes |
dataLengthBits | Length of data to convert in bits |
convertedData | Data after conversion |
convertedLengthBytes | Length of "convertedData" in bytes |
Implements logicalaccess::DataRepresentation.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Revert binary data.
data | Data to revert |
dataLengthBytes | Length of data to convert in bytes |
dataLengthBits | Length of data to convert in bits |
convertedData | Data after reversion |
convertedLengthBytes | Length of "convertedData" |
Implements logicalaccess::DataRepresentation.
|
overridevirtual |
Revert data.
data | Data to revert |
dataLengthBytes | Length of data to convert in bytes |
dataLengthBits | Length of data to convert in bits |
convertedData | Data after reversion |
convertedLengthBytes | Length of "convertedData" |
Implements logicalaccess::DataRepresentation.