31 #ifndef DEVICEMANAGER_H_ 32 #define DEVICEMANAGER_H_ 34 #include "../Sockets/SerialReaderWriter.h" 56 virtual void add(
const std::string& device, std::shared_ptr<SerialReaderWriter> readerWriter);
57 virtual std::shared_ptr<SerialReaderWriter>
create(std::string device, int32_t baudrate, int32_t flags,
bool createLockFile, int32_t readThreadPriority);
58 virtual std::shared_ptr<SerialReaderWriter>
get(
const std::string& device);
59 virtual void remove(
const std::string& device);
62 std::mutex _devicesMutex;
63 std::map<std::string, std::shared_ptr<SerialReaderWriter>> _devices;
virtual void add(const std::string &device, std::shared_ptr< SerialReaderWriter > readerWriter)
Definition: SerialDeviceManager.cpp:46
This is the base library main class.
Definition: BaseLib.h:95
SerialDeviceManager()
Definition: SerialDeviceManager.cpp:37
Definition: BaseLib.cpp:34
void init(BaseLib::SharedObjects *baseLib)
Definition: SerialDeviceManager.cpp:41
virtual std::shared_ptr< SerialReaderWriter > create(std::string device, int32_t baudrate, int32_t flags, bool createLockFile, int32_t readThreadPriority)
Definition: SerialDeviceManager.cpp:66
virtual ~SerialDeviceManager()
Definition: SerialDeviceManager.h:53
Definition: SerialDeviceManager.h:49