Z-Wave Protocol Controller Reference
user_credential_helpers.hpp File Reference
Include dependency graph for user_credential_helpers.hpp:

Go to the source code of this file.

Classes

struct  user_credential_helpers::credential_id_nodes
 
struct  user_credential_helpers::identifier_state< T >
 

Namespaces

namespace  user_credential_helpers
 

Typedefs

using user_credential_helpers::attribute_callback = std::function< void(attribute_store::attribute &)>
 

Functions

template<typename T >
attribute_store::attribute user_credential_helpers::create_or_update_desired_value (attribute_store::attribute base_node, attribute_store_type_t attribute_type, T value)
 Update desired value if found, or create the node otherwise. More...
 
void user_credential_helpers::set_operation_type (attribute_store::attribute base_node, attribute_store_type_t operation_type_node_type, user_credential_operation_type_t operation_type)
 Create operation_type_node_type if it doesn't exists, and set the desired value to operation_type (and clear reported) More...
 
void user_credential_helpers::set_user_operation_type (attribute_store_node_t user_node, user_credential_operation_type_t operation_type)
 Set User Operation. More...
 
void user_credential_helpers::set_credential_operation_type (attribute_store_node_t slot_node, user_credential_operation_type_t operation_type)
 Set Credential Operation. More...
 
void user_credential_helpers::set_credential_learn_operation_type (attribute_store_node_t slot_node, user_credential_operation_type_t operation_type)
 Set Credential Learn Operation. More...
 
bool user_credential_helpers::user_exists (attribute_store::attribute endpoint_node, user_credential_user_unique_id_t user_id)
 Get node associated with user ID (desired or reported) More...
 
attribute_store::attribute user_credential_helpers::get_user_unique_id_node (attribute_store::attribute endpoint_node, user_credential_user_unique_id_t user_id, attribute_store_node_value_state_t state)
 Get node associated with user ID (desired or reported) More...
 
attribute_store::attribute user_credential_helpers::get_credential_type_node (attribute_store::attribute user_id_node, user_credential_type_t cred_type, attribute_store_node_value_state_t state)
 Get credential type node associated with user ID. More...
 
attribute_store::attribute user_credential_helpers::get_credential_slot_node (attribute_store::attribute cred_type_node, user_credential_slot_t cred_slot, attribute_store_node_value_state_t state)
 Get credential slot node associated with credential type. More...
 
void user_credential_helpers::for_each_credential_type_nodes_for_user (attribute_store::attribute user_id_node, const attribute_callback &callback, user_credential_type_t credential_type=0)
 Iterate on each credential type nodes for a given user. More...
 
void user_credential_helpers::for_each_credential_type_nodes (attribute_store::attribute endpoint_node, const attribute_callback &callback, user_credential_type_t credential_type=0)
 Iterate on each credential type nodes. More...
 
bool user_credential_helpers::is_credential_available (attribute_store_node_t endpoint_node, user_credential_type_t credential_type, user_credential_slot_t credential_slot)
 Checks if given credential ID (credential type, credential slot) is available. More...
 
credential_id_nodes user_credential_helpers::get_credential_identifier_nodes (attribute_store_node_t child_node)
 Get associated credential identifier nodes. More...
 
credential_id_nodes user_credential_helpers::get_credential_identifier_nodes (const attribute_store::attribute &endpoint_node, identifier_state< user_credential_user_unique_id_t > user_id, identifier_state< user_credential_type_t > credential_type, identifier_state< user_credential_slot_t > credential_slot)
 Get associated credential identifier nodes. More...
 
bool user_credential_helpers::is_admin_code_empty (const std::vector< uint8_t > &admin_pin_code)
 Return true if given admin pin code is considered empty. More...
 
void user_credential_helpers::set_empty_admin_code (attribute_store::attribute &admin_pin_code_node, attribute_store_node_value_state_t state)
 Set the admin pin code node to an empty value. More...