Keyple C++  0.9.0
Keyple, an Open Source SDK for Ticketing
Public Member Functions | List of all members
keyple::calypso::command::po::builder::SelectFileCmdBuild Class Referencefinal

#include <SelectFileCmdBuild.h>

Inherits keyple::calypso::command::po::AbstractPoCommandBuilder< SelectFileRespPars >.

Public Member Functions

 SelectFileCmdBuild (const PoClass &poClass, SelectFileControl selectFileControl)
 
 SelectFileCmdBuild (const PoClass &poClass, const std::vector< uint8_t > &selectionPath)
 
std::shared_ptr< SelectFileRespParscreateResponseParser (std::shared_ptr< ApduResponse > apduResponse) override
 
bool isSessionBufferUsed () const override
 
const std::vector< uint8_t > & getPath () const
 
SelectFileControl getSelectFileControl () const
 
- Public Member Functions inherited from keyple::calypso::command::po::AbstractPoCommandBuilder< SelectFileRespPars >
 AbstractPoCommandBuilder (std::shared_ptr< CalypsoPoCommand > commandRef, std::shared_ptr< ApduRequest > request)
 
virtual ~AbstractPoCommandBuilder ()=default
 
virtual const std::shared_ptr< SeCommandgetCommandRef () const override
 
virtual bool isSessionBufferUsed () const=0
 
- Public Member Functions inherited from keyple::core::command::AbstractIso7816CommandBuilder
 AbstractIso7816CommandBuilder (const std::shared_ptr< SeCommand > commandReference, const std::shared_ptr< ApduRequest > request)
 
 AbstractIso7816CommandBuilder (const std::string &name, const std::shared_ptr< ApduRequest > request)
 
virtual ~AbstractIso7816CommandBuilder ()=default
 
- Public Member Functions inherited from keyple::core::command::AbstractApduCommandBuilder
 AbstractApduCommandBuilder (const std::shared_ptr< SeCommand > commandRef, const std::shared_ptr< ApduRequest > request)
 
 AbstractApduCommandBuilder (const std::string &name, const std::shared_ptr< ApduRequest > request)
 
virtual ~AbstractApduCommandBuilder ()=default
 
virtual void addSubName (const std::string &subName)
 
virtual const std::shared_ptr< SeCommandgetCommandRef () const
 
virtual const std::string & getName () const
 
virtual const std::shared_ptr< ApduRequestgetApduRequest () const
 

Additional Inherited Members

- Protected Member Functions inherited from keyple::core::command::AbstractIso7816CommandBuilder
virtual std::shared_ptr< ApduRequestsetApduRequest (const uint8_t cla, const SeCommand &command, const uint8_t p1, const uint8_t p2, const std::vector< uint8_t > &dataIn)
 
virtual std::shared_ptr< ApduRequestsetApduRequest (const uint8_t cla, const SeCommand &command, const uint8_t p1, const uint8_t p2, const uint8_t le)
 
virtual std::shared_ptr< ApduRequestsetApduRequest (const uint8_t cla, const SeCommand &command, const uint8_t p1, const uint8_t p2, const std::vector< uint8_t > &dataIn, const uint8_t le)
 
- Protected Attributes inherited from keyple::calypso::command::po::AbstractPoCommandBuilder< SelectFileRespPars >
const std::shared_ptr< LoggermLogger
 
- Protected Attributes inherited from keyple::core::command::AbstractApduCommandBuilder
const std::shared_ptr< SeCommandmCommandRef
 
std::shared_ptr< ApduRequestmRequest
 

Detailed Description

This class provides the dedicated constructor to build the Select File APDU commands.

Constructor & Destructor Documentation

◆ SelectFileCmdBuild() [1/2]

keyple::calypso::command::po::builder::SelectFileCmdBuild::SelectFileCmdBuild ( const PoClass poClass,
SelectFileControl  selectFileControl 
)

Instantiates a new SelectFileCmdBuild to select the first, next or current file in the current DF.

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

◆ SelectFileCmdBuild() [2/2]

keyple::calypso::command::po::builder::SelectFileCmdBuild::SelectFileCmdBuild ( const PoClass poClass,
const std::vector< uint8_t > &  selectionPath 
)

Instantiates a new SelectFileCmdBuild to select the first, next or current file in the current DF.

Parameters
poClassindicates which CLA byte should be used for the Apdu
selectionPaththe file identifier path

Member Function Documentation

◆ createResponseParser()

std::shared_ptr< SelectFileRespPars > keyple::calypso::command::po::builder::SelectFileCmdBuild::createResponseParser ( std::shared_ptr< ApduResponse apduResponse)
overridevirtual

Create the response parser matching the builder

Parameters
apduResponsethe response data from the SE
Returns
an keyple::core::command::AbstractApduResponseParser

Implements keyple::calypso::command::po::AbstractPoCommandBuilder< SelectFileRespPars >.

◆ getPath()

const std::vector< uint8_t > & keyple::calypso::command::po::builder::SelectFileCmdBuild::getPath ( ) const

The selection path can be null if the chosen constructor targets the current EF

Returns
the selection path or null

◆ getSelectFileControl()

SelectFileControl keyple::calypso::command::po::builder::SelectFileCmdBuild::getSelectFileControl ( ) const

The file selection control can be null if the chosen constructor targets an explicit path

Returns
the select file control or null

◆ isSessionBufferUsed()

bool keyple::calypso::command::po::builder::SelectFileCmdBuild::isSessionBufferUsed ( ) const
override

This command doesn't modify the contents of the PO and therefore doesn't uses the session buffer.

Returns
false

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