Geant4-11
|
#include <G4FilecoutDestination.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) |
void | Close () |
G4FilecoutDestination (const G4String &fname, std::ios_base::openmode mode=std::ios_base::app) | |
void | Open (std::ios_base::openmode mode=std::ios_base::app) |
virtual G4int | ReceiveG4cerr (const G4String &msg) override |
G4int | ReceiveG4cerr_ (const G4String &msg) |
virtual G4int | ReceiveG4cout (const G4String &msg) override |
G4int | ReceiveG4cout_ (const G4String &msg) |
virtual void | ResetTransformers () |
void | SetFileName (const G4String &fname) |
virtual | ~G4FilecoutDestination () |
Protected Attributes | |
std::vector< Transformer > | transformersCerr |
std::vector< Transformer > | transformersCout |
Static Protected Attributes | |
static G4MTGLOB_DLL G4coutDestination * | masterG4coutDestination = nullptr |
Private Attributes | |
std::ios_base::openmode | m_mode |
G4String | m_name |
std::unique_ptr< std::ofstream > | m_output |
Definition at line 44 of file G4FilecoutDestination.hh.
|
inherited |
Definition at line 61 of file G4coutDestination.hh.
|
inlineexplicit |
Definition at line 47 of file G4FilecoutDestination.hh.
|
virtual |
Definition at line 36 of file G4FilecoutDestination.cc.
|
inlineinherited |
Definition at line 67 of file G4coutDestination.hh.
References G4coutDestination::transformersCerr.
Referenced by G4MTcoutDestination::HandleFileCerr().
|
inlineinherited |
Definition at line 71 of file G4coutDestination.hh.
References G4coutDestination::transformersCerr.
|
inlineinherited |
Definition at line 62 of file G4coutDestination.hh.
References G4coutDestination::transformersCout.
Referenced by G4MTcoutDestination::AddMasterOutput(), G4MTcoutDestination::HandleFileCout(), and G4MTcoutDestination::SetDefaultOutput().
|
inlineinherited |
Definition at line 66 of file G4coutDestination.hh.
References G4coutDestination::transformersCout.
void G4FilecoutDestination::Close | ( | ) |
Definition at line 59 of file G4FilecoutDestination.cc.
References m_output.
Referenced by Open(), and ~G4FilecoutDestination().
void G4FilecoutDestination::Open | ( | std::ios_base::openmode | mode = std::ios_base::app | ) |
Definition at line 44 of file G4FilecoutDestination.cc.
References Close(), m_name, and m_output.
Referenced by ReceiveG4cerr(), and ReceiveG4cout().
Reimplemented from G4coutDestination.
Definition at line 77 of file G4FilecoutDestination.cc.
Definition at line 84 of file G4coutDestination.cc.
References m, G4coutDestination::ReceiveG4cerr(), G4coutDestination::transformersCerr, and G4coutDestination::transformersCout.
Referenced by G4MasterForwardcoutDestination::ReceiveG4cerr().
Definition at line 62 of file G4coutDestination.cc.
References m, G4coutDestination::ReceiveG4cout(), and G4coutDestination::transformersCout.
Referenced by G4MasterForwardcoutDestination::ReceiveG4cout().
|
virtualinherited |
Definition at line 41 of file G4coutDestination.cc.
References G4coutDestination::transformersCerr, and G4coutDestination::transformersCout.
|
inline |
Definition at line 55 of file G4FilecoutDestination.hh.
References test::fname, and m_name.
|
private |
Definition at line 66 of file G4FilecoutDestination.hh.
Referenced by ReceiveG4cerr(), and ReceiveG4cout().
|
private |
Definition at line 65 of file G4FilecoutDestination.hh.
Referenced by Open(), and SetFileName().
|
private |
Definition at line 67 of file G4FilecoutDestination.hh.
Referenced by Close(), Open(), ReceiveG4cerr(), ReceiveG4cout(), and ~G4FilecoutDestination().
|
staticprotectedinherited |
Definition at line 88 of file G4coutDestination.hh.
Referenced by G4UIQt::G4UIQt(), G4MasterForwardcoutDestination::ReceiveG4cerr(), G4MasterForwardcoutDestination::ReceiveG4cout(), and G4UIQt::~G4UIQt().
|
protectedinherited |
Definition at line 94 of file G4coutDestination.hh.
Referenced by G4coutDestination::AddCerrTransformer(), G4coutDestination::ReceiveG4cerr_(), and G4coutDestination::ResetTransformers().
|
protectedinherited |
Definition at line 93 of file G4coutDestination.hh.
Referenced by G4coutDestination::AddCoutTransformer(), G4coutDestination::ReceiveG4cerr_(), G4coutDestination::ReceiveG4cout_(), and G4coutDestination::ResetTransformers().