Z-Wave Protocol Controller Reference
C++ Association toolbox

C++ definitions for the Association toolbox. More...

Classes

struct  association_compare
 

Typedefs

using association_set = std::set< association_t, association_compare >
 
using association_bytes = std::vector< uint8_t >
 

Functions

void get_association_list (association_bytes source, association_set &target)
 Converts a bytestream from the attribute store to a set of associations. More...
 
void get_node_id_association_list (association_bytes source, association_set &target)
 Converts a bytestream from the attribute store to a set of NodeID associations. Everything after the MARKER will be ignored. More...
 
void get_association_bytestream (association_set source, association_bytes &target)
 Converts a set of associations to a bytestream for the attribute store. More...
 
void get_node_id_association_bytestream (association_set source, association_bytes &target)
 Converts a set of associations to a bytestream that contains only NodeID associations. More...
 
void substract_association_lists (const association_set &set_1, const association_set &set_2, association_set &result)
 Substract set_1 from set_2. More...
 
void merge_association_lists (const association_set &set_1, const association_set &set_2, association_set &result)
 Merge set_1 and set_2. More...
 

Detailed Description

C++ definitions for the Association toolbox.

C++ Helper defintions and functions to manipulate association data in the attribute store

Typedef Documentation

◆ association_bytes

using association_bytes = std::vector<uint8_t>

◆ association_set

Function Documentation

◆ get_association_bytestream()

void get_association_bytestream ( association_set  source,
association_bytes target 
)

Converts a set of associations to a bytestream for the attribute store.

An empty set will result in an ASSOCIATION_MARKER bytestream.

Parameters
[in]sourceSource Association Set
[out]targetDestination Association Bytes

◆ get_association_list()

void get_association_list ( association_bytes  source,
association_set target 
)

Converts a bytestream from the attribute store to a set of associations.

Parameters
[in]sourceSource Association Bytes
[out]targetDestination Association Sets

◆ get_node_id_association_bytestream()

void get_node_id_association_bytestream ( association_set  source,
association_bytes target 
)

Converts a set of associations to a bytestream that contains only NodeID associations.

An empty set will result in an empty bytestream.

Parameters
[in]sourceSource Association Set
[out]targetDestination Association Bytes

◆ get_node_id_association_list()

void get_node_id_association_list ( association_bytes  source,
association_set target 
)

Converts a bytestream from the attribute store to a set of NodeID associations. Everything after the MARKER will be ignored.

Parameters
[in]sourceSource Association Bytes
[out]targetDestination Association Set

◆ merge_association_lists()

void merge_association_lists ( const association_set set_1,
const association_set set_2,
association_set result 
)

Merge set_1 and set_2.

Parameters
[in]set_1The first Association Set
[in]set_2The second Association Set
[out]resultSet that contains both set_1 and set_2 elements

◆ substract_association_lists()

void substract_association_lists ( const association_set set_1,
const association_set set_2,
association_set result 
)

Substract set_1 from set_2.

Parameters
[in]set_1The first Association Set
[in]set_2The second Association Set
[out]resultSet that contains set_2 elements that are not in set_1