BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Member Functions
BeeeOn::MemoryDeviceCache Class Reference

MemoryDeviceCache implements in-memory volatile DeviceCache. More...

#include <MemoryDeviceCache.h>

Inheritance diagram for BeeeOn::MemoryDeviceCache:
BeeeOn::DeviceCache

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< DeviceIDpaired (const DevicePrefix &prefix) const override
 

Additional Inherited Members

- Public Types inherited from BeeeOn::DeviceCache
typedef Poco::SharedPtr
< DeviceCache
Ptr
 

Detailed Description

MemoryDeviceCache implements in-memory volatile DeviceCache.

Member Function Documentation

bool MemoryDeviceCache::paired ( const DeviceID id) const
overridevirtual
Returns
whether the given id has a record in the cache

Implements BeeeOn::DeviceCache.

set< DeviceID > MemoryDeviceCache::paired ( const DevicePrefix prefix) const
overridevirtual

Provide the set of paired devices of the particular prefix.

Implements BeeeOn::DeviceCache.


The documentation for this class was generated from the following files: