|
ROOT
ROOT project
|
Class to store required arguments and handle the printing flow. More...
#include <writer_def.hpp>

Public Member Functions | |
| Writer (const T &vals_to_write, WritingMethod write_method, std::string filename="output", char separator=',', bool overwrite=true) | |
| Constructor for a Writer object. | |
| void | write () |
| Method to run the printing loop and correctly initialize the Printer. | |
| Writer (const Eigen::MatrixX2d &vals_to_write, WritingMethod write_method, std::string filename, char separator, bool overwrite) | |
| void | write () |
Protected Attributes | |
| T | values |
| Templated values to write to allow different usage of the class. | |
| WritingMethod | method |
| Method to write with - defined thanks to. | |
| char | separator |
| Separator for .csv files. | |
| bool | overwrite |
| Option to overwrite or append the output file. | |
| std::string | filename |
| Name of the output file. | |
Private Member Functions | |
| template<typename V > | |
| void | build_printer (std::unique_ptr< PrinterBase< V > > &printer) |
| Method to convert the generic Printer into a typed one for a specific output destination. | |
Friends | |
| class | WriterBaseTester |
Class to store required arguments and handle the printing flow.
| Writer< T >::Writer | ( | const T & | vals_to_write, |
| WritingMethod | write_method, | ||
| std::string | filename = "output", |
||
| char | separator = ',', |
||
| bool | overwrite = true |
||
| ) |
Constructor for a Writer object.
| vals_to_write | Values to be written, which will be stored in values argument |
| write_method | Method to be used, which will be stored in method argument |
| separator | Separator for .csv extension files (optional) |
| overwrite | Option to overwrite or append to the file (optional) |
| Writer< Eigen::MatrixX2d >::Writer | ( | const Eigen::MatrixX2d & | vals_to_write, |
| WritingMethod | write_method, | ||
| std::string | filename, | ||
| char | separator, | ||
| bool | overwrite | ||
| ) |
|
private |
Method to convert the generic Printer into a typed one for a specific output destination.
| printer | The original abstract printer |

| void Writer< Eigen::MatrixX2d >::write | ( | ) |
| void Writer< T >::write | ( | ) |
Method to run the printing loop and correctly initialize the Printer.

|
friend |
|
protected |
Name of the output file.
|
protected |
Method to write with - defined thanks to.
|
protected |
Option to overwrite or append the output file.
|
protected |
Separator for .csv files.
|
protected |
Templated values to write to allow different usage of the class.