Z-Wave Protocol Controller Reference
user_credential::checksum_calculator Class Reference

Compute the checksum based on the attribute store. More...

#include <user_credential_checksum_calculator.h>

Collaboration diagram for user_credential::checksum_calculator:

Public Member Functions

void add_node (const attribute_store::attribute &attribute)
 Compute a node value and add it to the current checksum. More...
 
user_credential_checksum_t compute_checksum ()
 Compute the checksum of the added nodes. More...
 

Private Attributes

std::vector< uint8_t > checksum_data
 

Detailed Description

Compute the checksum based on the attribute store.

Member Function Documentation

◆ add_node()

void user_credential::checksum_calculator::add_node ( const attribute_store::attribute &  attribute)

Compute a node value and add it to the current checksum.

Parameters
nodeNode to compute the checksum from
Exceptions
std::runtime_errorIf the node is invalid or if the conversion failed

◆ compute_checksum()

user_credential_checksum_t user_credential::checksum_calculator::compute_checksum ( )

Compute the checksum of the added nodes.

Note
If no nodes are added, the checksum is 0 (see CC:0083.01.19.11.016 & CC:0083.01.17.11.013)
Returns
user_credential_checksum_t

Member Data Documentation

◆ checksum_data

std::vector<uint8_t> user_credential::checksum_calculator::checksum_data
private

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