HAN-FUN API  1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
BindManagement::Entries Struct Reference

Custom Bind Management Entries class. More...

#include <base.h>

+ Inheritance diagram for BindManagement::Entries:
+ Collaboration diagram for BindManagement::Entries:

Public Member Functions

void insert (Entry &entry)
 Insert a bind management entry into the database. More...
 
- Public Member Functions inherited from HF::Core::BindManagement::Entries
uint16_t size () const
 Return the number of entries in the container. More...
 
Common::Result destroy (const Entry &entry)
 Destroy the given entry in the persistent storage. More...
 
Common::Result destroy (uint16_t address, Protocol::Address::Type type=Protocol::Address::DEVICE)
 Destroy the entries in the persistent storage, that refer to the the given address. More...
 
EntryPtr find (const Protocol::Address &source, const Common::Interface &itf, const Protocol::Address &destination) const
 Return the Bind entry for the given parameters. More...
 
bool any_of (Protocol::Address const &source, Common::Interface const &itf) const
 Check if entries for the device with given source address and for the given interface ifc exist. More...
 
void for_each (Protocol::Address const &source, Common::Interface const &itf, std::function< void(const Entry &)> func) const
 Call the given function for all the entries with given source address and for the given interface ifc. More...
 
std::pair< iterator, iterator > find (Protocol::Address const &source, Common::Interface const &itf) const
 Return a pair of iterators for the entries that match the given search criteria. More...
 
template<typename Func >
Common::Result destroy (Func func)
 Destroy the entries in the persistent storage, for which the given predicate function returns true. More...
 
- Public Member Functions inherited from HF::Common::IEntries< Entry >
virtual Result save (const Entry &entry)=0
 Store the given entry to persistent storage. More...
 
virtual Result destroy (const Entry &entry)=0
 Destroy the given entry in the persistent storage. More...
 

Additional Inherited Members

- Protected Attributes inherited from HF::Core::BindManagement::Entries
Container db
 Container for the bind entries.
 

Detailed Description

Custom Bind Management Entries class.

This class saves the application configuration every time an entry is save or destroyed.

Definition at line 144 of file base.h.


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