hops
Public Member Functions | List of all members
hops::CsvWriter Class Reference

#include <CsvWriter.hpp>

Inheritance diagram for hops::CsvWriter:
Inheritance graph
Collaboration diagram for hops::CsvWriter:
Collaboration graph

Public Member Functions

 CsvWriter (std::string path, int outputPrecision=17)
 
void write (const std::string &description, const std::vector< float > &records) const override
 Writes records. More...
 
void write (const std::string &description, const std::vector< double > &records) const override
 Writes records. More...
 
void write (const std::string &description, const std::vector< long > &records) const override
 Writes records. More...
 
void write (const std::string &description, const std::vector< Eigen::VectorXf > &records) const override
 Writes records. More...
 
void write (const std::string &description, const std::vector< Eigen::VectorXd > &records) const override
 Writes records. More...
 
void write (const std::string &description, const std::vector< std::string > &records) const override
 Writes records. More...
 
void write (const std::string &description, const Eigen::MatrixXd &matrix) const override
 Writes a single matrix in double precision. More...
 
void write (const std::string &description, const Eigen::VectorXd &vector) const override
 Writes a single vector in double precision. More...
 
- Public Member Functions inherited from hops::FileWriter
virtual ~FileWriter ()=default
 

Constructor & Destructor Documentation

◆ CsvWriter()

hops::CsvWriter::CsvWriter ( std::string  path,
int  outputPrecision = 17 
)
explicit

Member Function Documentation

◆ write() [1/8]

void hops::CsvWriter::write ( const std::string description,
const Eigen::MatrixXd &  matrix 
) const
overridevirtual

Writes a single matrix in double precision.

Parameters
description
matrix

Implements hops::FileWriter.

◆ write() [2/8]

void hops::CsvWriter::write ( const std::string description,
const Eigen::VectorXd &  vector 
) const
overridevirtual

Writes a single vector in double precision.

Parameters
description
matrix

Implements hops::FileWriter.

◆ write() [3/8]

void hops::CsvWriter::write ( const std::string description,
const std::vector< double > &  records 
) const
overridevirtual

Writes records.

Parameters
descriptionDescription to attach to the records.
records

Implements hops::FileWriter.

◆ write() [4/8]

void hops::CsvWriter::write ( const std::string description,
const std::vector< Eigen::VectorXd > &  records 
) const
overridevirtual

Writes records.

Parameters
descriptionDescription to attach to the records.
records

Implements hops::FileWriter.

◆ write() [5/8]

void hops::CsvWriter::write ( const std::string description,
const std::vector< Eigen::VectorXf > &  records 
) const
overridevirtual

Writes records.

Parameters
descriptionDescription to attach to the records.
records

Implements hops::FileWriter.

◆ write() [6/8]

void hops::CsvWriter::write ( const std::string description,
const std::vector< float > &  records 
) const
overridevirtual

Writes records.

Parameters
descriptionDescription to attach to the records.
records

Implements hops::FileWriter.

◆ write() [7/8]

void hops::CsvWriter::write ( const std::string description,
const std::vector< long > &  records 
) const
overridevirtual

Writes records.

Parameters
descriptionDescription to attach to the records.
records

Implements hops::FileWriter.

◆ write() [8/8]

void hops::CsvWriter::write ( const std::string description,
const std::vector< std::string > &  records 
) const
overridevirtual

Writes records.

Parameters
descriptionDescription to attach to the records.
records

Implements hops::FileWriter.


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