Skip to main content

CSVMultiFileLineSaverOptions

CSVMultiFileLineSaverOptions

Options for saving 2D LineData into multiple CSV files, one per timestamp. More…

#include <Line_Data_CSV.hpp>

Public Attributes

Name
std::string parent_dir
std::string delimiter
std::string line_delim
bool save_header
std::string header
int precision
int frame_id_padding
bool overwrite_existing

Detailed Description

struct CSVMultiFileLineSaverOptions;

Options for saving 2D LineData into multiple CSV files, one per timestamp.

Each file contains X values in one column and Y values in another column. Only the first line (index 0) at each timestamp is saved. Filenames are zero-padded timestamps with .csv extension.

Public Attributes Documentation

variable parent_dir

std::string parent_dir = ".";

The directory where CSV files will be saved.

variable delimiter

std::string delimiter = ",";

The delimiter to use between columns.

variable line_delim

std::string line_delim = "\n";

The line delimiter to use.

variable save_header

bool save_header = true;

Whether to include a header row in each CSV file.

variable header

std::string header = "X,Y";

The header text to use if save_header is true.

variable precision

int precision = 1;

The number of decimals to include with floating point numbers.

variable frame_id_padding

int frame_id_padding = 7;

Number of digits for zero-padding frame numbers in filenames (e.g., 7 for 0000123.csv).

variable overwrite_existing

bool overwrite_existing = false;

If true, overwrite existing files. If false, skip existing files and continue with next file.


Updated on 2026-11-13 at 20:25:39 +0000