![]() |
HAN-FUN API
1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
|
Default implementation of the persistence API. More...
#include <device_management.h>
Public Member Functions | |
uint16_t | size () const |
Return the number of entries in the container. More... | |
Common::Result | destroy (const Device &entry) |
Destroy the given entry in the persistent storage. More... | |
DevicePtr | find (uint16_t address) const |
Return the Device entry for the given address. More... | |
DevicePtr | find (const HF::UID::UID &uid) const |
Return the Device entry for the given UID. More... | |
uint16_t | next_address () const |
Return next available address for registering a device. More... | |
iterator | begin () |
Get an iterator to the start of the entries in this container. More... | |
iterator | end () |
Get an iterator to the end of the entries in this container. More... | |
const_iterator | begin () const |
Get a constant iterator to the start of the entries in this container. More... | |
const_iterator | end () const |
Get a constant iterator to the start of the entries in this container. More... | |
![]() | |
virtual Result | save (const Device &entry)=0 |
Store the given entry to persistent storage. More... | |
virtual Result | destroy (const Device &entry)=0 |
Destroy the given entry in the persistent storage. More... | |
Protected Attributes | |
Container | db |
Actual container for the entries. | |
Default implementation of the persistence API.
Definition at line 770 of file device_management.h.
|
inline |
Get an iterator to the start of the entries in this container.
Definition at line 804 of file device_management.h.
References db.
|
inline |
Get a constant iterator to the start of the entries in this container.
Definition at line 824 of file device_management.h.
References db.
Common::Result HF::Core::DeviceManagement::Entries::destroy | ( | const Device & | entry | ) |
Destroy the given entry
in the persistent storage.
[in] | entry | reference to the entry to erase. |
Common::Result::OK,if | the entry was destroyed. |
Common::Result::FAIL_ARG | otherwise. |
|
inline |
Get an iterator to the end of the entries in this container.
Definition at line 814 of file device_management.h.
References db.
|
inline |
Get a constant iterator to the start of the entries in this container.
Definition at line 834 of file device_management.h.
References db.
|
virtual |
Return the Device entry for the given address.
[in] | address | the device address. |
a | pointer to the Device entry associated with the given address, |
nullptr | if the entry does not exist. |
Implements HF::Core::DeviceManagement::IEntries.
|
virtual |
|
virtual |
Return next available address for registering a device.
Implements HF::Core::DeviceManagement::IEntries.
|
inlinevirtual |
Return the number of entries in the container.
Implements HF::Common::IEntries< Device >.
Definition at line 777 of file device_management.h.
References db.