fpmas 1.6
Static Public Member Functions | List of all members
fpmas::io::CsvSerial< T > Struct Template Reference

#include <csv_output.h>

Static Public Member Functions

static std::string to_csv (const T &data)
 

Detailed Description

template<typename T>
struct fpmas::io::CsvSerial< T >

Component used to convert an arbitrary data field to an std::string in the CSV serialization process.

By default, serializes data using the C++ output stream operator, but template specifilizations can be provided to define other behaviors for specific types.

Template Parameters
Ttype of the field to serialize

Member Function Documentation

◆ to_csv()

template<typename T >
static std::string fpmas::io::CsvSerial< T >::to_csv ( const T &  data)
inlinestatic

Converts data to an std::string using the C++ output stream operato <<.

Parameters
datadata to serialize
Returns
string representation of data

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