Simple CSV writer for batch data persistence.
More...
|
| | 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.
|
Simple CSV writer for batch data persistence.
◆ CSVWriter()
| dsf::mobility::CSVWriter::CSVWriter |
( |
std::string_view const | filename, |
|
|
char | separator = ';' ) |
|
inline |
Construct a CSV writer and open the file.
- Parameters
-
| filename | The output file path |
| separator | The field separator character |
The documentation for this class was generated from the following file:
- src/dsf/mobility/TrafficSimulator.cpp