Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
|
#include <G4MTcoutDestination.hh>
Public Member Functions | |
G4MTcoutDestination (const G4int &threadId) | |
virtual | ~G4MTcoutDestination () |
virtual void | Reset () |
void | SetDefaultOutput (G4bool addMasterDestination=true, G4bool formatAlsoMaster=true) |
void | SetCoutFileName (const G4String &fileN="G4cout.txt", G4bool ifAppend=true) |
void | AddCoutFileName (const G4String &fileN="G4cout.txt", G4bool ifAppend=true) |
void | SetCerrFileName (const G4String &fileN="G4cerr.txt", G4bool ifAppend=true) |
void | AddCerrFileName (const G4String &fileN="G4cerr.txt", G4bool ifAppend=true) |
void | EnableBuffering (G4bool flag=true) |
void | SetPrefixString (const G4String &wd="G4WT") |
void | SetIgnoreCout (G4int tid=0) |
void | SetIgnoreInit (G4bool val=true) |
G4String | GetPrefixString () const |
G4String | GetFullPrefixString () const |
Public Member Functions inherited from G4MulticoutDestination | |
G4MulticoutDestination ()=default | |
virtual | ~G4MulticoutDestination () |
virtual G4int | ReceiveG4cout (const G4String &msg) override |
virtual G4int | ReceiveG4cerr (const G4String &msg) override |
Public Member Functions inherited from G4coutDestination | |
G4coutDestination ()=default | |
virtual | ~G4coutDestination () |
void | AddCoutTransformer (const Transformer &t) |
void | AddCoutTransformer (Transformer &&t) |
void | AddCerrTransformer (const Transformer &t) |
void | AddCerrTransformer (Transformer &&t) |
virtual void | ResetTransformers () |
virtual G4int | ReceiveG4cout (const G4String &msg) |
virtual G4int | ReceiveG4cerr (const G4String &msg) |
G4int | ReceiveG4cout_ (const G4String &msg) |
G4int | ReceiveG4cerr_ (const G4String &msg) |
Protected Member Functions | |
void | AddMasterOutput (G4bool formatAlsoMaster) |
void | HandleFileCout (G4String fileN, G4bool appendFlag, G4bool suppressDefault) |
void | HandleFileCerr (G4String fileN, G4bool appendFlag, G4bool suppressDefault) |
Additional Inherited Members | |
Public Types inherited from G4coutDestination | |
using | Transformer = std::function< G4bool(G4String &)> |
Protected Attributes inherited from G4coutDestination | |
std::vector< Transformer > | transformersCout |
std::vector< Transformer > | transformersCerr |
Static Protected Attributes inherited from G4coutDestination | |
static G4MTGLOB_DLL G4coutDestination * | masterG4coutDestination = nullptr |
Definition at line 45 of file G4MTcoutDestination.hh.
|
explicit |
Definition at line 48 of file G4MTcoutDestination.cc.
|
virtual |
Definition at line 132 of file G4MTcoutDestination.cc.
void G4MTcoutDestination::AddCerrFileName | ( | const G4String & | fileN = "G4cerr.txt" , |
G4bool | ifAppend = true |
||
) |
Definition at line 254 of file G4MTcoutDestination.cc.
void G4MTcoutDestination::AddCoutFileName | ( | const G4String & | fileN = "G4cout.txt" , |
G4bool | ifAppend = true |
||
) |
Definition at line 233 of file G4MTcoutDestination.cc.
|
protected |
Definition at line 99 of file G4MTcoutDestination.cc.
Referenced by SetDefaultOutput().
void G4MTcoutDestination::EnableBuffering | ( | G4bool | flag = true | ) |
Definition at line 202 of file G4MTcoutDestination.cc.
Referenced by G4UImanager::SetThreadUseBuffer().
|
inline |
Definition at line 73 of file G4MTcoutDestination.hh.
|
inline |
Definition at line 72 of file G4MTcoutDestination.hh.
|
protected |
Definition at line 171 of file G4MTcoutDestination.cc.
Referenced by AddCerrFileName(), and SetCerrFileName().
|
protected |
Definition at line 146 of file G4MTcoutDestination.cc.
Referenced by AddCoutFileName(), and SetCoutFileName().
|
virtual |
Definition at line 139 of file G4MTcoutDestination.cc.
Referenced by EnableBuffering(), SetCerrFileName(), and SetCoutFileName().
void G4MTcoutDestination::SetCerrFileName | ( | const G4String & | fileN = "G4cerr.txt" , |
G4bool | ifAppend = true |
||
) |
Definition at line 242 of file G4MTcoutDestination.cc.
Referenced by G4UImanager::SetCerrFileName().
void G4MTcoutDestination::SetCoutFileName | ( | const G4String & | fileN = "G4cout.txt" , |
G4bool | ifAppend = true |
||
) |
Definition at line 190 of file G4MTcoutDestination.cc.
Referenced by G4UImanager::SetCoutFileName().
void G4MTcoutDestination::SetDefaultOutput | ( | G4bool | addMasterDestination = true , |
G4bool | formatAlsoMaster = true |
||
) |
Definition at line 60 of file G4MTcoutDestination.cc.
Referenced by G4MTcoutDestination(), and Reset().
void G4MTcoutDestination::SetIgnoreCout | ( | G4int | tid = 0 | ) |
Definition at line 261 of file G4MTcoutDestination.cc.
Referenced by G4UImanager::SetThreadIgnore(), G4UImanager::SetUpForAThread(), and G4UImanager::SetUpForSpecialThread().
|
inline |
Definition at line 70 of file G4MTcoutDestination.hh.
Referenced by G4UImanager::SetThreadIgnoreInit().
|
inline |
Definition at line 67 of file G4MTcoutDestination.hh.
Referenced by G4UImanager::SetThreadPrefixString(), and G4UImanager::SetUpForSpecialThread().