Dynamical System Framework
Loading...
Searching...
No Matches
dsf::mobility::CSVWriter Class Reference

Simple CSV writer for batch data persistence. More...

Public Member Functions

 CSVWriter (std::string_view const filename, char separator=';')
 Construct a CSV writer and open the file.
template<typename... Args>
void writeHeader (Args &&... headers)
 Write header row.
template<typename... Args>
void writeRow (Args &&... fields)
 Write a data row.
void close ()
 Flush and close the file.
 ~CSVWriter ()
 Destructor automatically closes the file.

Detailed Description

Simple CSV writer for batch data persistence.

Constructor & Destructor Documentation

◆ CSVWriter()

dsf::mobility::CSVWriter::CSVWriter ( std::string_view const filename,
char separator = ';' )
inline

Construct a CSV writer and open the file.

Parameters
filenameThe output file path
separatorThe field separator character

The documentation for this class was generated from the following file:
  • src/dsf/mobility/TrafficSimulator.cpp