Keyple C++
0.9.0
Keyple, an Open Source SDK for Ticketing
|
#include <PoSelectionRequest.h>
Public Member Functions | |
PoSelectionRequest (std::shared_ptr< PoSelector > poSelector) | |
void | prepareReadRecordFile (const uint8_t sfi, const uint8_t recordNumber) |
void | prepareSelectFile (const std::vector< uint8_t > &lid) |
void | prepareSelectFile (const uint16_t lid) |
void | prepareSelectFile (const SelectFileControl selectControl) |
const std::shared_ptr< AbstractMatchingSe > | parse (std::shared_ptr< SeResponse > seResponse) override |
![]() | |
AbstractSeSelectionRequest (std::shared_ptr< SeSelector > seSelector) | |
virtual | ~AbstractSeSelectionRequest ()=default |
virtual std::shared_ptr< SeRequest > | getSelectionRequest () |
virtual std::shared_ptr< SeSelector > | getSeSelector () |
void | addCommandBuilder (std::shared_ptr< AbstractPoCommandBuilder< AbstractPoResponseParser > > commandBuilder) |
const std::vector< std::shared_ptr< AbstractPoCommandBuilder< AbstractPoResponseParser > > > | getCommandBuilders () const |
Additional Inherited Members | |
![]() | |
const std::shared_ptr< SeSelector > | mSeSelector |
Specialized selection request to manage the specific characteristics of Calypso POs
keyple::calypso::transaction::PoSelectionRequest::PoSelectionRequest | ( | std::shared_ptr< PoSelector > | poSelector | ) |
Constructor.
poSelector | the selector to target a particular SE |
|
overridevirtual |
Create a CalypsoPo object containing the selection data received from the plugin
C++ vs. Java: function is protected in Java
seResponse | the SE response received |
CalypsoDesynchronizedExchangesException | if the number of responses is different from the number of requests |
CalypsoPoCommandException | if a response from the PO was unexpected |
Return type should be std::shared_ptr<CalypdoPo> ... but invalid covariant return type
Implements keyple::core::selection::AbstractSeSelectionRequest< AbstractPoCommandBuilder< AbstractPoResponseParser > >.
void keyple::calypso::transaction::PoSelectionRequest::prepareReadRecordFile | ( | const uint8_t | sfi, |
const uint8_t | recordNumber | ||
) |
Read a single record from the indicated EF
sfi | the SFI of the EF to read |
recordNumber | the record number to read |
IllegalArgumentException | if one of the provided argument is out of range |
void keyple::calypso::transaction::PoSelectionRequest::prepareSelectFile | ( | const SelectFileControl | selectControl | ) |
Prepare a select file ApduRequest to be executed following the selection.
selectControl | provides the navigation case: FIRST, NEXT or CURRENT |
void keyple::calypso::transaction::PoSelectionRequest::prepareSelectFile | ( | const std::vector< uint8_t > & | lid | ) |
Prepare a select file ApduRequest to be executed following the selection.
lid | LID of the EF to select as a byte array |
IllegalArgumentException | if the argument is not an array of 2 bytes |
void keyple::calypso::transaction::PoSelectionRequest::prepareSelectFile | ( | const uint16_t | lid | ) |
Prepare a select file ApduRequest to be executed following the selection.
lid | LID of the EF to select as a byte array |
IllegalArgumentException | if the argument is not an array of 2 bytes |