|
LibLogicalAccess
2.5.0
An Open Source RFID Library
|
A Big Endian data representation class. More...
#include <bigendiandatarepresentation.hpp>
Public Member Functions | |
| BigEndianDataRepresentation () | |
| Constructor. | |
| ~BigEndianDataRepresentation () | |
| 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. | |
Public Member Functions inherited from logicalaccess::DataRepresentation | |
| 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. | |
Public Member Functions inherited from logicalaccess::Encoding | |
| 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 Public Member Functions inherited from logicalaccess::DataRepresentation | |
| static DataRepresentation * | getByEncodingType (EncodingType type) |
| Create a new Data Representation instance by the encoding type. | |
A Big Endian data representation class.
| logicalaccess::BigEndianDataRepresentation::BigEndianDataRepresentation | ( | ) |
Constructor.
Create a BigEndianDataRepresentation representation.
| logicalaccess::BigEndianDataRepresentation::~BigEndianDataRepresentation | ( | ) |
Destructor.
Release the BigEndianDataRepresentation 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.
1.9.6