Keyple C++  0.9.0
Keyple, an Open Source SDK for Ticketing
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
keyple::calypso::command::po::parser::SelectFileRespPars Class Referencefinal

#include <SelectFileRespPars.h>

Inherits keyple::calypso::command::po::AbstractPoResponseParser.

Public Member Functions

 SelectFileRespPars (std::shared_ptr< ApduResponse > response, SelectFileCmdBuild *builder)
 
const std::vector< uint8_t > & getProprietaryInformation ()
 
- Public Member Functions inherited from keyple::calypso::command::po::AbstractPoResponseParser
 AbstractPoResponseParser (std::shared_ptr< ApduResponse > response, AbstractPoCommandBuilder< AbstractPoResponseParser > *builder)
 
 AbstractPoResponseParser (const AbstractPoResponseParser &arp)=default
 
virtual ~AbstractPoResponseParser ()=default
 
virtual AbstractPoCommandBuilder< AbstractPoResponseParser > * getBuilder () const override
 
void checkStatus () const override
 
- Public Member Functions inherited from keyple::core::command::AbstractApduResponseParser
 AbstractApduResponseParser (const std::shared_ptr< ApduResponse > response, AbstractApduCommandBuilder *builder)
 
 AbstractApduResponseParser (const AbstractApduResponseParser &aarp)=default
 
virtual ~AbstractApduResponseParser ()=default
 
void setApduResponse (const std::shared_ptr< ApduResponse > &response)
 
const std::shared_ptr< ApduResponsegetApduResponse () const
 
virtual bool isSuccessful () const
 
std::string getStatusInformation () const
 

Static Public Attributes

static constexpr int FILE_TYPE_MF = 1
 
static constexpr int FILE_TYPE_DF = 2
 
static constexpr int FILE_TYPE_EF = 4
 
static constexpr int EF_TYPE_DF = 0
 
static constexpr int EF_TYPE_BINARY = 1
 
static constexpr int EF_TYPE_LINEAR = 2
 
static constexpr int EF_TYPE_CYCLIC = 4
 
static constexpr int EF_TYPE_SIMULATED_COUNTERS = 8
 
static constexpr int EF_TYPE_COUNTERS = 9
 

Protected Member Functions

const std::map< int, std::shared_ptr< StatusProperties > > & getStatusTable () const override
 
- Protected Member Functions inherited from keyple::calypso::command::po::AbstractPoResponseParser
const KeypleSeCommandException buildCommandException (const std::type_info &exceptionClass, const std::string &message, const std::shared_ptr< SeCommand > commandRef, const int statusCode) const override
 
- Protected Member Functions inherited from keyple::core::command::AbstractApduResponseParser
virtual const std::shared_ptr< SeCommandgetCommandRef () const
 

Additional Inherited Members

- Protected Attributes inherited from keyple::core::command::AbstractApduResponseParser
std::shared_ptr< ApduResponsemResponse
 
AbstractApduCommandBuildermBuilder
 
- Static Protected Attributes inherited from keyple::core::command::AbstractApduResponseParser
static const std::map< int, std::shared_ptr< StatusProperties > > STATUS_TABLE
 

Detailed Description

This class provides status code properties and the getters to access to the structured fields of data from response to a Select File command (available from the parent class).

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

Constructor & Destructor Documentation

◆ SelectFileRespPars()

keyple::calypso::command::po::parser::SelectFileRespPars::SelectFileRespPars ( std::shared_ptr< ApduResponse response,
SelectFileCmdBuild builder 
)

Instantiates a new SelectFileRespPars.

Parameters
responsethe response from the PO
builderthe reference to the builder that created this parser

Member Function Documentation

◆ getProprietaryInformation()

const std::vector< uint8_t > & keyple::calypso::command::po::parser::SelectFileRespPars::getProprietaryInformation ( )
Returns
the content of the proprietary information tag present in the response to the Select File command

◆ getStatusTable()

const std::map< int, std::shared_ptr< StatusProperties > > & keyple::calypso::command::po::parser::SelectFileRespPars::getStatusTable ( ) const
overrideprotectedvirtual
Returns
the internal status table

Reimplemented from keyple::core::command::AbstractApduResponseParser.

Member Data Documentation

◆ EF_TYPE_BINARY

constexpr int keyple::calypso::command::po::parser::SelectFileRespPars::EF_TYPE_BINARY = 1
staticconstexpr

◆ EF_TYPE_COUNTERS

constexpr int keyple::calypso::command::po::parser::SelectFileRespPars::EF_TYPE_COUNTERS = 9
staticconstexpr

◆ EF_TYPE_CYCLIC

constexpr int keyple::calypso::command::po::parser::SelectFileRespPars::EF_TYPE_CYCLIC = 4
staticconstexpr

◆ EF_TYPE_DF

constexpr int keyple::calypso::command::po::parser::SelectFileRespPars::EF_TYPE_DF = 0
staticconstexpr

EF Type Values

◆ EF_TYPE_LINEAR

constexpr int keyple::calypso::command::po::parser::SelectFileRespPars::EF_TYPE_LINEAR = 2
staticconstexpr

◆ EF_TYPE_SIMULATED_COUNTERS

constexpr int keyple::calypso::command::po::parser::SelectFileRespPars::EF_TYPE_SIMULATED_COUNTERS = 8
staticconstexpr

◆ FILE_TYPE_DF

constexpr int keyple::calypso::command::po::parser::SelectFileRespPars::FILE_TYPE_DF = 2
staticconstexpr

◆ FILE_TYPE_EF

constexpr int keyple::calypso::command::po::parser::SelectFileRespPars::FILE_TYPE_EF = 4
staticconstexpr

◆ FILE_TYPE_MF

constexpr int keyple::calypso::command::po::parser::SelectFileRespPars::FILE_TYPE_MF = 1
staticconstexpr

File Type Values


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