Geant4  10.02.p02
G4ofstreamDestinationBase Class Referenceabstract

#include <G4ofstreamDestination.hh>

+ Inheritance diagram for G4ofstreamDestinationBase:
+ Collaboration diagram for G4ofstreamDestinationBase:

Public Member Functions

 G4ofstreamDestinationBase (const G4String &defaultName, G4bool append)
 
virtual ~G4ofstreamDestinationBase ()
 
virtual G4int ReceiveG4cout (const G4String &)=0
 
virtual G4int ReceiveG4cerr (const G4String &)=0
 
void SetFileName (const G4String &name, G4bool append=true)
 
void Close ()
 
void Open ()
 
- Public Member Functions inherited from G4coutDestination
 G4coutDestination ()
 
virtual ~G4coutDestination ()
 

Protected Attributes

std::ofstream g4file
 

Private Attributes

G4String fileName
 
G4bool appendFlag
 

Additional Inherited Members

- Static Protected Attributes inherited from G4coutDestination
static G4coutDestinationmasterG4coutDestination = 0
 

Detailed Description

Definition at line 57 of file G4ofstreamDestination.hh.

Constructor & Destructor Documentation

G4ofstreamDestinationBase::G4ofstreamDestinationBase ( const G4String defaultName,
G4bool  append 
)

Definition at line 42 of file G4ofstreamDestination.cc.

G4ofstreamDestinationBase::~G4ofstreamDestinationBase ( )
virtual

Definition at line 50 of file G4ofstreamDestination.cc.

References Close().

+ Here is the call graph for this function:

Member Function Documentation

void G4ofstreamDestinationBase::Close ( )

Definition at line 72 of file G4ofstreamDestination.cc.

References g4file.

Referenced by ~G4ofstreamDestinationBase().

+ Here is the caller graph for this function:

void G4ofstreamDestinationBase::Open ( )

Definition at line 61 of file G4ofstreamDestination.cc.

References appendFlag, fileName, and g4file.

Referenced by G4CerrToFile::ReceiveG4cerr(), and G4CoutToFile::ReceiveG4cout().

+ Here is the caller graph for this function:

virtual G4int G4ofstreamDestinationBase::ReceiveG4cerr ( const G4String )
pure virtual

Reimplemented from G4coutDestination.

Implemented in G4CerrToFile, and G4CoutToFile.

virtual G4int G4ofstreamDestinationBase::ReceiveG4cout ( const G4String )
pure virtual

Reimplemented from G4coutDestination.

Implemented in G4CerrToFile, and G4CoutToFile.

void G4ofstreamDestinationBase::SetFileName ( const G4String name,
G4bool  append = true 
)

Definition at line 55 of file G4ofstreamDestination.cc.

References appendFlag, and fileName.

Member Data Documentation

G4bool G4ofstreamDestinationBase::appendFlag
private

Definition at line 71 of file G4ofstreamDestination.hh.

Referenced by Open(), and SetFileName().

G4String G4ofstreamDestinationBase::fileName
private

Definition at line 70 of file G4ofstreamDestination.hh.

Referenced by Open(), and SetFileName().

std::ofstream G4ofstreamDestinationBase::g4file
protected

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