Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
Public Member Functions | Friends | List of all members
keyple::card::calypso::CardRequestAdapter Class Referencefinal

#include <CardRequestAdapter.h>

Inheritance diagram for keyple::card::calypso::CardRequestAdapter:
Inheritance graph
[legend]
Collaboration diagram for keyple::card::calypso::CardRequestAdapter:
Collaboration graph
[legend]

Public Member Functions

 CardRequestAdapter (const std::vector< std::shared_ptr< ApduRequestSpi > > &apduRequests, const bool isStatusCodesVerificationEnabled)
 
const std::vector< std::shared_ptr< ApduRequestSpi > > & getApduRequests () const override
 
bool stopOnUnsuccessfulStatusWord () const override
 

Friends

std::ostream & operator<< (std::ostream &os, const CardRequestAdapter &cra)
 
std::ostream & operator<< (std::ostream &os, const std::shared_ptr< CardRequestAdapter > cra)
 

Detailed Description

(package-private)
This POJO contains an ordered list of ApduRequestSpi and the associated status code check policy.

Since
2.0.0

Definition at line 37 of file CardRequestAdapter.h.

Constructor & Destructor Documentation

◆ CardRequestAdapter()

keyple::card::calypso::CardRequestAdapter::CardRequestAdapter ( const std::vector< std::shared_ptr< ApduRequestSpi > > &  apduRequests,
const bool  isStatusCodesVerificationEnabled 
)

Builds a card request with a list of ApduRequestSpi and the flag indicating the expected response checking behavior.

When the status code verification is enabled, the transmission of the APDUs must be interrupted as soon as the status code of a response is unexpected.

Parameters
apduRequestsA not empty list.
isStatusCodesVerificationEnabledtrue or false.
Since
2.0.0

Definition at line 19 of file CardRequestAdapter.cpp.

Member Function Documentation

◆ getApduRequests()

const std::vector< std::shared_ptr< ApduRequestSpi > > & keyple::card::calypso::CardRequestAdapter::getApduRequests ( ) const
override
Since
2.0.0

Definition at line 25 of file CardRequestAdapter.cpp.

◆ stopOnUnsuccessfulStatusWord()

bool keyple::card::calypso::CardRequestAdapter::stopOnUnsuccessfulStatusWord ( ) const
override
Since
2.0.0

Definition at line 30 of file CardRequestAdapter.cpp.

Friends And Related Function Documentation

◆ operator<< [1/2]

std::ostream & operator<< ( std::ostream &  os,
const CardRequestAdapter cra 
)
friend

Definition at line 35 of file CardRequestAdapter.cpp.

◆ operator<< [2/2]

std::ostream & operator<< ( std::ostream &  os,
const std::shared_ptr< CardRequestAdapter cra 
)
friend

Definition at line 45 of file CardRequestAdapter.cpp.


The documentation for this class was generated from the following files: