Skip to main content

CSVSingleFileLineLoaderOptions

CSVSingleFileLineLoaderOptions

Options for loading 2D LineData from a single CSV file containing all timestamps. More…

#include <Line_Data_CSV.hpp>

Public Functions

Name
std::string getDelimiter() const
std::string getCoordinateDelimiter() const
bool getHasHeader() const
std::string getHeaderIdentifier() const

Public Attributes

Name
std::string filepath
std::optional< std::string > delimiter
std::optional< std::string > coordinate_delimiter
std::optional< bool > has_header
std::optional< std::string > header_identifier
std::optional< rfl::Validator< int, rfl::Minimum< 1 > > > height
std::optional< rfl::Validator< int, rfl::Minimum< 1 > > > width

Detailed Description

struct CSVSingleFileLineLoaderOptions;

Options for loading 2D LineData from a single CSV file containing all timestamps.

Note: This struct conforms to ValidLoaderOptions concept.

The CSV file should have a format where the first column is the frame number, followed by comma-separated X coordinates and comma-separated Y coordinates. X and Y coordinate lists are typically enclosed in quotes.

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 getCoordinateDelimiter

inline std::string getCoordinateDelimiter() const

function getHasHeader

inline bool getHasHeader() const

function getHeaderIdentifier

inline std::string getHeaderIdentifier() const

Public Attributes Documentation

variable filepath

std::string filepath;

variable delimiter

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

variable coordinate_delimiter

std::optional< std::string > coordinate_delimiter;

variable has_header

std::optional< bool > has_header;

variable header_identifier

std::optional< std::string > header_identifier;

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