Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
|
#include <G4MTcoutDestination.hh>
Public Member Functions | |
G4MTcoutDestination (const G4int &threadId) | |
~G4MTcoutDestination () override | |
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 | |
~G4MulticoutDestination () override=default | |
G4int | ReceiveG4cout (const G4String &msg) override |
G4int | ReceiveG4cerr (const G4String &msg) override |
Public Member Functions inherited from G4coutDestination | |
G4coutDestination ()=default | |
virtual | ~G4coutDestination ()=default |
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 (const G4String &fileN, G4bool appendFlag, G4bool suppressDefault) |
void | HandleFileCerr (const 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 49 of file G4MTcoutDestination.cc.
|
override |
Definition at line 131 of file G4MTcoutDestination.cc.
void G4MTcoutDestination::AddCerrFileName | ( | const G4String & | fileN = "G4cerr.txt" , |
G4bool | ifAppend = true |
||
) |
Definition at line 259 of file G4MTcoutDestination.cc.
void G4MTcoutDestination::AddCoutFileName | ( | const G4String & | fileN = "G4cout.txt" , |
G4bool | ifAppend = true |
||
) |
Definition at line 238 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 207 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 174 of file G4MTcoutDestination.cc.
Referenced by AddCerrFileName(), and SetCerrFileName().
|
protected |
Definition at line 147 of file G4MTcoutDestination.cc.
Referenced by AddCoutFileName(), and SetCoutFileName().
|
virtual |
Definition at line 140 of file G4MTcoutDestination.cc.
Referenced by EnableBuffering(), SetCerrFileName(), and SetCoutFileName().
void G4MTcoutDestination::SetCerrFileName | ( | const G4String & | fileN = "G4cerr.txt" , |
G4bool | ifAppend = true |
||
) |
Definition at line 247 of file G4MTcoutDestination.cc.
Referenced by G4UImanager::SetCerrFileName().
void G4MTcoutDestination::SetCoutFileName | ( | const G4String & | fileN = "G4cout.txt" , |
G4bool | ifAppend = true |
||
) |
Definition at line 195 of file G4MTcoutDestination.cc.
Referenced by G4UImanager::SetCoutFileName().
void G4MTcoutDestination::SetDefaultOutput | ( | G4bool | addMasterDestination = true , |
G4bool | formatAlsoMaster = true |
||
) |
Definition at line 61 of file G4MTcoutDestination.cc.
Referenced by G4MTcoutDestination(), and Reset().
void G4MTcoutDestination::SetIgnoreCout | ( | G4int | tid = 0 | ) |
Definition at line 266 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().