|
| StoreAccessor (attribute_store_type_t node_type, std::string label) |
|
virtual | ~StoreAccessor ()=default |
|
std::string | get_label (void) const |
|
attribute_store_type_t | get_node_type (void) const |
|
attribute_store_node_t | find (attribute_store_node_t parent, search_key_t key) |
| Find an entity based based on the key. More...
|
|
size_t | child_count (attribute_store_node_t parent, search_key_t key, attribute_store_type_t child_type) |
| Retrive the count of child entities by type. More...
|
|
sl_status_t | find_by_index (attribute_store_node_t parent, size_t index, search_key_t *key) |
| Find the search key of the child entity based on the index. More...
|
|
sl_status_t | create (attribute_store_node_t parent, search_key_t key) |
| Create a new entity based on the search key. More...
|
|
sl_status_t | read (attribute_store_node_t parent, search_key_t key, data_t *const data) |
| Read information of the entity. More...
|
|
sl_status_t | write (attribute_store_node_t parent, search_key_t key, const data_t *data) |
| Write information to the entity. More...
|
|
sl_status_t | remove (attribute_store_node_t parent, search_key_t key) |
| Remove the entity from the store. More...
|
|
sl_status_t | remove_children (attribute_store_node_t parent, search_key_t key) |
| Remove all child entities from the store. More...
|
|
virtual std::string | to_str (attribute_store_node_t parent, search_key_t key) |
| Get string representation of entity in byte buffer representation. More...
|
|
template<typename search_key_t, typename data_t>
class StoreAccessor< search_key_t, data_t >
Template class for accessing entities using the attribute store API.
NOTE: The serach_key_t for every entity type uses the desired field of an attribute store node while the data_t is stored using the reported field of an attribute store node. Having the search_key_t contained in the desired field allows the component to search for attribute store nodes by the desired key value.
- Template Parameters
-
search_key_t | key type to be stored in the attribute store node's desired field and used for searching. |
data_t | data to be stored in the attribute store node's reported field. |