26#include "highfive/highfive.hpp"
Executive derivation specifically to run flight systems.
Definition FlightExecutive.h:46
virtual ~Hdf5Logger()
Definition Hdf5Logger.cpp:55
log_level_e _local_log_level
The log level for this particular app.
Definition Hdf5Logger.h:77
HighFive::DataSpace * _dataspace
Definition Hdf5Logger.h:68
HighFive::File * _file
High Five variables for writing HDF5 to file.
Definition Hdf5Logger.h:67
std::vector< HighFive::DataSet > _datasets
Definition Hdf5Logger.h:70
log_level_e logLevel()
Get the log level set for the executive.
Definition Hdf5Logger.h:48
int _writeToFile()
Function to write buffered data to HDF5 file.
Definition Hdf5Logger.cpp:147
Hdf5Logger(warpos::FlightExecutive &exec, const std::string &filename="output.h5", unsigned int buffer_size=1000)
Constructor for CSV logger – wraps around logger constructor.
Definition Hdf5Logger.cpp:27
void logLevel(log_level_e log_level)
Set the executive log level.
Definition Hdf5Logger.h:51
unsigned long long _l_end_idx
Definition Hdf5Logger.h:74
unsigned long long _l_start_idx
Index to track where we're writing to our dataset.
Definition Hdf5Logger.h:73
warpos::FlightExecutive & exc
Handle to executive for logging.
Definition Hdf5Logger.h:64
int _createSetupFile()
Function to create an HDF5 file for logging.
Definition Hdf5Logger.cpp:68
const HighFive::File * h5File()
Get handle to HDF5 file in Hdf5 logger.
Definition Hdf5Logger.h:55
int close()
Function to close down the file – logs remaining buffered data and closes.
Definition Hdf5Logger.cpp:227
HighFive::DataSetCreateProps _props
Definition Hdf5Logger.h:69
log_level_e
Log level enumerations.
Definition flighterrors.h:159
@ LOG_WARNING
Output in almost all cases.
Definition flighterrors.h:162
Class to propagate CR3BP dynamics in characteristic units.
Definition statistics.hpp:22