StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Attributes | List of all members
fileWriter Class Reference
Inheritance diagram for fileWriter:

Public Member Functions

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

Protected Attributes

std::string _fileName
std::ofstream _fileStream

Detailed Description

Definition at line 44 of file filewriter.h.

Constructor & Destructor Documentation

fileWriter::fileWriter ( )

Default constructor

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

Constructor with filename

virtual fileWriter::~fileWriter ( )


Member Function Documentation

int fileWriter::close ( )

close the file

int fileWriter::open ( )

open the file

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

open file with given filename

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

Set the filename we're writing to

Definition at line 67 of file filewriter.h.

References _fileName.

Member Data Documentation

std::string fileWriter::_fileName

The file name

Definition at line 72 of file filewriter.h.

Referenced by setFileName().

std::ofstream fileWriter::_fileStream

The file stream

Definition at line 75 of file filewriter.h.

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