7 #include <Poco/RWLock.h>
9 #include "core/DeviceCache.h"
22 void setPrepaired(
const std::list<std::string> &devices);
31 const std::set<DeviceID> &devices)
override;
57 std::map<DevicePrefix, std::set<DeviceID>> m_cache;
58 mutable Poco::RWLock m_lock;
void setPrepaired(const std::list< std::string > &devices)
Set devices to be initially marked as paired. This feature might be useful for debugging purposes...
Definition: MemoryDeviceCache.cpp:13
bool paired(const DeviceID &id) const override
Definition: MemoryDeviceCache.cpp:62
MemoryDeviceCache implements in-memory volatile DeviceCache.
Definition: MemoryDeviceCache.h:16
DeviceCache manages pairing status devices which allows to choose different caching strategies like: ...
Definition: DeviceCache.h:17
void markPaired(const DevicePrefix &prefix, const std::set< DeviceID > &devices) override
Stores the given set of devices of the same prefix as the set of paired devices. Devices not included...
void markUnpaired(const DeviceID &id) override
Remove the given id from the cache. If the id's prefix does not contain any other id...
Definition: MemoryDeviceCache.cpp:48
Definition: DeviceID.h:17