Celeritas 0.7.0-dev.313+develop.1857205b
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::ScopedGeantLogger::StreamDestination Class Referencefinal

Send Geant4 log messages to Celeritas' world logger. More...

Inheritance diagram for celeritas::ScopedGeantLogger::StreamDestination:
Inheritance graph
[legend]

Public Member Functions

 StreamDestination (Logger &)
 Redirect geant4's stdout/cerr on construction.
 
 StreamDestination (StreamDestination const &)=delete
 
StreamDestinationoperator= (StreamDestination const &)=delete
 
 StreamDestination (StreamDestination &&)=delete
 
StreamDestinationoperator= (StreamDestination &&)=delete
 
 ~StreamDestination () final
 Restore iostream buffers on destruction.
 
G4int ReceiveG4cout (G4String const &str) final
 Process stdout message.
 
G4int ReceiveG4cerr (G4String const &str) final
 Process stderr message.
 
Loggerlogger ()
 

Detailed Description

Send Geant4 log messages to Celeritas' world logger.

Constructor & Destructor Documentation

◆ StreamDestination()

celeritas::ScopedGeantLogger::StreamDestination::StreamDestination ( Logger celer_log)
explicit

Redirect geant4's stdout/cerr on construction.

Note that all these buffers, and the UI pointers, are thread-local.


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