OSVR-Core
Public Member Functions | List of all members
osvr::util::CellGroupProxy< RowProxyType, GroupTag > Class Template Reference

A class that exists to make it easier to output composite data structures to CSV. More...

#include <CSVCellGroup.h>

Public Member Functions

 CellGroupProxy (RowProxyType &row, const char *groupPrefix)
 
 CellGroupProxy (RowProxyType &row, std::string const &groupPrefix)
 
RowProxyType getRow ()
 
std::string const & getPrefix () const
 
 CellGroupProxy (RowProxyType &row, const char *groupPrefix)
 
RowProxyType getRow ()
 
std::string const & getPrefix () const
 

Detailed Description

template<typename RowProxyType, typename GroupTag = DefaultGroupTag>
class osvr::util::CellGroupProxy< RowProxyType, GroupTag >

A class that exists to make it easier to output composite data structures to CSV.

You can overload `void operator<<(CellGroupProxy<RowProxyType, GroupTag> &group, YourThing const& d), doinggroup << cell("Item", d.item)`, etc. then invoke it just by passing an object of that type to cellGroup(), which takes an optional first parameter, a prefix to appead to all the headings.


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