Zigbee Protocol Controller 1.6.0
ClusterCommandListAccessor Class Reference

#include <zigpc_datastore_accessor.hpp>

Inheritance diagram for ClusterCommandListAccessor:
StoreListAccessor< zcl_command_id_t >

Public Member Functions

 ClusterCommandListAccessor (zcl_command_type_t command_type)
 
std::string to_str (attribute_store_node_t parent, size_t list_count) override
 Return string representation of command list. More...
 
- Public Member Functions inherited from StoreListAccessor< zcl_command_id_t >
 StoreListAccessor (attribute_store_type_t node_type, std::string label)
 
virtual ~StoreListAccessor ()=default
 
sl_status_t read_list (attribute_store_node_t list_parent, zcl_command_id_t *const list, size_t list_capacity)
 Read the list of entries. More...
 
sl_status_t create_list (attribute_store_node_t list_parent, const zcl_command_id_t *list, size_t list_count)
 Create the list into the store if it doesn't exist already. More...
 
sl_status_t remove_list (attribute_store_node_t list_parent)
 Remove a list under the node ID passed in. More...
 
virtual std::string to_str (attribute_store_node_t parent, size_t list_count)=0
 

Static Public Member Functions

static std::string get_label_type (zcl_command_type_t command_type)
 Get the label type based on the command type passed in. More...
 
static attribute_store_type_t get_entity_type (zcl_command_type_t command_type)
 Retrieve the attribute store node type of the command based on the command type received. More...
 

Private Attributes

zcl_command_type_t command_type
 

Constructor & Destructor Documentation

◆ ClusterCommandListAccessor()

ClusterCommandListAccessor::ClusterCommandListAccessor ( zcl_command_type_t  command_type)
explicit

Member Function Documentation

◆ get_entity_type()

static attribute_store_type_t ClusterCommandListAccessor::get_entity_type ( zcl_command_type_t  command_type)
inlinestatic

Retrieve the attribute store node type of the command based on the command type received.

Parameters
command_type
Returns
attribute_store_type_t ZIGPC_DS_TYPE_CLUSTER_GENERATED_COMMAND or or ZIGPC_DS_TYPE_CLUSTER_RECEIVED_COMMAND.

◆ get_label_type()

static std::string ClusterCommandListAccessor::get_label_type ( zcl_command_type_t  command_type)
inlinestatic

Get the label type based on the command type passed in.

Parameters
command_type
Returns
std::string

◆ to_str()

std::string ClusterCommandListAccessor::to_str ( attribute_store_node_t  parent,
size_t  list_count 
)
overridevirtual

Return string representation of command list.

Parameters
parentParent of command list (cluster entity).
list_countCount of command list entries to print.
Returns
std::string Command list in string form, else empty string if entity is not stored.

Implements StoreListAccessor< zcl_command_id_t >.

Member Data Documentation

◆ command_type

zcl_command_type_t ClusterCommandListAccessor::command_type
private

The documentation for this class was generated from the following file: