|
LibLogicalAccess
2.5.0
An Open Source RFID Library
|
A data representation. More...
#include <datarepresentation.hpp>
Public Member Functions | |
| 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. | |
Static Public Member Functions | |
| static DataRepresentation * | getByEncodingType (EncodingType type) |
| Create a new Data Representation instance by the encoding type. | |
A data representation.
|
inlinevirtual |
Virtual Destructor.
|
pure virtual |
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 |
Implemented in logicalaccess::BigEndianDataRepresentation, logicalaccess::LittleEndianDataRepresentation, and logicalaccess::NoDataRepresentation.
|
pure virtual |
Get the length after conversation for a given base length in bits.
| lengthBits | The unconverted length in bits |
Implemented in logicalaccess::BigEndianDataRepresentation, logicalaccess::LittleEndianDataRepresentation, and logicalaccess::NoDataRepresentation.
|
pure virtual |
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 |
Implemented in logicalaccess::BigEndianDataRepresentation, logicalaccess::LittleEndianDataRepresentation, and logicalaccess::NoDataRepresentation.
|
static |
Create a new Data Representation instance by the encoding type.
| type | The encoding type |
|
pure virtual |
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" |
Implemented in logicalaccess::BigEndianDataRepresentation, logicalaccess::LittleEndianDataRepresentation, and logicalaccess::NoDataRepresentation.
|
pure virtual |
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" |
Implemented in logicalaccess::BigEndianDataRepresentation, logicalaccess::LittleEndianDataRepresentation, and logicalaccess::NoDataRepresentation.
1.9.6