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

#include <CmdSamReadEventCounter.h>

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

Public Types

enum  SamEventCounterOperationType { COUNTER_RECORD , SINGLE_COUNTER }
 

Public Member Functions

 CmdSamReadEventCounter (const CalypsoSam::ProductType productType, const SamEventCounterOperationType operationType, const int index)
 
const std::vector< uint8_t > getCounterData () const
 
const std::map< const int, const std::shared_ptr< StatusProperties > > & getStatusTable () const override
 
- Public Member Functions inherited from keyple::card::calypso::AbstractSamCommand
 AbstractSamCommand (const CalypsoSamCommand &commandRef, const int le)
 
const CalypsoSamCommandgetCommandRef () const override
 
const CalypsoApduCommandException buildCommandException (const std::type_info &exceptionClass, const std::string &message) const final
 
const CalypsoApduCommandException buildUnexpectedResponseLengthException (const std::string &message) const final
 
AbstractSamCommandsetApduResponse (const std::shared_ptr< ApduResponseApi > apduResponse) override
 
void checkStatus () override
 
- Public Member Functions inherited from keyple::card::calypso::AbstractApduCommand
 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< 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::AbstractSamCommand
static const std::map< const int, const std::shared_ptr< StatusProperties > > STATUS_TABLE = initStatusTable()
 
- 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 Read Event Counter APDU command.

Since
2.0.1

Definition at line 37 of file CmdSamReadEventCounter.h.

Member Enumeration Documentation

◆ SamEventCounterOperationType

Event counter operation type

Enumerator
COUNTER_RECORD 

Counter record

SINGLE_COUNTER 

Single counter

Definition at line 42 of file CmdSamReadEventCounter.h.

Constructor & Destructor Documentation

◆ CmdSamReadEventCounter()

keyple::card::calypso::CmdSamReadEventCounter::CmdSamReadEventCounter ( const CalypsoSam::ProductType  productType,
const SamEventCounterOperationType  operationType,
const int  index 
)

(package-private)
Instantiate a new CmdSamReadEventCounter

Parameters
productTypethe SAM product type.
operationTypethe counter operation type.
indexthe counter index.
Since
2.0.1

Definition at line 38 of file CmdSamReadEventCounter.cpp.

Member Function Documentation

◆ getCounterData()

const std::vector< uint8_t > keyple::card::calypso::CmdSamReadEventCounter::getCounterData ( ) const

(package-private)
Gets the key parameters.

Returns
the counter data (Value or Record)
Since
2.0.1

Definition at line 91 of file CmdSamReadEventCounter.cpp.

◆ getStatusTable()

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

(package-private)
Returns the internal status table

Returns
A not null reference
Since
2.0.1
Since
2.0.1

Since
2.0.1

Reimplemented from keyple::card::calypso::AbstractSamCommand.

Definition at line 97 of file CmdSamReadEventCounter.cpp.


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