Geant4-11
|
#include <G4UIbatch.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) |
G4UIbatch (const char *fileName, G4UIsession *prevSession=nullptr) | |
G4int | GetLastReturnCode () const |
G4UIsession * | GetPreviousSession () const |
virtual void | PauseSessionStart (const G4String &Prompt) |
virtual G4int | ReceiveG4cerr (const G4String &cerrString) |
G4int | ReceiveG4cerr_ (const G4String &msg) |
virtual G4int | ReceiveG4cout (const G4String &coutString) |
G4int | ReceiveG4cout_ (const G4String &msg) |
virtual void | ResetTransformers () |
virtual G4UIsession * | SessionStart () |
~G4UIbatch () | |
Static Public Member Functions | |
static G4int | InSession () |
Protected Attributes | |
G4int | ifBatch = 0 |
G4int | lastRC = 0 |
std::vector< Transformer > | transformersCerr |
std::vector< Transformer > | transformersCout |
Static Protected Attributes | |
static G4ICOMS_DLL G4int | inSession = 0 |
static G4MTGLOB_DLL G4coutDestination * | masterG4coutDestination = nullptr |
Private Member Functions | |
G4int | ExecCommand (const G4String &command) |
G4String | ReadCommand () |
Private Attributes | |
G4bool | isOpened = false |
std::ifstream | macroStream |
G4UIsession * | previousSession = nullptr |
Definition at line 46 of file G4UIbatch.hh.
|
inherited |
Definition at line 61 of file G4coutDestination.hh.
G4UIbatch::G4UIbatch | ( | const char * | fileName, |
G4UIsession * | prevSession = nullptr |
||
) |
Definition at line 66 of file G4UIbatch.cc.
References fParameterUnreadable, G4cerr, G4endl, G4UImanager::GetUIpointer(), isOpened, G4UIsession::lastRC, macroStream, and G4UImanager::SetSession().
G4UIbatch::~G4UIbatch | ( | ) |
Definition at line 87 of file G4UIbatch.cc.
References isOpened, and macroStream.
|
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.
Definition at line 179 of file G4UIbatch.cc.
References G4UImanager::ApplyCommand(), fCommandNotFound, fCommandSucceeded, fIllegalApplicationState, G4cerr, G4endl, G4UImanager::GetUIpointer(), and G4InuclParticleNames::pn.
Referenced by SessionStart().
|
inlineinherited |
|
inline |
Definition at line 77 of file G4UIbatch.hh.
References previousSession.
|
staticinherited |
Definition at line 68 of file G4UIsession.cc.
References G4UIsession::inSession.
Referenced by G4UIcontrolMessenger::SetNewValue().
|
virtual |
Reimplemented from G4UIsession.
Definition at line 243 of file G4UIbatch.cc.
References G4cout, G4endl, and SessionStart().
|
private |
Definition at line 94 of file G4UIbatch.cc.
References BUFSIZE, G4Exception(), G4ThreadLocal, JustWarning, macroStream, G4StrUtil::rstrip(), G4StrUtil::strip(), and Tokenize().
Referenced by SessionStart().
Reimplemented from G4coutDestination.
Reimplemented in G4UIQt, G4UIXm, G4UIWin32, G4ZMQServer, and G4UIterminal.
Definition at line 81 of file G4UIsession.cc.
Definition at line 84 of file G4coutDestination.cc.
References m, G4coutDestination::ReceiveG4cerr(), G4coutDestination::transformersCerr, and G4coutDestination::transformersCout.
Referenced by G4MasterForwardcoutDestination::ReceiveG4cerr().
Reimplemented from G4coutDestination.
Reimplemented in G4UIQt, G4UIXm, G4UIWin32, G4ZMQServer, and G4UIterminal.
Definition at line 74 of file G4UIsession.cc.
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.
|
virtual |
Reimplemented from G4UIsession.
Definition at line 205 of file G4UIbatch.cc.
References ExecCommand(), fCommandSucceeded, G4cerr, G4cout, G4endl, G4UImanager::GetUIpointer(), isOpened, G4UIsession::lastRC, previousSession, and ReadCommand().
Referenced by PauseSessionStart().
|
protectedinherited |
Definition at line 68 of file G4UIsession.hh.
Referenced by G4UIsession::~G4UIsession().
|
staticprotectedinherited |
Definition at line 67 of file G4UIsession.hh.
Referenced by G4UIsession::G4UIsession(), G4UIsession::InSession(), and G4UIsession::~G4UIsession().
|
private |
Definition at line 70 of file G4UIbatch.hh.
Referenced by G4UIbatch(), SessionStart(), and ~G4UIbatch().
|
protectedinherited |
Definition at line 69 of file G4UIsession.hh.
Referenced by G4UIbatch(), G4UIsession::GetLastReturnCode(), and SessionStart().
|
private |
Definition at line 69 of file G4UIbatch.hh.
Referenced by G4UIbatch(), ReadCommand(), and ~G4UIbatch().
|
staticprotectedinherited |
Definition at line 88 of file G4coutDestination.hh.
Referenced by G4UIQt::G4UIQt(), G4MasterForwardcoutDestination::ReceiveG4cerr(), G4MasterForwardcoutDestination::ReceiveG4cout(), and G4UIQt::~G4UIQt().
|
private |
Definition at line 67 of file G4UIbatch.hh.
Referenced by GetPreviousSession(), and SessionStart().
|
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().