Keyple C++  0.9.0
Keyple, an Open Source SDK for Ticketing
Public Member Functions | Protected Attributes | List of all members
keyple::core::command::AbstractApduCommandBuilder Class Reference

#include <AbstractApduCommandBuilder.h>

Inherited by keyple::core::command::AbstractIso7816CommandBuilder.

Public Member Functions

 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
 

Protected Attributes

const std::shared_ptr< SeCommandmCommandRef
 
std::shared_ptr< ApduRequestmRequest
 

Detailed Description

Generic APDU command builder.

It provides the generic getters to retrieve:

Constructor & Destructor Documentation

◆ AbstractApduCommandBuilder() [1/2]

keyple::core::command::AbstractApduCommandBuilder::AbstractApduCommandBuilder ( const std::shared_ptr< SeCommand commandRef,
const std::shared_ptr< ApduRequest request 
)

the generic abstract constructor to build an APDU request with a command reference and a byte array.

Parameters
commandRefcommand reference
requestrequest

◆ AbstractApduCommandBuilder() [2/2]

keyple::core::command::AbstractApduCommandBuilder::AbstractApduCommandBuilder ( const std::string &  name,
const std::shared_ptr< ApduRequest request 
)

◆ ~AbstractApduCommandBuilder()

virtual keyple::core::command::AbstractApduCommandBuilder::~AbstractApduCommandBuilder ( )
virtualdefault

Member Function Documentation

◆ addSubName()

void keyple::core::command::AbstractApduCommandBuilder::addSubName ( const std::string &  subName)
virtual

Append a string to the current name

Parameters
subNamethe string to append

◆ getApduRequest()

const std::shared_ptr< ApduRequest > keyple::core::command::AbstractApduCommandBuilder::getApduRequest ( ) const
virtual
Returns
the request

◆ getCommandRef()

const std::shared_ptr< SeCommand > keyple::core::command::AbstractApduCommandBuilder::getCommandRef ( ) const
virtual

◆ getName()

const std::string & keyple::core::command::AbstractApduCommandBuilder::getName ( ) const
virtual
Returns
the name of the APDU command from the CalypsoCommands information.

Member Data Documentation

◆ mCommandRef

const std::shared_ptr<SeCommand> keyple::core::command::AbstractApduCommandBuilder::mCommandRef
protected

The reference field is used to find the type of command concerned when manipulating a list of abstract builder objects. Unfortunately, the diversity of these objects does not allow the use of simple generic methods.

◆ mRequest

std::shared_ptr<ApduRequest> keyple::core::command::AbstractApduCommandBuilder::mRequest
protected

The byte array APDU request


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