#include <zigpc_datastore_accessor.hpp>
◆ StoreListAccessor()
template<typename list_entry_t >
◆ ~StoreListAccessor()
template<typename list_entry_t >
◆ create_list()
template<typename list_entry_t >
Create the list into the store if it doesn't exist already.
NOTE: if this function returns SL_STATUS_ALREADY_EXISTS, ensure that the parent entity has it's children of this entity type removed.
- Parameters
-
parent | Parent node to read entries under. |
list | Reference to list to write. |
list_count | Number of items in the list. |
- Returns
- sl_status_t SL_STATUS_OK if the list entries are added successfully, SL_STATUS_NOT_FOUND if the parent is not found, or SL_STATUS_ALREADY_EXISTS if an array already exists, or SL_STATUS_NULL_POINTER if invalid list reference is passed, or SL_STATUS_FAIL if the create process failed.
◆ read_list()
template<typename list_entry_t >
Read the list of entries.
- Parameters
-
parent | Parent node to read entries under. |
list | Reference to list to write. |
list_capacity | Number of items in the list. |
- Returns
- sl_status_t SL_STATUS_OK if the list entries are read successfully, SL_STATUS_NOT_FOUND if the parent is not found, or SL_STATUS_NULL_POINTER if invalid list reference is passed, or SL_STATUS_FAIL if the read process failed.
◆ remove_list()
template<typename list_entry_t >
Remove a list under the node ID passed in.
- Parameters
-
parent | Parent Node ID that has the list. |
- Returns
- sl_status_t
◆ to_str()
template<typename list_entry_t >
◆ list_entry
template<typename list_entry_t >
The documentation for this class was generated from the following file: