#include <RawData.h>
Public Member Functions | |
RawData (const DataPointer &start, int length) | |
RawData (const QByteArray &o) | |
QString | toString () const |
Possible short form of the block (empty if unset) | |
QString | className () const |
Name of block element in the specification (or something meaningful if there is no name in the law) | |
int | size () const |
Size of data used in the file. | |
QByteArray | toQByteArray () const |
void | printOn (Reporter &report) const |
Public Attributes | |
int | length_ |
RawData::RawData | ( | const DataPointer & | start, |
int | length | ||
) |
RawData::RawData | ( | const QByteArray & | o | ) |
QString RawData::className | ( | ) | const [virtual] |
void RawData::printOn | ( | Reporter & | report | ) | const [virtual] |
Implements DataType.
References Reporter::tagValuePair(), and toString().
int RawData::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 DataType.
References length_.
Referenced by CardDriverActivity::readCyclicData(), toQByteArray(), and toString().
QByteArray RawData::toQByteArray | ( | ) | const |
Reimplemented from DataPointer.
References DataPointer::offset, size(), Block::start, and DataPointer::toQByteArray().
QString RawData::toString | ( | ) | const [virtual] |
Possible short form of the block (empty if unset)
Reimplemented from Block.
References size(), and Block::start.
Referenced by Block13::printOn(), Block11::printOn(), VuDetailedSpeedBlock::printOn(), RawKeyIdentifier::printOn(), RawEncryptedCertificate::printOn(), printOn(), CertificateHolderAuthorization::printOn(), CertificateAuthority::printOn(), Block11Record::printOn(), BcdMonthYear::printOn(), BcdDate::printOn(), RawCardDriverActivity::printOn(), DriverCardApplicationIdentification::printOn(), CardIccIdentification::printOn(), and CardChipIdentification::printOn().
int RawData::length_ |
Referenced by size().