LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
logicalaccess::NoDataRepresentation Class Reference

A data representation which do nothing class. More...

#include <nodatarepresentation.hpp>

Inheritance diagram for logicalaccess::NoDataRepresentation:
logicalaccess::DataRepresentation logicalaccess::Encoding

Public Member Functions

 NoDataRepresentation ()
 Constructor.
 
 ~NoDataRepresentation ()
 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 DataRepresentationgetByEncodingType (EncodingType type)
 Create a new Data Representation instance by the encoding type.
 

Detailed Description

A data representation which do nothing class.

Constructor & Destructor Documentation

◆ NoDataRepresentation()

logicalaccess::NoDataRepresentation::NoDataRepresentation ( )

Constructor.

Create a NoDataRepresentation representation.

◆ ~NoDataRepresentation()

logicalaccess::NoDataRepresentation::~NoDataRepresentation ( )

Destructor.

Release the NoDataRepresentation representation.

Member Function Documentation

◆ convertBinary()

BitsetStream logicalaccess::NoDataRepresentation::convertBinary ( const BitsetStream data)
overridevirtual

Convert binary data to the encoding type.

Parameters
dataData to convert
dataLengthBytesLength of data to convert in bytes
dataLengthBitsLength of data to convert in bits
convertedDataData after conversion
convertedLengthBytesLength of "convertedData" in bytes
Returns
Length after conversion in bits

Implements logicalaccess::DataRepresentation.

◆ convertLength()

unsigned int logicalaccess::NoDataRepresentation::convertLength ( unsigned int  lengthBits)
overridevirtual

Get the length after conversation for a given base length in bits.

Parameters
lengthBitsThe unconverted length in bits
Returns
The converted length in bits

Implements logicalaccess::DataRepresentation.

◆ convertNumeric()

BitsetStream logicalaccess::NoDataRepresentation::convertNumeric ( const BitsetStream data)
overridevirtual

Convert data to the encoding type.

Parameters
dataData to convert
dataLengthBytesLength of data to convert in bytes
dataLengthBitsLength of data to convert in bits
convertedDataData after conversion
convertedLengthBytesLength of "convertedData" in bytes
Returns
Length after conversion in bits

Implements logicalaccess::DataRepresentation.

◆ getName()

std::string logicalaccess::NoDataRepresentation::getName ( ) const
overridevirtual

Get the representation name.

Returns
The representation name

Implements logicalaccess::Encoding.

◆ getType()

EncodingType logicalaccess::NoDataRepresentation::getType ( ) const
overridevirtual

Get the encoder type.

Returns
The encoder type.

Implements logicalaccess::Encoding.

◆ revertBinary()

BitsetStream logicalaccess::NoDataRepresentation::revertBinary ( const BitsetStream data)
overridevirtual

Revert binary data.

Parameters
dataData to revert
dataLengthBytesLength of data to convert in bytes
dataLengthBitsLength of data to convert in bits
convertedDataData after reversion
convertedLengthBytesLength of "convertedData"
Returns
Length after reversion in bits

Implements logicalaccess::DataRepresentation.

◆ revertNumeric()

BitsetStream logicalaccess::NoDataRepresentation::revertNumeric ( const BitsetStream data)
overridevirtual

Revert data.

Parameters
dataData to revert
dataLengthBytesLength of data to convert in bytes
dataLengthBitsLength of data to convert in bits
convertedDataData after reversion
convertedLengthBytesLength of "convertedData"
Returns
Length after reversion in bits

Implements logicalaccess::DataRepresentation.


The documentation for this class was generated from the following files: