Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4CerrToFile Class Reference

#include <G4ofstreamDestination.hh>

Inheritance diagram for G4CerrToFile:
Collaboration diagram for G4CerrToFile:

Public Member Functions

 G4CerrToFile (const G4String &deafaultName="Geant4_cerr.txt", G4bool append=true)
 
virtual G4int ReceiveG4cout (const G4String &)
 
virtual G4int ReceiveG4cerr (const G4String &msg)
 
- Public Member Functions inherited from G4ofstreamDestinationBase
 G4ofstreamDestinationBase (const G4String &defaultName, G4bool append)
 
virtual ~G4ofstreamDestinationBase ()
 
void SetFileName (const G4String &name, G4bool append=true)
 
void Close ()
 
void Open ()
 
- Public Member Functions inherited from G4coutDestination
 G4coutDestination ()
 
virtual ~G4coutDestination ()
 

Additional Inherited Members

- Protected Attributes inherited from G4ofstreamDestinationBase
std::ofstream g4file
 
- Static Protected Attributes inherited from G4coutDestination
static G4coutDestinationmasterG4coutDestination = 0
 

Detailed Description

Definition at line 84 of file G4ofstreamDestination.hh.

Constructor & Destructor Documentation

G4CerrToFile::G4CerrToFile ( const G4String deafaultName = "Geant4_cerr.txt",
G4bool  append = true 
)

Definition at line 95 of file G4ofstreamDestination.cc.

95  :
96  G4ofstreamDestinationBase(defaultName,append)
97 {
99 }
G4GLOB_DLL G4strstreambuf G4cerrbuf
Definition: G4ios.cc:83
G4ofstreamDestinationBase(const G4String &defaultName, G4bool append)
void SetDestination(G4coutDestination *dest)

Here is the call graph for this function:

Member Function Documentation

G4int G4CerrToFile::ReceiveG4cerr ( const G4String msg)
virtual

Implements G4ofstreamDestinationBase.

Definition at line 101 of file G4ofstreamDestination.cc.

102 {
103  if ( !g4file.is_open() ) Open();
104  g4file<<msg<<std::flush;
105  return 0;
106 }

Here is the call graph for this function:

virtual G4int G4CerrToFile::ReceiveG4cout ( const G4String )
inlinevirtual

Implements G4ofstreamDestinationBase.

Definition at line 88 of file G4ofstreamDestination.hh.

88 { return 0; }

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