Geant4-11
|
#include <G4VBasicShell.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) |
G4VBasicShell () | |
G4int | GetLastReturnCode () const |
virtual void | PauseSessionStart (const G4String &Prompt)=0 |
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 ()=0 |
virtual | ~G4VBasicShell () |
Static Public Member Functions | |
static G4int | InSession () |
Protected Member Functions | |
void | ApplyShellCommand (const G4String &, G4bool &, G4bool &) |
G4bool | ChangeDirectory (const char *newDir) |
void | ChangeDirectoryCommand (const G4String &) |
G4String | Complete (const G4String &) |
virtual void | ExecuteCommand (const G4String &) |
virtual void | ExitHelp () const =0 |
G4UIcommand * | FindCommand (const char *commandName) const |
G4UIcommandTree * | FindDirectory (const char *dirName) const |
G4String | FindMatchingPath (G4UIcommandTree *, const G4String &) |
G4String | GetCurrentWorkingDirectory () const |
virtual G4bool | GetHelpChoice (G4int &)=0 |
void | ListDirectory (const G4String &) const |
G4String | ModifyToFullPathCommand (const char *aCommandLine) const |
void | ShowCurrent (const G4String &) const |
void | TerminalHelp (const G4String &) |
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 | |
G4String | ModifyPath (const G4String &tempPath) const |
Private Attributes | |
G4String | currentDirectory |
Definition at line 51 of file G4VBasicShell.hh.
|
inherited |
Definition at line 61 of file G4coutDestination.hh.
G4VBasicShell::G4VBasicShell | ( | ) |
Definition at line 38 of file G4VBasicShell.cc.
|
virtual |
Definition at line 43 of file G4VBasicShell.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.
|
protected |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Definition at line 232 of file G4VBasicShell.cc.
References ChangeDirectoryCommand(), ExecuteCommand(), exitPause, exitSession, G4cerr, G4cout, G4endl, GetCurrentWorkingDirectory(), G4UImanager::GetNumberOfHistory(), G4UImanager::GetPreviousCommand(), G4UImanager::GetUIpointer(), ListDirectory(), G4StrUtil::lstrip_copy(), ModifyToFullPathCommand(), ShowCurrent(), and TerminalHelp().
Referenced by G4UIQt::ButtonCallback(), G4UIXm::ButtonCallback(), G4UIQt::CommandEnteredCallback(), G4UIXm::CommandEnteredCallback(), G4UIWin32::DoOpenMacro(), G4UIWin32::DoSaveViewer(), G4UIWin32::ProcessDefaultCommands(), and G4UIWin32::ProcessEnterKey().
|
protected |
Definition at line 74 of file G4VBasicShell.cc.
References currentDirectory, FindDirectory(), ModifyPath(), and G4StrUtil::strip_copy().
Referenced by ChangeDirectoryCommand().
|
protected |
Definition at line 325 of file G4VBasicShell.cc.
References ChangeDirectory(), G4cout, G4endl, and G4StrUtil::strip_copy().
Referenced by ApplyShellCommand(), G4UIterminal::GetCommand(), and G4ZMQServer::GetCommand().
Definition at line 180 of file G4VBasicShell.cc.
References FindMatchingPath(), G4UImanager::GetTree(), G4UImanager::GetUIpointer(), ModifyPath(), and G4StrUtil::strip_copy().
Referenced by G4UIQt::eventFilter(), G4UIXm::keyHandler(), and G4UIWin32::ProcessTabKey().
|
protectedvirtual |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Reimplemented in G4UIterminal, and G4ZMQServer.
Definition at line 206 of file G4VBasicShell.cc.
References G4UImanager::ApplyCommand(), fCommandNotFound, fCommandSucceeded, fIllegalApplicationState, fParameterOutOfCandidates, fParameterOutOfRange, fParameterUnreadable, G4cerr, G4endl, and G4UImanager::GetUIpointer().
Referenced by ApplyShellCommand().
|
protectedpure virtual |
Implemented in G4ZMQServer, G4UIQt, G4UIterminal, G4UIXm, and G4UIWin32.
Referenced by TerminalHelp().
|
protected |
Definition at line 109 of file G4VBasicShell.cc.
References G4UIcommandTree::FindPath(), G4UImanager::GetTree(), G4UImanager::GetUIpointer(), ModifyPath(), and G4StrUtil::strip_copy().
Referenced by G4UIterminal::ExecuteCommand(), and G4ZMQServer::ExecuteCommand().
|
protected |
Definition at line 87 of file G4VBasicShell.cc.
References G4UImanager::GetTree(), G4UIcommandTree::GetTree(), G4UImanager::GetUIpointer(), ModifyPath(), and G4StrUtil::strip_copy().
Referenced by ChangeDirectory(), ListDirectory(), and G4ZMQServer::SessionStart().
|
protected |
Definition at line 196 of file G4VBasicShell.cc.
Referenced by Complete().
|
protected |
Definition at line 69 of file G4VBasicShell.cc.
References currentDirectory.
Referenced by ApplyShellCommand(), G4UIterminal::GetCommand(), G4ZMQServer::GetCommand(), ListDirectory(), G4ZMQServer::SessionStart(), and TerminalHelp().
Implemented in G4ZMQServer, G4UIQt, G4UIXm, G4UIWin32, and G4UIterminal.
Referenced by TerminalHelp().
|
inlineinherited |
|
staticinherited |
Definition at line 68 of file G4UIsession.cc.
References G4UIsession::inSession.
Referenced by G4UIcontrolMessenger::SetNewValue().
|
protected |
Definition at line 339 of file G4VBasicShell.cc.
References FindDirectory(), G4cout, G4endl, GetCurrentWorkingDirectory(), G4UIcommandTree::ListCurrent(), and G4StrUtil::strip_copy().
Referenced by ApplyShellCommand(), G4UIterminal::GetCommand(), and G4ZMQServer::GetCommand().
Definition at line 124 of file G4VBasicShell.cc.
References currentDirectory.
Referenced by ChangeDirectory(), Complete(), FindCommand(), FindDirectory(), and ModifyToFullPathCommand().
|
protected |
Definition at line 47 of file G4VBasicShell.cc.
References ModifyPath(), and G4StrUtil::strip_copy().
Referenced by G4UIQt::ActivateCommand(), ApplyShellCommand(), G4UIterminal::GetCommand(), G4ZMQServer::GetCommand(), ShowCurrent(), and TerminalHelp().
|
pure virtual |
Reimplemented from G4UIsession.
Implemented in G4UIQt, G4UIXm, G4UIWin32, G4ZMQServer, and G4UIterminal.
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.
|
pure virtual |
Reimplemented from G4UIsession.
Implemented in G4ZMQServer, G4UIQt, G4UIterminal, G4UIXm, and G4UIWin32.
|
protected |
Definition at line 313 of file G4VBasicShell.cc.
References G4cout, G4endl, G4UImanager::GetCurrentValues(), G4UImanager::GetUIpointer(), and ModifyToFullPathCommand().
Referenced by ApplyShellCommand(), G4UIterminal::GetCommand(), and G4ZMQServer::GetCommand().
|
protected |
Definition at line 355 of file G4VBasicShell.cc.
References ExitHelp(), G4UIcommandTree::FindPath(), G4cout, G4endl, G4UIcommandTree::GetCommand(), GetCurrentWorkingDirectory(), GetHelpChoice(), G4UImanager::GetTree(), G4UIcommandTree::GetTree(), G4UIcommandTree::GetTreeEntry(), G4UImanager::GetUIpointer(), G4UIcommand::List(), G4UIcommandTree::ListCurrentWithNum(), ModifyToFullPathCommand(), and G4StrUtil::strip().
Referenced by ApplyShellCommand(), G4UIterminal::GetCommand(), G4ZMQServer::GetCommand(), and G4UIQt::ShowHelpCallback().
|
private |
Definition at line 101 of file G4VBasicShell.hh.
Referenced by ChangeDirectory(), GetCurrentWorkingDirectory(), and ModifyPath().
|
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().
|
protectedinherited |
Definition at line 69 of file G4UIsession.hh.
Referenced by G4UIbatch::G4UIbatch(), G4UIsession::GetLastReturnCode(), and G4UIbatch::SessionStart().
|
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().