103 virtual const std::shared_ptr<ScheduledCardSelectionsResponse>
118 case CardReaderEvent::Type::CARD_INSERTED:
119 os <<
"CARD_INSERTED";
121 case CardReaderEvent::Type::CARD_MATCHED:
122 os <<
"CARD_MATCHED";
124 case CardReaderEvent::Type::CARD_REMOVED:
125 os <<
"CARD_REMOVED";
127 case CardReaderEvent::Type::UNAVAILABLE:
131 os <<
"UNKNOWN_TYPE(" <<
static_cast<int>(type) <<
")";
Card event data container indicating a change of state.
virtual Type getType() const =0
Returns the reader event type.
virtual const std::string & getReaderName() const =0
Returns the name of the reader that generated the event.
Type
Possible card events.
@ UNAVAILABLE
The reader has become unavailable.
@ CARD_REMOVED
The card has been removed from the reader.
@ CARD_INSERTED
A card has been inserted with or without specific selection.
@ CARD_MATCHED
A card has been inserted that matches the selection.
virtual const std::shared_ptr< ScheduledCardSelectionsResponse > getScheduledCardSelectionsResponse() const =0
Returns the card selection responses when it is available and null in all other cases.
Response of the execution of a scheduled selection scenario provided by a calypsonet::terminal::reade...
std::ostream & operator<<(std::ostream &os, const CardReaderEvent::Type type)
Operator << for CardReaderEvent::Type enum to enable readable logging.