blob: 7fcddb33decfd219032e61a2336e478ea8befb64 [file] [log] [blame]
Wludzik, Jozefe2362792020-10-27 17:23:55 +01001#pragma once
2
3#include <array>
4#include <string>
5
6namespace utils
7{
8namespace literals
9{
10
11constexpr char id[] = "id";
12constexpr char sensorPaths[] = "sensorPaths";
13constexpr char operationType[] = "operationType";
14constexpr char metricMetadata[] = "metricMetadata";
15
16} // namespace literals
17
18template <const char* const V>
19struct Label
20{
21 static std::string str()
22 {
23 return V;
24 }
25};
26
27namespace tstring
28{
29
30using Id = utils::Label<utils::literals::id>;
31using SensorPaths = utils::Label<utils::literals::sensorPaths>;
32using OperationType = utils::Label<utils::literals::operationType>;
33using MetricMetadata = utils::Label<utils::literals::metricMetadata>;
34
35} // namespace tstring
36} // namespace utils