Keyple C++  0.9.0
Keyple, an Open Source SDK for Ticketing
Public Member Functions | Friends | List of all members
keyple::core::seproxy::message::SeResponse Class Referencefinal

#include <SeResponse.h>

Public Member Functions

 SeResponse (const bool logicalChannelIsOpen, const bool channelPreviouslyOpen, std::shared_ptr< SelectionStatus > selectionStatus, const std::vector< std::shared_ptr< ApduResponse >> &apduResponses)
 
bool wasChannelPreviouslyOpen () const
 
bool isLogicalChannelOpen () const
 
const std::shared_ptr< SelectionStatusgetSelectionStatus () const
 
std::vector< std::shared_ptr< ApduResponse > > & getApduResponses ()
 
bool operator== (const SeResponse &o) const
 
bool operator!= (const SeResponse &o) const
 

Friends

KEYPLECORE_API std::ostream & operator<< (std::ostream &os, const SeResponse &sr)
 
KEYPLECORE_API std::ostream & operator<< (std::ostream &os, const std::shared_ptr< SeResponse > &sr)
 
KEYPLECORE_API std::ostream & operator<< (std::ostream &os, const std::vector< std::shared_ptr< SeResponse >> &sr)
 

Detailed Description

Group of SE responses received in response to a keyple::core::seproxy::message::SeRequest.

See also
SeRequest

Constructor & Destructor Documentation

◆ SeResponse()

keyple::core::seproxy::message::SeResponse::SeResponse ( const bool  logicalChannelIsOpen,
const bool  channelPreviouslyOpen,
std::shared_ptr< SelectionStatus selectionStatus,
const std::vector< std::shared_ptr< ApduResponse >> &  apduResponses 
)

the constructor called by a ProxyReader during the processing of the ‘transmit’ method.

Parameters
logicalChannelIsOpenthe current channel status
channelPreviouslyOpenthe channel previously open
selectionStatusthe SE selection status
apduResponsesthe apdu responses

Member Function Documentation

◆ getApduResponses()

std::vector< std::shared_ptr< ApduResponse > > & keyple::core::seproxy::message::SeResponse::getApduResponses ( )

Gets the apdu responses.

Returns
the group of APDUs responses returned by the SE application for this instance of SEResponse.

◆ getSelectionStatus()

const std::shared_ptr< SelectionStatus > keyple::core::seproxy::message::SeResponse::getSelectionStatus ( ) const

Gets the selection status and its associated data.

Returns
a keyple::core::seproxy::message::SelectionStatus object.

◆ isLogicalChannelOpen()

bool keyple::core::seproxy::message::SeResponse::isLogicalChannelOpen ( ) const

Get the logical channel status

Returns
true if the logical channel is open

◆ operator!=()

bool keyple::core::seproxy::message::SeResponse::operator!= ( const SeResponse o) const

◆ operator==()

bool keyple::core::seproxy::message::SeResponse::operator== ( const SeResponse o) const

◆ wasChannelPreviouslyOpen()

bool keyple::core::seproxy::message::SeResponse::wasChannelPreviouslyOpen ( ) const

Was channel previously open.

Returns
the previous currentState of the logical channel.

Friends And Related Function Documentation

◆ operator<< [1/3]

KEYPLECORE_API std::ostream& operator<< ( std::ostream &  os,
const SeResponse sr 
)
friend

◆ operator<< [2/3]

KEYPLECORE_API std::ostream& operator<< ( std::ostream &  os,
const std::shared_ptr< SeResponse > &  sr 
)
friend

◆ operator<< [3/3]

KEYPLECORE_API std::ostream& operator<< ( std::ostream &  os,
const std::vector< std::shared_ptr< SeResponse >> &  sr 
)
friend

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