BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Types | Public Member Functions
BeeeOn::DeviceCache Class Referenceabstract

DeviceCache manages pairing status devices which allows to choose different caching strategies like: in-memory cache, persistent cache, centralized cache, etc. More...

#include <DeviceCache.h>

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

Public Types

typedef Poco::SharedPtr
< DeviceCache
Ptr
 

Public Member Functions

virtual void markPaired (const DevicePrefix &prefix, const std::set< DeviceID > &devices)=0
 
virtual void markPaired (const DeviceID &device)=0
 
virtual void markUnpaired (const DeviceID &device)=0
 
virtual bool paired (const DeviceID &id) const =0
 
virtual std::set< DeviceIDpaired (const DevicePrefix &prefix) const =0
 

Detailed Description

DeviceCache manages pairing status devices which allows to choose different caching strategies like: in-memory cache, persistent cache, centralized cache, etc.

Member Function Documentation

virtual void BeeeOn::DeviceCache::markPaired ( const DevicePrefix prefix,
const std::set< DeviceID > &  devices 
)
pure virtual

Mark paired all the given devices with the prefix. Devices that are not included in the set are marked as unpaired. No other device of the prefix except those in the given set would be paired after this operation.

Implemented in BeeeOn::FilesystemDeviceCache, and BeeeOn::MemoryDeviceCache.

virtual void BeeeOn::DeviceCache::markPaired ( const DeviceID device)
pure virtual

Mark the device as paired.

Implemented in BeeeOn::FilesystemDeviceCache, and BeeeOn::MemoryDeviceCache.

virtual void BeeeOn::DeviceCache::markUnpaired ( const DeviceID device)
pure virtual

Mark the device as unpaired.

Implemented in BeeeOn::FilesystemDeviceCache, and BeeeOn::MemoryDeviceCache.

virtual bool BeeeOn::DeviceCache::paired ( const DeviceID id) const
pure virtual
Returns
true if such device is marked as paired

Implemented in BeeeOn::FilesystemDeviceCache, and BeeeOn::MemoryDeviceCache.

virtual std::set<DeviceID> BeeeOn::DeviceCache::paired ( const DevicePrefix prefix) const
pure virtual

Provide set of all paired devices for the given prefix.

Implemented in BeeeOn::FilesystemDeviceCache, and BeeeOn::MemoryDeviceCache.


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