7#ifndef LOGICALACCESS_READER_PROVIDER_HPP
8#define LOGICALACCESS_READER_PROVIDER_HPP
18typedef std::vector<std::shared_ptr<ReaderUnit>>
ReaderList;
20bool hasEnding(std::string
const &fullString, std::string ending);
27 :
public std::enable_shared_from_this<ReaderProvider>
61 virtual const ReaderList waitForReaders(std::vector<std::string> readers,
62 double maxwait,
bool all);
87 static std::shared_ptr<ReaderProvider> getReaderProviderFromRPType(std::string rpt);
A Reader Provider base class. It provide a available list of specific reader kind.
Definition: readerprovider.hpp:28
virtual std::string getRPType() const =0
Get the reader provider type.
virtual std::string getRPName() const =0
Get the reader provider name.
virtual const ReaderList & getReaderList()=0
Get reader list for this reader provider.
virtual bool refreshReaderList()=0
List all readers of the system.
virtual void release()=0
Release the provider resources.
virtual std::shared_ptr< ReaderUnit > createReaderUnit()=0
Create a new reader unit for the reader provider.
std::vector< std::shared_ptr< ReaderUnit > > ReaderList
A reader unit list.
Definition: readerprovider.hpp:18
bool hasEnding(std::string const &fullString, std::string ending)