#include <array>
#include <filesystem>
#include <fstream>
#include <string>
#include <utility>
#include <variant>
#include <vector>
#include "io/logger/Logger.h"
Go to the source code of this file.
◆ write_csv_element()
template<typename T >
void write_csv_element |
( |
std::ofstream & |
file, |
|
|
const T & |
value |
|
) |
| |
Writes a single element to the CSV file.
- Parameters
-
file | The file stream to write to. |
value | The value to write. |
Definition at line 8 of file CSVWriter.cpp.
◆ write_csv_element< std::string >()
template<>
void write_csv_element< std::string > |
( |
std::ofstream & |
file, |
|
|
const std::string & |
value |
|
) |
| |
Escapes a string value to be written to the CSV file.
- Parameters
-
file | The file stream to write to. |
value | The value to write. |
Definition at line 13 of file CSVWriter.cpp.
14 file <<
"\"" << value <<
"\"";