Keyple C++
0.9.0
Keyple, an Open Source SDK for Ticketing
|
#include <ReadRecordsRespPars.h>
Inherits keyple::calypso::command::po::AbstractPoResponseParser.
Protected Member Functions | |
const std::map< int, std::shared_ptr< StatusProperties > > & | getStatusTable () const override |
![]() | |
const KeypleSeCommandException | buildCommandException (const std::type_info &exceptionClass, const std::string &message, const std::shared_ptr< SeCommand > commandRef, const int statusCode) const override |
![]() | |
virtual const std::shared_ptr< SeCommand > | getCommandRef () const |
Additional Inherited Members | |
![]() | |
std::shared_ptr< ApduResponse > | mResponse |
AbstractApduCommandBuilder * | mBuilder |
![]() | |
static const std::map< int, std::shared_ptr< StatusProperties > > | STATUS_TABLE |
Read Records (00B2) response parser. See specs: Calypso / page 89 / 9.4.7 Read Records The keyple::calypso::command::po::parser::ReadRecordsRespPars class holds the data resulting from a Read Records command. It provides methods to retrieve these data according to the file structure profile specified in the command preparation step: SINGLE or MULTIPLE RECORD or COUNTER.
keyple::calypso::command::po::parser::ReadRecordsRespPars::ReadRecordsRespPars | ( | std::shared_ptr< ApduResponse > | apduResponse, |
ReadRecordsCmdBuild * | builder | ||
) |
Instantiates a new ReadRecordsRespPars.
apduResponse | the response from the PO |
builder | the reference to the builder that created this parser |
std::map< int, std::vector< uint8_t > > keyple::calypso::command::po::parser::ReadRecordsRespPars::getRecords | ( | ) | const |
Parses the Apdu response as a data record (single or multiple), retrieves the records and place it in an map.
The map index follows the PO specification, i.e. starts at 1 for the first record.
An empty map is returned if no data is available.
|
overrideprotectedvirtual |
Reimplemented from keyple::core::command::AbstractApduResponseParser.