Zigbee Protocol Controller 1.6.0
zigpc_common_util.hpp File Reference
#include <string>
#include "zigpc_common_zigbee.h"

Go to the source code of this file.

Functions

bool operator== (const zigbee_binding_t &A, const zigbee_binding_t &B)
 zigbee_binding_t operator== An operator override for equality. Allows zigbee_binding_t to be used in a variety of situations, including with std::algorithm and containers More...
 
bool operator!= (const zigbee_binding_t &A, const zigbee_binding_t &B)
 zigbee_binding_t operator!= An operator override for equality. Allows zigbee_binding_t to be used in a variety of situations, including with std::algorithm and containers More...
 
std::string binding_to_string (const zigbee_binding_t binding)
 binding_to_string Utility function that accepts a copy of a binding and returns its serialized string More...
 
zigbee_binding_t string_to_binding (const std::string &binding_str)
 string_to_binding Utility function to convert a string to a binding More...
 

Function Documentation

◆ binding_to_string()

std::string binding_to_string ( const zigbee_binding_t  binding)

binding_to_string Utility function that accepts a copy of a binding and returns its serialized string

Parameters
binding- the binding to serialize
Returns
a string representing the input binding

◆ operator!=()

bool operator!= ( const zigbee_binding_t A,
const zigbee_binding_t B 
)

zigbee_binding_t operator!= An operator override for equality. Allows zigbee_binding_t to be used in a variety of situations, including with std::algorithm and containers

◆ operator==()

bool operator== ( const zigbee_binding_t A,
const zigbee_binding_t B 
)

zigbee_binding_t operator== An operator override for equality. Allows zigbee_binding_t to be used in a variety of situations, including with std::algorithm and containers

◆ string_to_binding()

zigbee_binding_t string_to_binding ( const std::string &  binding_str)

string_to_binding Utility function to convert a string to a binding

Parameters
binding_str- a binding serialized as a string
Returns
a copy of the binding serialized in the string