A data type.
More...
#include <datatype.hpp>
◆ DataType()
logicalaccess::DataType::DataType |
( |
| ) |
|
◆ ~DataType()
virtual logicalaccess::DataType::~DataType |
( |
| ) |
|
|
inlinevirtual |
◆ addParity()
Add parity to a buffer.
- Parameters
-
leftParity | The left parity type. |
rightParity | The right parity type. |
blocklen | The length of a block for calculate parity (in bits). |
buf | The current buffer. |
buflen | The current buffer length (in bits). |
procbuf | The allocated buffer with parity. |
procbuflen | The allocated buffer length (in bits). |
- Returns
- The buffer with parity length (in bits).
◆ convert()
virtual BitsetStream logicalaccess::DataType::convert |
( |
unsigned long long |
data, |
|
|
unsigned int |
dataLengthBits |
|
) |
| |
|
pure virtual |
◆ getBitDataRepresentationType()
EncodingType logicalaccess::DataType::getBitDataRepresentationType |
( |
| ) |
const |
Get the bit data representation type.
- Returns
- The bit data representation type.
◆ getBitDataSize()
unsigned char logicalaccess::DataType::getBitDataSize |
( |
| ) |
const |
◆ getByEncodingType()
Create a new Data Type instance by the encoding type.
- Parameters
-
- Returns
- The new Data Type instance, or null if the type is unknown.
◆ getLeftParityType()
ParityType logicalaccess::DataType::getLeftParityType |
( |
| ) |
const |
Get the left parity type.
- Returns
- The left parity type.
◆ getRightParityType()
ParityType logicalaccess::DataType::getRightParityType |
( |
| ) |
const |
Get the right parity type.
- Returns
- The right parity type.
◆ invertBitSex()
unsigned char logicalaccess::DataType::invertBitSex |
( |
unsigned char |
c, |
|
|
size_t |
length = 8 |
|
) |
| |
|
static |
Convert a character to the oser bit-sex (Least Significant Bit / Most Significant Bit).
- Parameters
-
- Returns
- The character in other bit-sex.
◆ pow()
long long logicalaccess::DataType::pow |
( |
int |
base, |
|
|
unsigned int |
exp |
|
) |
| |
|
static |
◆ removeParity()
Remove parity to a buffer.
- Parameters
-
leftParity | The left parity type. |
rightParity | The right parity type. |
blocklen | The length of a block for calculate parity (in bits). |
buf | The current buffer with parity. |
buflen | The current buffer length (in bits). |
procbuf | The allocated buffer without parity. |
procbuflen | The allocated buffer length (in bits). |
- Returns
- The buffer without parity length (in bits).
◆ revert()
virtual unsigned long long logicalaccess::DataType::revert |
( |
BitsetStream & |
data, |
|
|
unsigned int |
dataLengthBits |
|
) |
| |
|
pure virtual |
◆ setBitDataRepresentationType()
void logicalaccess::DataType::setBitDataRepresentationType |
( |
EncodingType |
bitDataRepresentationType | ) |
|
Get the bit data representation type.
- Parameters
-
bitDataRepresentationType | The bit data representation type. |
◆ setLeftParityType()
void logicalaccess::DataType::setLeftParityType |
( |
ParityType |
type | ) |
|
Set the left parity type of the wiegand format.
- Parameters
-
◆ setRightParityType()
void logicalaccess::DataType::setRightParityType |
( |
ParityType |
type | ) |
|
Set the right parity type of the wiegand format.
- Parameters
-
◆ d_bitDataRepresentationType
EncodingType logicalaccess::DataType::d_bitDataRepresentationType |
|
protected |
The bit data representation type.
◆ d_leftParityType
ParityType logicalaccess::DataType::d_leftParityType |
|
protected |
◆ d_rightParityType
ParityType logicalaccess::DataType::d_rightParityType |
|
protected |
The documentation for this class was generated from the following files:
- C:/dev/lla/liblogicalaccess/include/logicalaccess/services/accesscontrol/encodings/datatype.hpp
- C:/dev/lla/liblogicalaccess/src/services/accesscontrol/encodings/datatype.cpp