BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
MemoryDeviceCache implements in-memory volatile DeviceCache. More...
#include <MemoryDeviceCache.h>
Public Member Functions | |
void | setPrepaired (const std::list< std::string > &devices) |
Set devices to be initially marked as paired. This feature might be useful for debugging purposes. | |
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 in the set would be marked as unpaired. | |
void | markPaired (const DeviceID &id) override |
Store the given device id as a paired device. If the id's prefix is not recorded yet, it would be created and it would contain only the given id. | |
void | markUnpaired (const DeviceID &id) override |
Remove the given id from the cache. If the id's prefix does not contain any other id, it would be removed as well. | |
bool | paired (const DeviceID &id) const override |
std::set< DeviceID > | paired (const DevicePrefix &prefix) const override |
Additional Inherited Members | |
Public Types inherited from BeeeOn::DeviceCache | |
typedef Poco::SharedPtr < DeviceCache > | Ptr |
MemoryDeviceCache implements in-memory volatile DeviceCache.
|
overridevirtual |
Implements BeeeOn::DeviceCache.
|
overridevirtual |
Provide the set of paired devices of the particular prefix.
Implements BeeeOn::DeviceCache.