EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <estarlight/blob/master/include/filewriter.h>
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 |
Definition at line 42 of file filewriter.h.
View newest version in sPHENIX GitHub at line 42 of file filewriter.h
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
|
virtual |
Destructor
Definition at line 55 of file filewriter.cpp.
View newest version in sPHENIX GitHub at line 55 of file filewriter.cpp
|
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().
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().
|
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.
|
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().
|
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().