AstraLog-HPC
Loading...
Searching...
No Matches
ConfigReader Class Reference

Parses sensor and rule configuration files to derive the optimal batch size. More...

#include <BatchWriter.hpp>

Collaboration diagram for ConfigReader:
Collaboration graph

Public Member Functions

 ConfigReader (const std::string &sensors_filepath, std::string rules_filepath)
 Constructs a ConfigReader from the given configuration files.
 
int optimal_batch_size () const
 Returns the optimal number of rows per batch based on the sensor count.
 

Private Attributes

std::string sensors_filepath
 Path to the sensors configuration file.
 
std::string rules_filepath
 Path to the rules configuration file.
 
size_t sensors_number
 Number of sensors; used to compute the optimal batch size.
 

Detailed Description

Parses sensor and rule configuration files to derive the optimal batch size.

Constructor & Destructor Documentation

◆ ConfigReader()

ConfigReader::ConfigReader ( const std::string &  sensors_filepath,
std::string  rules_filepath 
)

Constructs a ConfigReader from the given configuration files.

Parameters
sensors_filepathThe path to the sensors configuration file.
rules_filepathThe path to the rules configuration file.

Member Function Documentation

◆ optimal_batch_size()

int ConfigReader::optimal_batch_size ( ) const

Returns the optimal number of rows per batch based on the sensor count.

Returns
The optimal batch size.
Here is the caller graph for this function:

Member Data Documentation

◆ rules_filepath

std::string ConfigReader::rules_filepath
private

Path to the rules configuration file.

◆ sensors_filepath

std::string ConfigReader::sensors_filepath
private

Path to the sensors configuration file.

◆ sensors_number

size_t ConfigReader::sensors_number
private

Number of sensors; used to compute the optimal batch size.


The documentation for this class was generated from the following files: