|
AstraLog-HPC
|
Definition of the data structures and utility functions used across the Engine folder. More...
#include <optional>#include <variant>#include <string>#include <vector>#include <simdjson.h>#include <RulesFactory/Strategy.hpp>

Go to the source code of this file.
Classes | |
| struct | DataPoint |
| DataPoint contains the information of a single data point, which is a line of the input file. More... | |
| struct | IntermediateResult |
| Intermediate result for each timestamp: alarms + map of rule outcomes. More... | |
Typedefs | |
| using | Batch = std::vector< DataPoint > |
| Batch groups all the data points for a single timestamp. | |
Functions | |
| std::optional< DataPoint > | parseStringToDataPoint (const std::string &line, simdjson::dom::parser &parser) |
| Parses a line of the input file into a DataPoint structure. | |
Definition of the data structures and utility functions used across the Engine folder.
| std::optional< DataPoint > parseStringToDataPoint | ( | const std::string & | line, |
| simdjson::dom::parser & | parser | ||
| ) |
Parses a line of the input file into a DataPoint structure.
| line | The line to parse, in JSON format "timestamp,sensor_id,value,priority". |
| parser | The simdjson parser to use for parsing the value. |
