21#ifndef LOGGING_CSV_LOGGER_H
22#define LOGGING_CSV_LOGGER_H
Executive derivation specifically to run flight systems.
Definition FlightExecutive.h:46
int close()
Function to close down the file – logs remaining buffered data and closes.
Definition CsvLogger.cpp:186
int _precision
The precision of logging. Default is 20 places.
Definition CsvLogger.h:82
log_level_e _local_log_level
The log level for this particular app.
Definition CsvLogger.h:85
std::ofstream _fout
Stream variable to write file to.
Definition CsvLogger.h:73
warpos::FlightExecutive & exc
Handle to executive for logging.
Definition CsvLogger.h:79
int _createSetupFile()
Function to create a CSV file for logging.
Definition CsvLogger.cpp:93
~CsvLogger()
Definition CsvLogger.h:39
int delimeter(const std::string &delim)
Function to set the delimeter.
Definition CsvLogger.cpp:75
CsvLogger(warpos::FlightExecutive &exec, const std::string &filename="output.csv", unsigned int buffer_size=1000)
Constructor for CSV logger – wraps around logger constructor.
Definition CsvLogger.cpp:29
int _writeToFile()
Function to write buffered data to CSV file.
Definition CsvLogger.cpp:136
std::string _delimeter
String to indicate delimeter – set to comma by default.
Definition CsvLogger.h:76
log_level_e logLevel()
Get the log level set for the executive.
Definition CsvLogger.h:61
void logLevel(log_level_e log_level)
Set the executive log level.
Definition CsvLogger.h:64
int setPrecision(int precision)
Function to set the precision of CSV logging.
Definition CsvLogger.cpp:84
int filename(std::string name)
Function to set CSV logger filename.
Definition CsvLogger.cpp:51
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