![]() |
HAN-FUN API
1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
|
Basic API for persistent storage implementations. More...
#include <common.h>
Public Member Functions | |
virtual uint16_t | size () const =0 |
Return the number of entries in the container. More... | |
virtual Result | save (const T &entry)=0 |
Store the given entry to persistent storage. More... | |
virtual Result | destroy (const T &entry)=0 |
Destroy the given entry in the persistent storage. More... | |
Basic API for persistent storage implementations.
Definition at line 1302 of file inc/hanfun/common.h.
|
pure virtual |
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. |
|
pure virtual |
Store the given entry
to persistent storage.
[in] | entry | the entry to save to storage. |
Common::Result::OK | if the entry was saved, |
Common::Result::FAIL_UNKNOWN | otherwise. |
|
pure virtual |
Return the number of entries in the container.
Implemented in HF::Core::DeviceManagement::Entries, HF::Core::GroupManagement::Entries, HF::Core::BindManagement::Entries, HF::Core::Scheduling::Entries< _Type >, HF::Core::BatchProgramManagement::Entries, and HF::Core::GroupTable::Entries.
Referenced by HF::Core::GroupManagement::IServer::number_of_groups().