#include <CardBlock.h>
Public Member Functions | |
CardBlock (const DataPointer &filewalker) | |
int | size () const |
Size of data used in the file. | |
int | dataBlockSize () const |
size of Data block (i.e. without signature) | |
QString | className () const |
Name of block element in the specification (or something meaningful if there is no name in the law) | |
virtual RawData | signedBytes () const |
Protected Attributes | |
int | datasize |
CardBlock::CardBlock | ( | const DataPointer & | filewalker | ) |
References DataPointer::bytesLeft(), datasize, TopLevelBlock::hasSignature, readBigEndianInt2(), and Block::start.
QString CardBlock::className | ( | ) | const [virtual] |
Name of block element in the specification (or something meaningful if there is no name in the law)
This usually matches the name of the c++-class used to read and show the data
Implements Block.
Reimplemented in CardCertificate, CardChipIdentification, CardControlActivityDataRecord, CardCurrentUse, CardDrivingLicenseInformation, CardEventData, CardFaultData, CardIccIdentification, CardPlaceDailyWorkPeriod, CardVehiclesUsed, DriverCardApplicationIdentification, Identification, LastCardDownload, MemberStateCertificate, RawCardDriverActivity, and SpecificConditions.
int CardBlock::dataBlockSize | ( | ) | const |
RawData CardBlock::signedBytes | ( | ) | const [virtual] |
Implements TopLevelBlock.
References dataBlockSize(), and Block::start.
int CardBlock::size | ( | ) | const [virtual] |
Size of data used in the file.
If the data element uses 3 bytes in the file, size() will return 3.
Implements Block.
References datasize, and TopLevelBlock::hasSignature.
int CardBlock::datasize [protected] |
Referenced by CardBlock(), dataBlockSize(), and size().