Keyple C++
0.9.0
Keyple, an Open Source SDK for Ticketing
|
#include <FileHeader.h>
Classes | |
class | FileHeaderBuilder |
Public Types | |
enum | FileType { FileType::LINEAR, FileType::BINARY, FileType::CYCLIC, FileType::COUNTERS, FileType::SIMULATED_COUNTERS } |
Public Member Functions | |
uint16_t | getLid () const |
int | getRecordsNumber () const |
int | getRecordSize () const |
FileType | getType () const |
const std::vector< uint8_t > & | getAccessConditions () const |
const std::vector< uint8_t > & | getKeyIndexes () const |
uint8_t | getDfStatus () const |
bool | isShared () const |
uint16_t | getSharedReference () const |
bool | operator== (const FileHeader &o) const |
Static Public Member Functions | |
static std::unique_ptr< FileHeaderBuilder > | builder () |
Friends | |
KEYPLECALYPSO_API std::ostream & | operator<< (std::ostream &os, const FileType ft) |
KEYPLECALYPSO_API std::ostream & | operator<< (std::ostream &os, const FileHeader &fh) |
The class
contains all metadata of a Calypso EF.
|
static |
(package-private)
Gets a new builder.
const std::vector< uint8_t > & keyple::calypso::transaction::FileHeader::getAccessConditions | ( | ) | const |
Gets a reference to the access conditions.
uint8_t keyple::calypso::transaction::FileHeader::getDfStatus | ( | ) | const |
Gets the DF status.
const std::vector< uint8_t > & keyple::calypso::transaction::FileHeader::getKeyIndexes | ( | ) | const |
Gets a reference to the keys indexes.
uint16_t keyple::calypso::transaction::FileHeader::getLid | ( | ) | const |
Gets the associated LID.
int keyple::calypso::transaction::FileHeader::getRecordSize | ( | ) | const |
Gets the size of a record :
int keyple::calypso::transaction::FileHeader::getRecordsNumber | ( | ) | const |
Gets the number of records :
uint16_t keyple::calypso::transaction::FileHeader::getSharedReference | ( | ) | const |
Gets the shared reference of a shared file.
FileType keyple::calypso::transaction::FileHeader::getType | ( | ) | const |
Gets the file type.
bool keyple::calypso::transaction::FileHeader::isShared | ( | ) | const |
Returns true if EF is a shared file.
bool keyple::calypso::transaction::FileHeader::operator== | ( | const FileHeader & | o | ) | const |
Comparison is based on field "lid".
o | the object to compare |
|
friend |
|
friend |