AstraLog-HPC
Loading...
Searching...
No Matches
Types.cpp File Reference
#include <Engine/Types.hpp>
#include <iostream>
#include <optional>
Include dependency graph for Types.cpp:

Functions

std::optional< DataPoint > parseStringToDataPoint (const std::string &line, simdjson::dom::parser &parser)
 Parses a line of the input file into a DataPoint structure.
 

Function Documentation

◆ parseStringToDataPoint()

std::optional< DataPoint > parseStringToDataPoint ( const std::string &  line,
simdjson::dom::parser &  parser 
)

Parses a line of the input file into a DataPoint structure.

Parameters
lineThe line to parse, in JSON format "timestamp,sensor_id,value,priority".
parserThe simdjson parser to use for parsing the value.
Returns
A DataPoint structure containing the parsed information.
Here is the caller graph for this function: