Skip to main content

CSVMultiFileLineLoaderOptions

CSVMultiFileLineLoaderOptions

Options for loading 2D LineData from multiple CSV files, one per timestamp. More…

#include <Line_Data_CSV.hpp>

Public Functions

Name
std::string getDelimiter() const
int getXColumn() const
int getYColumn() const
bool getHasHeader() const
std::string getFilePattern() const

Public Attributes

Name
std::string parent_dir
std::optional< std::string > delimiter
std::optional< rfl::Validator< int, rfl::Minimum< 0 > > > x_column
std::optional< rfl::Validator< int, rfl::Minimum< 0 > > > y_column
std::optional< bool > has_header
std::optional< std::string > file_pattern
std::optional< rfl::Validator< int, rfl::Minimum< 1 > > > height
std::optional< rfl::Validator< int, rfl::Minimum< 1 > > > width

Detailed Description

struct CSVMultiFileLineLoaderOptions;

Options for loading 2D LineData from multiple CSV files, one per timestamp.

Note: This struct uses parent_dir instead of filepath since it loads from a directory.

Each CSV file should contain X values in one column and Y values in another column. The filename (without extension) is parsed as the timestamp/frame number. Files are expected to be in the format: NNNNNN.csv (zero-padded frame numbers).

Uses reflect-cpp for automatic JSON serialization/deserialization. Optional fields can be omitted from JSON and will use default values.

Public Functions Documentation

function getDelimiter

inline std::string getDelimiter() const

function getXColumn

inline int getXColumn() const

function getYColumn

inline int getYColumn() const

function getHasHeader

inline bool getHasHeader() const

function getFilePattern

inline std::string getFilePattern() const

Public Attributes Documentation

variable parent_dir

std::string parent_dir;

variable delimiter

std::optional< std::string > delimiter;

variable x_column

std::optional< rfl::Validator< int, rfl::Minimum< 0 > > > x_column;

variable y_column

std::optional< rfl::Validator< int, rfl::Minimum< 0 > > > y_column;

variable has_header

std::optional< bool > has_header;

variable file_pattern

std::optional< std::string > file_pattern;

variable height

std::optional< rfl::Validator< int, rfl::Minimum< 1 > > > height;

variable width

std::optional< rfl::Validator< int, rfl::Minimum< 1 > > > width;

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