Celeritas  0.5.0-86+4a8eea4
List of all members
celeritas::ScopedGeantLogger Class Reference

Install a Geant output destination during this class's lifetime. More...

#include <ScopedGeantLogger.hh>

Public Member Functions

 ScopedGeantLogger ()
 Install the Celeritas Geant4 logger. More...
 
 ~ScopedGeantLogger ()
 Revert to the previous exception handler.
 
 CELER_DELETE_COPY_MOVE (ScopedGeantLogger)
 

Detailed Description

Install a Geant output destination during this class's lifetime.

Since the Geant4 output streams are thread-local, this class is as well. Multiple geant loggers can be nested, and only the outermost on a given thread will "own" the log destination.

Constructor & Destructor Documentation

◆ ScopedGeantLogger()

celeritas::ScopedGeantLogger::ScopedGeantLogger ( )
inline

Install the Celeritas Geant4 logger.

A global flag allows multiple logger adapters to be nested without consequence.

Do nothing if Geant4 is disabled (source file will not be compiled)

Member Function Documentation

◆ CELER_DELETE_COPY_MOVE()

celeritas::ScopedGeantLogger::CELER_DELETE_COPY_MOVE ( ScopedGeantLogger  )

Prevent copying and moving for RAII class


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