|
AstraLog-HPC
|
Classes | |
| class | AstraLogError |
| Base class for every AstraLog-HPC error. More... | |
| class | ClusterError |
| An SSH, SCP, or SLURM operation against the cluster failed. More... | |
| class | ConfigError |
| A configuration file or required environment variable is missing or invalid. More... | |
| class | IoError |
| A file could not be opened, read, or written. More... | |
| class | ParseError |
| A JSON or YAML document could not be parsed. More... | |
| class | RuleError |
| A rule definition references an unknown type or is otherwise malformed. More... | |
| class | ValidationError |
| An incoming telemetry packet violates the expected schema. More... | |
Functions | |
| size_t | countSensors (const std::string &sensors_path) |
| Counts the sensors declared in a sensors.yaml configuration file. | |
| std::vector< std::string > | loadSensorIds (const std::string &sensors_path) |
| Reads the sensor IDs listed in a sensors.yaml configuration file. | |
| std::ifstream | openInputFile (const std::string &path, const std::string &what="file", std::ios::openmode mode=std::ios::in) |
| Opens an input file stream or throws on failure. | |
| size_t astralog::countSensors | ( | const std::string & | sensors_path | ) |
Counts the sensors declared in a sensors.yaml configuration file.
| sensors_path | Path to the sensors.yaml file. |
| astralog::IoError | If the file cannot be opened. |


| std::vector< std::string > astralog::loadSensorIds | ( | const std::string & | sensors_path | ) |
Reads the sensor IDs listed in a sensors.yaml configuration file.
| sensors_path | Path to the sensors.yaml file. |
| astralog::IoError | If the file cannot be opened. |

|
inline |
Opens an input file stream or throws on failure.
| path | The path of the file to open. |
| what | A short description of the file, used in the error message (e.g. "sensors file", "rules file"). |
| mode | The open mode (defaults to text input). |
| astralog::IoError | If the file cannot be opened. |
