ROOT
ROOT project
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
PrinterFile< V > Class Template Reference

Mother class for all the Printers which print in a file. More...

#include <writer_def.hpp>

Inheritance diagram for PrinterFile< V >:
Inheritance graph
Collaboration diagram for PrinterFile< V >:
Collaboration graph

Public Member Functions

 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.
 
virtual void write_values (const V &value)=0
 Pure virtual method to write a given value.
 

Protected Attributes

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.
 

Detailed Description

template<typename V>
class PrinterFile< V >

Mother class for all the Printers which print in a file.

Constructor & Destructor Documentation

◆ PrinterFile()

template<typename V >
PrinterFile< V >::PrinterFile ( const std::string &  fname,
bool  ow_mode 
)

The constructor for PrinterFile class.

Parameters
fnameName of the file to write on
ow_modeOption to overwrite or append to the file

Member Data Documentation

◆ append

template<typename V >
bool PrinterFile< V >::append
protected

Boolean which defines whether at a new Writing process the output file (if already existent), has to be overwritten or not

◆ file

template<typename V >
std::ofstream PrinterFile< V >::file
protected

The actual file, saved in order not to access it at each printing iteration.

◆ filename

template<typename V >
std::string PrinterFile< V >::filename
protected

The name of output file, without the extension.


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