#include <IncreaseCmdBuild.h>
Inherits keyple::calypso::command::po::AbstractPoCommandBuilder< IncreaseRespPars >.
|
Protected Member Functions inherited from keyple::core::command::AbstractIso7816CommandBuilder |
virtual std::shared_ptr< ApduRequest > | setApduRequest (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< ApduRequest > | setApduRequest (const uint8_t cla, const SeCommand &command, const uint8_t p1, const uint8_t p2, const uint8_t le) |
|
virtual std::shared_ptr< ApduRequest > | setApduRequest (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< IncreaseRespPars > |
const std::shared_ptr< Logger > | mLogger |
|
Protected Attributes inherited from keyple::core::command::AbstractApduCommandBuilder |
const std::shared_ptr< SeCommand > | mCommandRef |
|
std::shared_ptr< ApduRequest > | mRequest |
|
The Class IncreaseCmdBuild. This class provides the dedicated constructor to build the Increase APDU command.
◆ IncreaseCmdBuild()
keyple::calypso::command::po::builder::IncreaseCmdBuild::IncreaseCmdBuild |
( |
const PoClass |
poClass, |
|
|
const uint8_t |
sfi, |
|
|
const uint8_t |
counterNumber, |
|
|
const int |
incValue |
|
) |
| |
Instantiates a new increase cmd build from command parameters.
- Parameters
-
poClass | indicates which CLA byte should be used for the Apdu |
sfi | SFI of the file to select or 00h for current EF |
counterNumber | >= 01h: Counters file, number of the counter. 00h: Simulated Counter file. |
incValue | Value to add to the counter (defined as a positive int <= 16777215 [FFFFFFh]) |
- Exceptions
-
IllegalArgumentException | - if the decrement value is out of range |
IllegalArgumentException | - if the command is inconsistent |
◆ createResponseParser()
std::shared_ptr< IncreaseRespPars > keyple::calypso::command::po::builder::IncreaseCmdBuild::createResponseParser |
( |
std::shared_ptr< ApduResponse > |
apduResponse | ) |
|
|
overridevirtual |
◆ getCounterNumber()
uint8_t keyple::calypso::command::po::builder::IncreaseCmdBuild::getCounterNumber |
( |
| ) |
const |
- Returns
- the counter number
◆ getIncValue()
int keyple::calypso::command::po::builder::IncreaseCmdBuild::getIncValue |
( |
| ) |
const |
- Returns
- the increment value
◆ getSfi()
uint8_t keyple::calypso::command::po::builder::IncreaseCmdBuild::getSfi |
( |
| ) |
const |
- Returns
- the SFI of the accessed file
◆ isSessionBufferUsed()
bool keyple::calypso::command::po::builder::IncreaseCmdBuild::isSessionBufferUsed |
( |
| ) |
const |
|
override |
This command can modify the contents of the PO in session and therefore uses the session buffer.
- Returns
- true
The documentation for this class was generated from the following files: