blob: 0bab65ec196ca604f68547d933173ba48fdc1df1 [file] [log] [blame] [raw]
#ifndef DEVREADERFACTORY_H
#define DEVREADERFACTORY_H
#include <string>
#include <map>
class DevReader;
class DevReaderFactory
{
public:
DevReaderFactory();
~DevReaderFactory();
static int findAllDevices();
static int getDeviceCount();
static const std::map<std::string, DevReader*>& getAllDevReaders();
private:
static DevReader* createDevReader(const std::string& deviceName);
static std::map<std::string, DevReader*> m_devReaders;
static DevReaderFactory m_instance;
};
#endif