#include <osvr/Util/CSV.h>
Public Member Functions | |
| StreamCSV (std::ostream &os) | |
| void | startOutput () |
Public Member Functions inherited from osvr::util::CSVBase< StreamCSV > | |
| RowProxy | row () |
| std::size_t | numDataRows () const |
| std::size_t | numRows () const |
Public Member Functions inherited from osvr::util::detail::CSVCommonBase | |
| column_id | getColumn (std::string const &heading) |
| column_id | numColumns () const |
Friends | |
| class | CSVBase< StreamCSV > |
Additional Inherited Members | |
Public Types inherited from osvr::util::CSVBase< StreamCSV > | |
| using | RowProxy = detail::CSVRowProxy< StreamCSV > |
Public Types inherited from osvr::util::detail::CSVCommonBase | |
| using | DataRow = std::vector< std::string > |
| using | column_id = std::size_t |
Protected Member Functions inherited from osvr::util::CSVBase< StreamCSV > | |
| 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() | |
Protected Member Functions inherited from osvr::util::detail::CSVCommonBase | |
| void | outputHeaders (std::ostream &os) const |
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 |