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

#include <CmdCardSelectFile.h>

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

Public Member Functions

 CmdCardSelectFile (const CalypsoCardClass calypsoCardClass, const SelectFileControl selectFileControl)
 
 CmdCardSelectFile (const CalypsoCardClass calypsoCardClass, const CalypsoCard::ProductType productType, const uint16_t lid)
 
bool isSessionBufferUsed () const override
 
const std::vector< uint8_t > & getProprietaryInformation ()
 
const std::map< const int, const std::shared_ptr< StatusProperties > > & getStatusTable () const override
 
- Public Member Functions inherited from keyple::card::calypso::AbstractCardCommand
 AbstractCardCommand (const CalypsoCardCommand &commandRef)
 
const CalypsoCardCommandgetCommandRef () const override
 
const CalypsoApduCommandException buildCommandException (const std::type_info &exceptionClass, const std::string &message, const CardCommand &commandRef, const int statusWord) const final
 
AbstractCardCommandsetApduResponse (const std::shared_ptr< ApduResponseApi > apduResponse) override
 
void checkStatus () override
 
- Public Member Functions inherited from keyple::card::calypso::AbstractApduCommand
 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< ApduRequestAdaptergetApduRequest () const final
 
virtual const std::shared_ptr< ApduResponseApi > getApduResponse () const final
 
virtual bool isSuccessful () const final
 
virtual const std::string getStatusInformation () const final
 

Additional Inherited Members

- Static Public Attributes inherited from keyple::card::calypso::AbstractApduCommand
static const std::map< const int, const std::shared_ptr< StatusProperties > > STATUS_TABLE
 

Detailed Description

(package-private)
Builds the Select File APDU commands.

The value of the Proprietary Information tag is extracted from the Select File response and made available using the corresponding getter.

Since
2.0.1

Definition at line 51 of file CmdCardSelectFile.h.

Constructor & Destructor Documentation

◆ CmdCardSelectFile() [1/2]

keyple::card::calypso::CmdCardSelectFile::CmdCardSelectFile ( const CalypsoCardClass  calypsoCardClass,
const SelectFileControl  selectFileControl 
)

(package-private)
Instantiates a new CmdCardSelectFile to select the first, next or current file in the current DF.

Parameters
calypsoCardClassindicates which CLA byte should be used for the Apdu.
selectFileControlthe selection mode control: FIRST, NEXT or CURRENT.
Since
2.0.1

Definition at line 39 of file CmdCardSelectFile.cpp.

◆ CmdCardSelectFile() [2/2]

keyple::card::calypso::CmdCardSelectFile::CmdCardSelectFile ( const CalypsoCardClass  calypsoCardClass,
const CalypsoCard::ProductType  productType,
const uint16_t  lid 
)

(package-private)
Instantiates a new CmdCardSelectFile to select the first, next or current file in the current DF.

Parameters
calypsoCardClassIndicates which CLA byte should be used for the Apdu.
productTypeThe target product type.
lidThe LID.
Since
2.0.1

Definition at line 75 of file CmdCardSelectFile.cpp.

Member Function Documentation

◆ getProprietaryInformation()

const std::vector< uint8_t > & keyple::card::calypso::CmdCardSelectFile::getProprietaryInformation ( )

(package-private)

Returns
The content of the proprietary information tag present in the response to the Select File command
Since
2.0.1

Definition at line 116 of file CmdCardSelectFile.cpp.

◆ getStatusTable()

const std::map< const int, const std::shared_ptr< StatusProperties > > & keyple::card::calypso::CmdCardSelectFile::getStatusTable ( ) const
overridevirtual

(package-private)
Returns the internal status table

Returns
A not null reference
Since
2.0.1

Since
2.0.1

Reimplemented from keyple::card::calypso::AbstractApduCommand.

Definition at line 154 of file CmdCardSelectFile.cpp.

◆ isSessionBufferUsed()

bool keyple::card::calypso::CmdCardSelectFile::isSessionBufferUsed ( ) const
overridevirtual

(package-private)
Indicates if the session buffer is used when executing this command.Allows the management of the overflow of this buffer.

Returns
True if this command uses the session buffer
Since
2.0.1

Returns
False
Since
2.0.1

Implements keyple::card::calypso::AbstractCardCommand.

Definition at line 111 of file CmdCardSelectFile.cpp.


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