|
AstraLog-HPC
|
Implementation of rule-configuration loading from a JSON file. More...
#include <RulesFactory/RulesFactory.hpp>#include <common/io.hpp>#include <fstream>#include <json/json.h>
Functions | |
| std::vector< RuleConfig > | loadRules (const std::string &file_path) |
| Loads rule configurations from a JSON file. | |
Implementation of rule-configuration loading from a JSON file.
| std::vector< RuleConfig > loadRules | ( | const std::string & | file_path | ) |
Loads rule configurations from a JSON file.
| file_path | Path to the JSON file containing the rule definitions. |
| astralog::IoError | If the file cannot be opened. |
| astralog::ParseError | If the JSON cannot be parsed. |

