![]() |
ModelSpace
Documentation for ModelSpace models and classes.
|
Class for logging to HDF5. More...
#include <Hdf5Logger.h>

Public Member Functions | |
| Hdf5Logger (cfspp::FlightExecutive &exec, const std::string &filename="output.h5", unsigned int buffer_size=1000) | |
| Constructor for CSV logger – wraps around logger constructor. More... | |
| virtual | ~Hdf5Logger () |
| int | close () |
| Function to close down the file – logs remaining buffered data and closes. More... | |
| log_level_e | logLevel () |
| Get the log level set for the executive. More... | |
| void | logLevel (log_level_e log_level) |
| Set the executive log level. More... | |
| const HighFive::File * | h5File () |
| Get handle to HDF5 file in Hdf5 logger. More... | |
Protected Member Functions | |
| int | _createSetupFile () |
| Function to create an HDF5 file for logging. More... | |
| int | _writeToFile () |
| Function to write buffered data to HDF5 file. More... | |
Protected Attributes | |
| cfspp::FlightExecutive & | exc |
| Handle to executive for logging. More... | |
| HighFive::File * | _file |
| High Five variables for writing HDF5 to file. More... | |
| HighFive::DataSpace * | _dataspace |
| HighFive::DataSetCreateProps | _props |
| std::vector< HighFive::DataSet > | _datasets |
| unsigned long long | _l_start_idx |
| Index to track where we're writing to our dataset. More... | |
| unsigned long long | _l_end_idx |
| log_level_e | _local_log_level = log_level_e::LOG_WARNING |
| The log level for this particular app. More... | |
Class for logging to HDF5.
The CSV logger is a class that inherits from the base logger class and manually configures it to write to CSV.
| modelspace::Hdf5Logger::Hdf5Logger | ( | cfspp::FlightExecutive & | exec, |
| const std::string & | filename = "output.h5", |
||
| unsigned int | buffer_size = 1000 |
||
| ) |
Constructor for CSV logger – wraps around logger constructor.
|
virtual |
|
protected |
Function to create an HDF5 file for logging.
|
protected |
Function to write buffered data to HDF5 file.
| int modelspace::Hdf5Logger::close | ( | ) |
Function to close down the file – logs remaining buffered data and closes.
|
inline |
Get handle to HDF5 file in Hdf5 logger.
|
inline |
Get the log level set for the executive.
|
inline |
Set the executive log level.
| log_level | The level to set logging to |
|
protected |
|
protected |
|
protected |
High Five variables for writing HDF5 to file.
|
protected |
|
protected |
Index to track where we're writing to our dataset.
|
protected |
The log level for this particular app.
|
protected |
|
protected |
Handle to executive for logging.