AstraLog-HPC
Loading...
Searching...
No Matches
DataPoint Struct Reference

DataPoint contains the information of a single data point, which is a line of the input file. More...

#include <Types.hpp>

Collaboration diagram for DataPoint:
Collaboration graph

Public Attributes

std::string timestamp
 Timestamp of the reading.
 
std::string sensor_id
 ID of the sensor that produced the reading.
 
std::variant< double, std::string > value
 Double for a valid reading, or a string error marker (e.g. "E").
 
std::string priority
 Priority level carried by the packet.
 

Detailed Description

DataPoint contains the information of a single data point, which is a line of the input file.

Note
The value can be a double (if the data point is valid) or a string (if the data point is invalid/malformed). For this reason, we use std::variant.

Member Data Documentation

◆ priority

std::string DataPoint::priority

Priority level carried by the packet.

◆ sensor_id

std::string DataPoint::sensor_id

ID of the sensor that produced the reading.

◆ timestamp

std::string DataPoint::timestamp

Timestamp of the reading.

◆ value

std::variant<double, std::string> DataPoint::value

Double for a valid reading, or a string error marker (e.g. "E").


The documentation for this struct was generated from the following file: