AstraLog-HPC
Loading...
Searching...
No Matches
io.hpp File Reference

Small shared I/O helpers used across modules. More...

#include <common/errors.hpp>
#include <fstream>
#include <ios>
#include <string>
#include <vector>
Include dependency graph for io.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  astralog
 

Functions

std::ifstream astralog::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.
 
std::vector< std::string > astralog::loadSensorIds (const std::string &sensors_path)
 Reads the sensor IDs listed in a sensors.yaml configuration file.
 

Detailed Description

Small shared I/O helpers used across modules.