Keyple C++  0.9.0
Keyple, an Open Source SDK for Ticketing
Public Member Functions | List of all members
keyple::plugin::stub::StubPoolPlugin Class Referenceabstract

#include <StubPoolPlugin.h>

Inherits keyple::core::seproxy::ReaderPoolPlugin.

Inherited by keyple::plugin::stub::StubPoolPluginImpl.

Public Member Functions

virtual std::shared_ptr< SeReaderplugStubPoolReader (const std::string &groupReference, const std::string &readerName, std::shared_ptr< StubSecureElement > se)=0
 
virtual void unplugStubPoolReader (const std::string &groupReference)=0
 
- Public Member Functions inherited from keyple::core::seproxy::ReaderPoolPlugin
virtual std::set< std::string > getReaderGroupReferences ()=0
 
virtual std::shared_ptr< SeReaderallocateReader (const std::string &groupReference)=0
 
virtual void releaseReader (std::shared_ptr< SeReader > seReader)=0
 
- Public Member Functions inherited from keyple::core::seproxy::ReaderPlugin
virtual ~ReaderPlugin ()=default
 
virtual const std::set< std::string > getReaderNames () const =0
 
virtual ConcurrentMap< const std::string, std::shared_ptr< SeReader > > & getReaders ()=0
 
virtual const std::shared_ptr< SeReadergetReader (const std::string &name)=0
 
- Public Member Functions inherited from keyple::core::seproxy::ProxyElement
virtual ~ProxyElement ()=default
 
virtual const std::string & getName () const =0
 
virtual const std::map< const std::string, const std::string > & getParameters () const =0
 
virtual void setParameter (const std::string &key, const std::string &value)=0
 
virtual void setParameters (const std::map< const std::string, const std::string > &parameters)
 

Detailed Description

StubPoolPlugin allows to simulate a keyple::core::seproxy::ReaderPoolPlugin and a keyple::plugin::stub::StubSecureElement

Member Function Documentation

◆ plugStubPoolReader()

virtual std::shared_ptr<SeReader> keyple::plugin::stub::StubPoolPlugin::plugStubPoolReader ( const std::string &  groupReference,
const std::string &  readerName,
std::shared_ptr< StubSecureElement se 
)
pure virtual

Plug synchronously a new keyple::core::seproxy::protocol::TransmissionMode in Pool with groupReference and a StubSE. A READER_CONNECTED event will be raised.

Parameters
groupReference: group refence of the new stub reader
readerName: name of the new stub reader
se: insert a se at creation (can be null)
Returns
created StubReader

Implemented in keyple::plugin::stub::StubPoolPluginImpl.

◆ unplugStubPoolReader()

virtual void keyple::plugin::stub::StubPoolPlugin::unplugStubPoolReader ( const std::string &  groupReference)
pure virtual

Unplug synchronously a new reader by groupReference. A READER_DISCONNECTED event will be raised.

Parameters
groupReferencegroupReference of the reader to be unplugged

Implemented in keyple::plugin::stub::StubPoolPluginImpl.


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