#include <osvr/Util/CSV.h>
Public Member Functions | |
StreamCSV (std::ostream &os) | |
void | startOutput () |
![]() | |
RowProxy | row () |
std::size_t | numDataRows () const |
std::size_t | numRows () const |
Additional Inherited Members | |
![]() | |
void | prepareForRow () |
Called by CSVRowProxy life cycle, on row creation. | |
void | dataForLatestRow (std::string const &heading, std::string const &data) |
Called by CSVRowProxy life cycle, on cell addition. | |
void | finalizeLatestRow () |
DataRow & | latestRow () |
void | outputRow (std::ostream &os, DataRow const &row) const |
void | outputData (std::ostream &os) const |
Called by derived classes to output stored data rows. | |
void | moveLatestRowToData () |
utility function for use in derived finalizeLatestRow() | |
A CSV object taking a reference to an ostream that should remain valid throughout the entire lifetime of this object.
Once you start output, it will output the headers and any existing rows, and from then on, it will will output each row as it is finalized. Of course, any additional headers acquired after you start streaming can't be added to the first row retroactively, but they will be consistent (leaving blanks if appropriate, etc.)
|
inlineexplicit |
|
inline |