22 std::variant<double, std::string>
value;
29using Batch = std::vector<DataPoint>;
Abstract class for the strategy pattern, defining the interface for different rule strategies.
std::unordered_map< std::string, bool > ResultMap
Alias for a map containing the boolean evaluation results of rules, keyed by rule ID.
Definition Strategy.hpp:18
std::optional< DataPoint > parseStringToDataPoint(const std::string &line, simdjson::dom::parser &parser)
Parses a line of the input file into a DataPoint structure.
Definition Types.cpp:5
std::vector< DataPoint > Batch
Batch groups all the data points for a single timestamp.
Definition Types.hpp:29
DataPoint contains the information of a single data point, which is a line of the input file.
Definition Types.hpp:19
std::variant< double, std::string > value
Double for a valid reading, or a string error marker (e.g. "E").
Definition Types.hpp:22
std::string timestamp
Timestamp of the reading.
Definition Types.hpp:20
std::string priority
Priority level carried by the packet.
Definition Types.hpp:23
std::string sensor_id
ID of the sensor that produced the reading.
Definition Types.hpp:21