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

#include <StubPlugin.h>

Inherits keyple::core::seproxy::event::ObservablePlugin.

Inherited by keyple::plugin::stub::StubPluginImpl.

Public Member Functions

virtual void plugStubReader (const std::string &name, bool synchronous)=0
 
virtual void plugStubReader (const std::string &name, TransmissionMode transmissionMode, bool synchronous)=0
 
virtual void plugStubReaders (const std::set< std::string > &names, bool synchronous)=0
 
virtual void unplugStubReader (const std::string &name, bool synchronous)=0
 
virtual void unplugStubReaders (const std::set< std::string > &names, bool synchronous)=0
 
- Public Member Functions inherited from keyple::core::seproxy::event::ObservablePlugin
virtual ~ObservablePlugin ()=default
 
virtual void addObserver (const std::shared_ptr< PluginObserver > observer)=0
 
virtual void removeObserver (const std::shared_ptr< PluginObserver > observer)=0
 
virtual void clearObservers ()=0
 
virtual int countObservers () const =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

Stubplugin allows to simulate a keyple::core::seproxy::ReaderPlugin and a keyple::plugin::stub::StubSecureElement

Member Function Documentation

◆ plugStubReader() [1/2]

virtual void keyple::plugin::stub::StubPlugin::plugStubReader ( const std::string &  name,
bool  synchronous 
)
pure virtual

Plug a Stub Reader

Parameters
name: name of the created reader
synchronous: should the stubreader added synchronously (without waiting for the observation thread)

Implemented in keyple::plugin::stub::StubPluginImpl.

◆ plugStubReader() [2/2]

virtual void keyple::plugin::stub::StubPlugin::plugStubReader ( const std::string &  name,
TransmissionMode  transmissionMode,
bool  synchronous 
)
pure virtual

Plug a Stub Reader

Parameters
name: name of the created reader
transmissionMode: transmissionMode of the created reader
synchronous: should the stubreader added synchronously (without waiting for the observation thread)

Implemented in keyple::plugin::stub::StubPluginImpl.

◆ plugStubReaders()

virtual void keyple::plugin::stub::StubPlugin::plugStubReaders ( const std::set< std::string > &  names,
bool  synchronous 
)
pure virtual

Plug a list of stub Reader at once

Parameters
names: names of readers to be connected
synchronous: should the stubreader be added synchronously (without waiting for the observation thread). An READER_CONNECTED event is raised in both cases

Implemented in keyple::plugin::stub::StubPluginImpl.

◆ unplugStubReader()

virtual void keyple::plugin::stub::StubPlugin::unplugStubReader ( const std::string &  name,
bool  synchronous 
)
pure virtual

Unplug a Stub Reader

Parameters
namethe name of the reader
Exceptions
KeypleReaderExceptionin case of a reader exception
Parameters
synchronous: should the stubreader be removed synchronously (without waiting for the observation thread). An READER_DISCONNECTED event is raised in both cases

Implemented in keyple::plugin::stub::StubPluginImpl.

◆ unplugStubReaders()

virtual void keyple::plugin::stub::StubPlugin::unplugStubReaders ( const std::set< std::string > &  names,
bool  synchronous 
)
pure virtual

Unplug a list of readers

Parameters
names: names of the reader to be unplugged
synchronous: should the stubreader removed synchronously (without waiting for the observation thread). An READER_DISCONNECTED event is raised in both cases

Implemented in keyple::plugin::stub::StubPluginImpl.


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