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

#include <ReaderEvent.h>

Inherits enable_shared_from_this< ReaderEvent >.

Classes

class  EventType
 

Public Member Functions

 ReaderEvent (const std::string &pluginName, const std::string &readerName, const EventType &eventType, std::shared_ptr< AbstractDefaultSelectionsResponse > defaultSelectionsResponse)
 
const std::string & getPluginName () const
 
const std::string & getReaderName () const
 
const EventTypegetEventType () const
 
const std::shared_ptr< AbstractDefaultSelectionsResponsegetDefaultSelectionsResponse () const
 
const std::shared_ptr< ReaderPlugingetPlugin () const
 
const std::shared_ptr< SeReadergetReader () const
 

Friends

KEYPLECORE_API std::ostream & operator<< (std::ostream &os, const ReaderEvent &re)
 
KEYPLECORE_API std::ostream & operator<< (std::ostream &os, const std::shared_ptr< ReaderEvent > &re)
 

Detailed Description

ReaderEvent used to notify changes at reader level

Constructor & Destructor Documentation

◆ ReaderEvent()

keyple::core::seproxy::event::ReaderEvent::ReaderEvent ( const std::string &  pluginName,
const std::string &  readerName,
const EventType eventType,
std::shared_ptr< AbstractDefaultSelectionsResponse defaultSelectionsResponse 
)

ReaderEvent constructor for simple insertion notification mode

Parameters
pluginNamethe name of the current plugin
readerNamethe name of the current reader
eventTypethe type of event
defaultSelectionsResponsethe response to the default AbstractDefaultSelectionsRequest (may be null)

Member Function Documentation

◆ getDefaultSelectionsResponse()

const std::shared_ptr< AbstractDefaultSelectionsResponse > keyple::core::seproxy::event::ReaderEvent::getDefaultSelectionsResponse ( ) const
Returns
the default selection response (when the event is SE_INSERTED or SE_MATCHED)

◆ getEventType()

const ReaderEvent::EventType & keyple::core::seproxy::event::ReaderEvent::getEventType ( ) const
Returns
the type of event

◆ getPlugin()

const std::shared_ptr< ReaderPlugin > keyple::core::seproxy::event::ReaderEvent::getPlugin ( ) const
Returns
the plugin from which the reader that generated the event comes from

◆ getPluginName()

const std::string & keyple::core::seproxy::event::ReaderEvent::getPluginName ( ) const
Returns
the name of the plugin from which the reader that generated the event comes from

◆ getReader()

const std::shared_ptr< SeReader > keyple::core::seproxy::event::ReaderEvent::getReader ( ) const
Returns
the reader that generated the event comes from

◆ getReaderName()

const std::string & keyple::core::seproxy::event::ReaderEvent::getReaderName ( ) const
Returns
the name of the reader that generated the event comes from

Friends And Related Function Documentation

◆ operator<< [1/2]

KEYPLECORE_API std::ostream& operator<< ( std::ostream &  os,
const ReaderEvent re 
)
friend

◆ operator<< [2/2]

KEYPLECORE_API std::ostream& operator<< ( std::ostream &  os,
const std::shared_ptr< ReaderEvent > &  re 
)
friend

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