Zigbee Protocol Controller 1.6.0
zigpc_diagnostics_metric.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * # License
3 * <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b>
4 ******************************************************************************
5 * The licensor of this software is Silicon Laboratories Inc. Your use of this
6 * software is governed by the terms of Silicon Labs Master Software License
7 * Agreement (MSLA) available at
8 * www.silabs.com/about-us/legal/master-software-license-agreement. This
9 * software is distributed to you in Source Code format and is governed by the
10 * sections of the MSLA applicable to Source Code.
11 *
12 *****************************************************************************/
13
14#include <string>
15
17
18#ifndef ZIGPC_DIAGNOSTIC_METRIC_H
19#define ZIGPC_DIAGNOSTIC_METRIC_H
20
25{
26 protected:
27 //metric_id to which the metric will publish its resulting value
29 std::string metric_id;
30 std::string serialized_value;
31
32 public:
40 std::string metric_id) :
42
43 std::string get_metric_id(void) const
44 {
45 return this->metric_id;
46 }
47
48 std::string get_serialized_value(void) const
49 {
50 return serialized_value;
51 }
52
53 virtual void update_value(void) = 0;
54};
55
56#endif /* ZIGPC_DIAGNOSTIC_METRIC_H */
Abstract top level metric from which all diagnostic metric derive from.
Definition: zigpc_diagnostics_metric.hpp:25
zigpc_diagnostics_metric(zigpc_diagnostics_notification &notif, std::string metric_id)
Generic diagnostic metric constructor.
Definition: zigpc_diagnostics_metric.hpp:39
std::string get_metric_id(void) const
Definition: zigpc_diagnostics_metric.hpp:43
zigpc_diagnostics_notification & on_update_complete
Definition: zigpc_diagnostics_metric.hpp:28
std::string serialized_value
Definition: zigpc_diagnostics_metric.hpp:30
virtual void update_value(void)=0
std::string metric_id
Definition: zigpc_diagnostics_metric.hpp:29
std::string get_serialized_value(void) const
Definition: zigpc_diagnostics_metric.hpp:48
Definition: zigpc_diagnostics_notification.hpp:20