Photon Engine 2.0.0-beta
A physically based renderer.
|
#include <CsvFile.h>
Public Member Functions | |
CsvFile ()=default | |
CsvFile (const Path &csvFile) | |
Loads a .csv file. Effectively calls load() . | |
CsvFile & | load (const Path &csvFile) |
const CsvFile & | save (const Path &csvFile) const |
std::size_t | numRows () const |
const CsvFileRow & | getRow (std::size_t index) const |
CsvFileRow & | getRow (std::size_t index) |
CsvFile & | addRow (CsvFileRow row) |
A very basic .csv file IO utility. Empty rows are not skipped. Does not handle multiline quoted field (a quoted string value with newline characters) currently.
|
default |
CsvFile & ph::CsvFile::addRow | ( | CsvFileRow | row | ) |
CsvFileRow & ph::CsvFile::getRow | ( | std::size_t | index | ) |
const CsvFileRow & ph::CsvFile::getRow | ( | std::size_t | index | ) | const |
std::size_t ph::CsvFile::numRows | ( | ) | const |