EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fileWriter Class Reference

#include <estarlight/blob/master/include/filewriter.h>

+ Inheritance diagram for fileWriter:
+ Collaboration diagram for fileWriter:

Public Member Functions

 fileWriter ()
 
 fileWriter (const std::string &fileName)
 
virtual ~fileWriter ()
 
int open ()
 
int open (const std::string &fileName)
 
virtual int close ()
 
void setFileName (const std::string &fileName)
 

Protected Attributes

std::string _fileName
 
std::ofstream _fileStream
 

Detailed Description

Definition at line 42 of file filewriter.h.

View newest version in sPHENIX GitHub at line 42 of file filewriter.h

Constructor & Destructor Documentation

fileWriter::fileWriter ( )

Default constructor

Definition at line 44 of file filewriter.cpp.

View newest version in sPHENIX GitHub at line 44 of file filewriter.cpp

fileWriter::fileWriter ( const std::string &  fileName)

Constructor with filename

Definition at line 50 of file filewriter.cpp.

View newest version in sPHENIX GitHub at line 50 of file filewriter.cpp

fileWriter::~fileWriter ( )
virtual

Destructor

Definition at line 55 of file filewriter.cpp.

View newest version in sPHENIX GitHub at line 55 of file filewriter.cpp

Member Function Documentation

int fileWriter::close ( )
virtual

close the file

Reimplemented in eventFileWriter.

Definition at line 82 of file filewriter.cpp.

View newest version in sPHENIX GitHub at line 82 of file filewriter.cpp

References _fileStream.

int fileWriter::open ( )

open the file

Definition at line 58 of file filewriter.cpp.

View newest version in sPHENIX GitHub at line 58 of file filewriter.cpp

References _fileName, and _fileStream.

Referenced by open(), and e_starlightStandalone::run().

+ Here is the caller graph for this function:

int fileWriter::open ( const std::string &  fileName)

open file with given filename

Definition at line 75 of file filewriter.cpp.

View newest version in sPHENIX GitHub at line 75 of file filewriter.cpp

References _fileName, and open().

+ Here is the call graph for this function:

void fileWriter::setFileName ( const std::string &  fileName)
inline

Set the filename we're writing to

Definition at line 65 of file filewriter.h.

View newest version in sPHENIX GitHub at line 65 of file filewriter.h

References _fileName.

Member Data Documentation

std::string fileWriter::_fileName
protected

The file name

Definition at line 70 of file filewriter.h.

View newest version in sPHENIX GitHub at line 70 of file filewriter.h

Referenced by open(), and setFileName().

std::ofstream fileWriter::_fileStream
protected

The file stream

Definition at line 73 of file filewriter.h.

View newest version in sPHENIX GitHub at line 73 of file filewriter.h

Referenced by close(), eventFileWriter::close(), open(), eventFileWriter::writeEvent(), eventFileWriter::writeEventLUND(), eventFileWriter::writeInit(), and eventFileWriter::writeInitLUND().


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