![]() |
Keyple Card Calypso C++ Library 2.2.2
Reference Terminal Reader API for C++
|
#include <AbstractCardCommand.h>
Public Member Functions | |
AbstractCardCommand (const CalypsoCardCommand &commandRef, const int le) | |
const CalypsoCardCommand & | getCommandRef () const override |
virtual bool | isSessionBufferUsed () const =0 |
const CalypsoApduCommandException | buildCommandException (const std::type_info &exceptionClass, const std::string &message) const final |
const CalypsoApduCommandException | buildUnexpectedResponseLengthException (const std::string &message) const final |
AbstractCardCommand & | setApduResponse (const std::shared_ptr< ApduResponseApi > apduResponse) override |
void | checkStatus () override |
![]() | |
AbstractApduCommand (const CardCommand &commandRef, const int le) | |
virtual void | addSubName (const std::string &subName) final |
virtual const std::string & | getName () const final |
virtual void | setApduRequest (const std::shared_ptr< ApduRequestAdapter > apduRequest) final |
virtual const std::shared_ptr< ApduRequestAdapter > | getApduRequest () const final |
virtual const std::shared_ptr< ApduResponseApi > | getApduResponse () const final |
virtual const std::map< const int, const std::shared_ptr< StatusProperties > > & | getStatusTable () const |
virtual bool | isSuccessful () const final |
virtual const std::string | getStatusInformation () const final |
Additional Inherited Members | |
![]() | |
static const std::map< const int, const std::shared_ptr< StatusProperties > > | STATUS_TABLE |
(package-private)
Superclass for all card commands.
Definition at line 29 of file AbstractCardCommand.h.
keyple::card::calypso::AbstractCardCommand::AbstractCardCommand | ( | const CalypsoCardCommand & | commandRef, |
const int | le | ||
) |
(package-private)
Constructor dedicated for the building of referenced Calypso commands
commandRef | a command reference from the Calypso command table. |
le | The value of the LE field. |
Definition at line 34 of file AbstractCardCommand.cpp.
|
finalvirtual |
(package-private)
Builds a specific APDU command exception.
message | The message. |
Implements keyple::card::calypso::AbstractApduCommand.
Definition at line 42 of file AbstractCardCommand.cpp.
|
finalvirtual |
(package-private)
Builds a specific APDU command exception for the case of an unexpected response length.
message | The message. |
Implements keyple::card::calypso::AbstractApduCommand.
Definition at line 73 of file AbstractCardCommand.cpp.
|
overridevirtual |
(package-private)
This method check the status word and if the length of the response is equal to the LE field in the request.
If status word is not referenced, then status is considered unsuccessful.
CalypsoApduCommandException | if status is not successful or if the length of the response is not equal to the LE field in the request. |
Reimplemented from keyple::card::calypso::AbstractApduCommand.
Definition at line 88 of file AbstractCardCommand.cpp.
|
overridevirtual |
(package-private)
Gets CardCommand the current command identification
Reimplemented from keyple::card::calypso::AbstractApduCommand.
Definition at line 37 of file AbstractCardCommand.cpp.
|
pure virtual |
(package-private)
Indicates if the session buffer is used when executing this command.
Allows the management of the overflow of this buffer.
Implemented in keyple::card::calypso::CmdCardAppendRecord, keyple::card::calypso::CmdCardChangeKey, keyple::card::calypso::CmdCardChangePin, keyple::card::calypso::CmdCardCloseSession, keyple::card::calypso::CmdCardGetChallenge, keyple::card::calypso::CmdCardGetDataEfList, keyple::card::calypso::CmdCardGetDataFci, keyple::card::calypso::CmdCardGetDataFcp, keyple::card::calypso::CmdCardGetDataTraceabilityInformation, keyple::card::calypso::CmdCardIncreaseOrDecrease, keyple::card::calypso::CmdCardIncreaseOrDecreaseMultiple, keyple::card::calypso::CmdCardInvalidate, keyple::card::calypso::CmdCardOpenSession, keyple::card::calypso::CmdCardReadBinary, keyple::card::calypso::CmdCardReadRecordMultiple, keyple::card::calypso::CmdCardReadRecords, keyple::card::calypso::CmdCardRehabilitate, keyple::card::calypso::CmdCardSearchRecordMultiple, keyple::card::calypso::CmdCardSelectFile, keyple::card::calypso::CmdCardSvDebitOrUndebit, keyple::card::calypso::CmdCardSvGet, keyple::card::calypso::CmdCardSvReload, keyple::card::calypso::CmdCardUpdateOrWriteBinary, keyple::card::calypso::CmdCardUpdateRecord, keyple::card::calypso::CmdCardVerifyPin, and keyple::card::calypso::CmdCardWriteRecord.
|
overridevirtual |
(package-private)
Sets the command ApduResponseApi.
apduResponse | The APDU response. |
Reimplemented from keyple::card::calypso::AbstractApduCommand.
Reimplemented in keyple::card::calypso::CmdCardCloseSession, keyple::card::calypso::CmdCardGetDataFci, keyple::card::calypso::CmdCardIncreaseOrDecreaseMultiple, keyple::card::calypso::CmdCardOpenSession, keyple::card::calypso::CmdCardReadRecordMultiple, keyple::card::calypso::CmdCardReadRecords, keyple::card::calypso::CmdCardSearchRecordMultiple, keyple::card::calypso::CmdCardSvDebitOrUndebit, keyple::card::calypso::CmdCardSvGet, and keyple::card::calypso::CmdCardSvReload.
Definition at line 82 of file AbstractCardCommand.cpp.