|
ROOT
ROOT project
|
Class to write on .csv the result. More...
#include <writer_def.hpp>


Public Member Functions | |
| PrinterCSV (const std::string &fname, char sep, bool ow_mode) | |
| Constructor of the PrinterCSV class. | |
| void | write_values (const V &value) override |
| Writes a given result into the .csv file with the sotred separator. | |
| void | write_values (const Eigen::Vector2d &value) |
Public Member Functions inherited from PrinterFile< V > | |
| PrinterFile (const std::string &fname, bool ow_mode) | |
| The constructor for PrinterFile class. | |
Public Member Functions inherited from PrinterBase< V > | |
| PrinterBase ()=default | |
| Default constructor for the PrinterBase class. | |
| virtual | ~PrinterBase ()=default |
| Virtual destructor for the PrinterBase class. | |
Private Attributes | |
| char | separator |
| Separator for the .csv output file, given at construction time. | |
Additional Inherited Members | |
Protected Attributes inherited from PrinterFile< V > | |
| std::string | filename |
| The name of output file, without the extension. | |
| bool | append |
| std::ofstream | file |
| The actual file, saved in order not to access it at each printing iteration. | |
Class to write on .csv the result.
| PrinterCSV< V >::PrinterCSV | ( | const std::string & | fname, |
| char | sep, | ||
| bool | ow_mode | ||
| ) |
Constructor of the PrinterCSV class.
| fname | The file to write on |
| sep | The separator to use |
| ow_mode | Option to overwrite or append the file |
| void PrinterCSV< Eigen::Vector2d >::write_values | ( | const Eigen::Vector2d & | value | ) |
|
overridevirtual |
Writes a given result into the .csv file with the sotred separator.
| value | The value to write |
Implements PrinterBase< V >.
|
private |
Separator for the .csv output file, given at construction time.