![]() |
Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
|
#include <AbstractCardCommand.h>
Public Member Functions | |
AbstractCardCommand (const CalypsoCardCommand &commandRef) | |
const CalypsoCardCommand & | getCommandRef () const override |
virtual bool | isSessionBufferUsed () const =0 |
const CalypsoApduCommandException | buildCommandException (const std::type_info &exceptionClass, const std::string &message, const CardCommand &commandRef, const int statusWord) const final |
AbstractCardCommand & | setApduResponse (const std::shared_ptr< ApduResponseApi > apduResponse) override |
void | checkStatus () override |
![]() | |
AbstractApduCommand (const CardCommand &commandRef) | |
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 | ) |
(package-private)
Constructor dedicated for the building of referenced Calypso commands
commandRef | a command reference from the Calypso command table. |
Definition at line 33 of file AbstractCardCommand.cpp.
|
finalvirtual |
(package-private)
Builds a command exception.This method should be override in subclasses in order to create specific exceptions.
exceptionClass | the exception class. |
message | the message. |
commandRef | CardCommand the command reference. |
statusWord | the status word. |
Reimplemented from keyple::card::calypso::AbstractApduCommand.
Definition at line 41 of file AbstractCardCommand.cpp.
|
overridevirtual |
(package-private)
This method check the status word.
If status word is not referenced, then status is considered unsuccessful.
CalypsoApduCommandException | if status is not successful. |
Reimplemented from keyple::card::calypso::AbstractApduCommand.
Definition at line 81 of file AbstractCardCommand.cpp.
|
overridevirtual |
(package-private)
Gets CardCommand the current command identification
Reimplemented from keyple::card::calypso::AbstractApduCommand.
Definition at line 36 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::CmdCardSvDebit, keyple::card::calypso::CmdCardSvGet, keyple::card::calypso::CmdCardSvReload, keyple::card::calypso::CmdCardSvUndebit, 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::CmdCardSvDebit, keyple::card::calypso::CmdCardSvGet, keyple::card::calypso::CmdCardSvReload, and keyple::card::calypso::CmdCardSvUndebit.
Definition at line 75 of file AbstractCardCommand.cpp.