Parses sensor and rule configuration files to derive the optimal batch size.
More...
#include <BatchWriter.hpp>
Parses sensor and rule configuration files to derive the optimal batch size.
◆ ConfigReader()
| ConfigReader::ConfigReader |
( |
const std::string & |
sensors_filepath, |
|
|
std::string |
rules_filepath |
|
) |
| |
Constructs a ConfigReader from the given configuration files.
- Parameters
-
| sensors_filepath | The path to the sensors configuration file. |
| rules_filepath | The path to the rules configuration file. |
◆ 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.
◆ 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: