Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::CsvFile Class Referencefinal

#include <CsvFile.h>

Public Member Functions

 CsvFile ()=default
 
 CsvFile (const Path &csvFile)
 Loads a .csv file. Effectively calls load().
 
CsvFileload (const Path &csvFile)
 
const CsvFilesave (const Path &csvFile) const
 
std::size_t numRows () const
 
const CsvFileRowgetRow (std::size_t index) const
 
CsvFileRowgetRow (std::size_t index)
 
CsvFileaddRow (CsvFileRow row)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CsvFile() [1/2]

ph::CsvFile::CsvFile ( )
default

◆ CsvFile() [2/2]

ph::CsvFile::CsvFile ( const Path & csvFile)
explicit

Loads a .csv file. Effectively calls load().

Member Function Documentation

◆ addRow()

CsvFile & ph::CsvFile::addRow ( CsvFileRow row)

◆ getRow() [1/2]

CsvFileRow & ph::CsvFile::getRow ( std::size_t index)

◆ getRow() [2/2]

const CsvFileRow & ph::CsvFile::getRow ( std::size_t index) const

◆ load()

CsvFile & ph::CsvFile::load ( const Path & csvFile)

◆ numRows()

std::size_t ph::CsvFile::numRows ( ) const

◆ save()

const CsvFile & ph::CsvFile::save ( const Path & csvFile) const

The documentation for this class was generated from the following files: