CSVEventSaverOptions
CSVEventSaverOptions
Options for saving DigitalEventSeries data to a CSV file. The CSV will have one column with event timestamps.
#include <Digital_Event_Series_CSV.hpp>
Public Attributes
| Name | |
|---|---|
| std::string | filename |
| std::string | parent_dir |
| std::string | delimiter |
| std::string | line_delim |
| bool | save_header |
| std::string | header |
| int | precision |
Public Attributes Documentation
variable filename
std::string filename = "events_output.csv";The name of the file to save the data to (e.g., “events.csv”).
variable parent_dir
std::string parent_dir = ".";The directory where the file will be saved. Defaults to “.”.
variable delimiter
std::string delimiter = ",";The delimiter to use between columns (if multiple columns). Defaults to “,”.
variable line_delim
std::string line_delim = "\n";The line delimiter to use. Defaults to “”.
variable save_header
bool save_header = true;Whether to save a header row. Defaults to true.
variable header
std::string header = "Event";The header string to use if save_header is true. Defaults to “Event”.
variable precision
int precision = 3;The number of decimal places for floating point numbers. Defaults to 3.
Updated on 2026-11-13 at 20:25:39 +0000