OSVR-Core  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
osvr::util::CSV Class Reference

#include <osvr/Util/CSV.h>

Inheritance diagram for osvr::util::CSV:
osvr::util::CSVBase< CSV > osvr::util::detail::CSVCommonBase

Public Member Functions

void output (std::ostream &os) const
 
- Public Member Functions inherited from osvr::util::CSVBase< CSV >
RowProxy row ()
 
std::size_t numDataRows () const
 
std::size_t numRows () const
 

Additional Inherited Members

- Protected Member Functions inherited from osvr::util::CSVBase< CSV >
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()
 

Detailed Description

The "traditional" CSV class: get all your data set up ahead of time. When you're ready to get your output, hand an ostream (like std::cout or your favorite std::ofstream) to .output()

Definition at line 333 of file CSV.h.

Member Function Documentation

void osvr::util::CSV::output ( std::ostream &  os) const
inline

Outputs all the stored rows and columns, with the union of all headers in the first row, quoted, to the std::ostream given.

Definition at line 340 of file CSV.h.


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