Keyple C++
0.9.0
Keyple, an Open Source SDK for Ticketing
|
#include <AbstractSeSelectionRequest.h>
Public Member Functions | |
AbstractSeSelectionRequest (std::shared_ptr< SeSelector > seSelector) | |
virtual | ~AbstractSeSelectionRequest ()=default |
virtual std::shared_ptr< SeRequest > | getSelectionRequest () |
virtual std::shared_ptr< SeSelector > | getSeSelector () |
virtual const std::shared_ptr< AbstractMatchingSe > | parse (std::shared_ptr< SeResponse > seResponse)=0 |
void | addCommandBuilder (std::shared_ptr< T > commandBuilder) |
const std::vector< std::shared_ptr< T > > | getCommandBuilders () const |
Public Attributes | |
const std::shared_ptr< SeSelector > | mSeSelector |
Friends | |
std::ostream & | operator<< (std::ostream &os, const AbstractSeSelectionRequest< T > &asr) |
The AbstractSeSelectionRequest class combines a SeSelector with additional helper methods useful to the selection process done in SeSelection.
This class may also be extended to add particular features specific to a SE family.
|
inlineexplicit |
|
virtualdefault |
|
inline |
Add an additional keyple::core::seproxy::SeReader for the command to be executed after the selection process if it succeeds.
If more than one keyple::core::seproxy::SeReader is added, all will be executed in the order in which they were added.
commandBuilder | an keyple::core::seproxy::SeReader |
/!\ C++ vs. Java: this function is protected in Java
|
inline |
/!\ C++ vs. Java: this function is protected in Java
|
inlinevirtual |
Returns a selection SeRequest built from the information provided in the constructor and possibly completed with the commandBuilders list
|
inlinevirtual |
|
pure virtual |
Virtual parse method
seResponse | the SE response received |
KeypleException | if an error occurs while parsing the SE response |
Note: protected in Java, triggers error when used in SeSelection.cpp
Implemented in keyple::calypso::transaction::SamSelectionRequest, and keyple::calypso::transaction::PoSelectionRequest.
|
friend |
const std::shared_ptr<SeSelector> keyple::core::selection::AbstractSeSelectionRequest< T >::mSeSelector |