Allows recording values to an external data base from reaction handlers.
More...
#include <xronos/sdk/metric.hh>
|
| Metric (std::string_view name, ReactorContext context, std::string_view description, std::string_view unit="") |
| Construct a new Metric .
|
|
auto | description () const noexcept -> const std::string & |
| Description of the Metric .
|
|
auto | unit () const noexcept -> const std::string & |
| Unit of the Metric .
|
|
auto | name () const noexcept -> const std::string & |
| The name of the current element.
|
|
auto | fqn () const noexcept -> const std::string & |
| The fully qualified name of the current element.
|
|
Allows recording values to an external data base from reaction handlers.
◆ Metric()
xronos::sdk::Metric::Metric |
( |
std::string_view | name, |
|
|
ReactorContext | context, |
|
|
std::string_view | description, |
|
|
std::string_view | unit = "" ) |
Construct a new Metric
.
- Parameters
-
name | The name of the Metric . |
context | The context object obtained from the Metric 's containing reactor. |
description | A description of the Metric . |
unit | The unit of the Metric . |
◆ description()
auto xronos::sdk::Metric::description |
( |
| ) |
const -> const std::string & |
|
nodiscardnoexcept |
Description of the Metric
.
- Returns
- std::string_view The description of the
Metric
.
◆ unit()
auto xronos::sdk::Metric::unit |
( |
| ) |
const -> const std::string & |
|
nodiscardnoexcept |
Unit of the Metric
.
- Returns
- const std::string& The unit of the
Metric
.
The documentation for this class was generated from the following file: