Geant4-11
|
#include <G4coutDestination.hh>
Public Types | |
using | Transformer = std::function< G4bool(G4String &)> |
Public Member Functions | |
void | AddCerrTransformer (const Transformer &t) |
void | AddCerrTransformer (Transformer &&t) |
void | AddCoutTransformer (const Transformer &t) |
void | AddCoutTransformer (Transformer &&t) |
G4coutDestination ()=default | |
virtual G4int | ReceiveG4cerr (const G4String &msg) |
G4int | ReceiveG4cerr_ (const G4String &msg) |
virtual G4int | ReceiveG4cout (const G4String &msg) |
G4int | ReceiveG4cout_ (const G4String &msg) |
virtual void | ResetTransformers () |
virtual | ~G4coutDestination () |
Protected Attributes | |
std::vector< Transformer > | transformersCerr |
std::vector< Transformer > | transformersCout |
Static Protected Attributes | |
static G4MTGLOB_DLL G4coutDestination * | masterG4coutDestination = nullptr |
Definition at line 44 of file G4coutDestination.hh.
Definition at line 61 of file G4coutDestination.hh.
|
default |
|
virtual |
Definition at line 38 of file G4coutDestination.cc.
|
inline |
Definition at line 67 of file G4coutDestination.hh.
References transformersCerr.
Referenced by G4MTcoutDestination::HandleFileCerr().
|
inline |
Definition at line 71 of file G4coutDestination.hh.
References transformersCerr.
|
inline |
Definition at line 62 of file G4coutDestination.hh.
References transformersCout.
Referenced by G4MTcoutDestination::AddMasterOutput(), G4MTcoutDestination::HandleFileCout(), and G4MTcoutDestination::SetDefaultOutput().
|
inline |
Definition at line 66 of file G4coutDestination.hh.
References transformersCout.
Reimplemented in G4UIQt, G4UIXm, G4UIWin32, G4PyCoutDestination, G4ZMQServer, G4UIsession, G4UIterminal, G4BuffercoutDestination, G4FilecoutDestination, G4LockcoutDestination, G4MasterForwardcoutDestination, and G4MulticoutDestination.
Definition at line 55 of file G4coutDestination.cc.
Referenced by G4LockcoutDestination::ReceiveG4cerr(), and ReceiveG4cerr_().
Definition at line 84 of file G4coutDestination.cc.
References m, ReceiveG4cerr(), transformersCerr, and transformersCout.
Referenced by G4MasterForwardcoutDestination::ReceiveG4cerr().
Reimplemented in G4UIQt, G4UIXm, G4UIWin32, G4PyCoutDestination, G4ZMQServer, G4UIsession, G4UIterminal, G4BuffercoutDestination, G4FilecoutDestination, G4LockcoutDestination, G4MasterForwardcoutDestination, and G4MulticoutDestination.
Definition at line 48 of file G4coutDestination.cc.
Referenced by G4MTcoutDestination::DumpBuffer(), G4LockcoutDestination::ReceiveG4cout(), and ReceiveG4cout_().
Definition at line 62 of file G4coutDestination.cc.
References m, ReceiveG4cout(), and transformersCout.
Referenced by G4MasterForwardcoutDestination::ReceiveG4cout().
|
virtual |
Definition at line 41 of file G4coutDestination.cc.
References transformersCerr, and transformersCout.
|
staticprotected |
Definition at line 88 of file G4coutDestination.hh.
Referenced by G4UIQt::G4UIQt(), G4MasterForwardcoutDestination::ReceiveG4cerr(), G4MasterForwardcoutDestination::ReceiveG4cout(), and G4UIQt::~G4UIQt().
|
protected |
Definition at line 94 of file G4coutDestination.hh.
Referenced by AddCerrTransformer(), ReceiveG4cerr_(), and ResetTransformers().
|
protected |
Definition at line 93 of file G4coutDestination.hh.
Referenced by AddCoutTransformer(), ReceiveG4cerr_(), ReceiveG4cout_(), and ResetTransformers().