![]() |
HAN-FUN API
1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
|
Device Management - Persistent Storage API. More...
#include <group_management.h>
Public Member Functions | |
virtual Common::Result | save (uint16_t address, const std::string &name)=0 |
Store the given entry to persistent storage. More... | |
virtual Common::Result | destroy (const uint16_t address)=0 |
Destroy the entry given by address in the persistent storage. More... | |
virtual GroupPtr | find (const uint16_t address) const =0 |
Find the group with the given group address . More... | |
virtual GroupPtr | find (const std::string &name) const =0 |
Find the group with the given name . More... | |
virtual uint16_t | next_address () const =0 |
Return next available address for device group. More... | |
![]() | |
virtual uint16_t | size () const=0 |
Return the number of entries in the container. More... | |
virtual Result | save (const Group &entry)=0 |
Store the given entry to persistent storage. More... | |
virtual Result | destroy (const Group &entry)=0 |
Destroy the given entry in the persistent storage. More... | |
Device Management - Persistent Storage API.
Definition at line 582 of file group_management.h.
|
pure virtual |
Destroy the entry given by address
in the persistent storage.
[in] | address | the address to the entry to erase. |
Common::Result::OK,if | the entry was destroyed. |
Common::Result::FAIL_ARG | otherwise. |
Implemented in HF::Core::GroupManagement::Entries.
|
pure virtual |
Find the group with the given group address
.
[in] | address | HF address to search for. |
address
, nullptr
otherwise. Implemented in HF::Core::GroupManagement::Entries.
Referenced by HF::Core::GroupManagement::IServer::entry().
|
pure virtual |
Find the group with the given name
.
[in] | name | group name to search for. |
name
, nullptr
otherwise. Implemented in HF::Core::GroupManagement::Entries.
|
pure virtual |
Return next available address for device group.
GroupAddress::NO_ADDR
if no address is available. Implemented in HF::Core::GroupManagement::Entries.
Referenced by HF::Core::GroupManagement::IServer::next_address().
|
pure virtual |
Store the given entry
to persistent storage.
[in] | address | HF group address for the new group. |
[in] | name | name for the new group. |
Common::Result::OK | if the entry was saved, |
Common::Result::FAIL_UNKNOWN | otherwise. |
Implemented in HF::Core::GroupManagement::Entries.