Geant4
10.02.p02
|
#include <G4UIGainServer.hh>
Public Member Functions | |
G4UIsession * | SessionStart () |
virtual void | PauseSessionStart (const G4String &msg) |
virtual G4int | ReceiveG4cout (const G4String &coutString) |
virtual G4int | ReceiveG4cerr (const G4String &cerrString) |
G4UIGainServer () | |
~G4UIGainServer () | |
void | SessionTerminate () |
void | Prompt (G4String) |
G4String | GetCommand () |
Public Member Functions inherited from G4VBasicShell | |
G4VBasicShell () | |
virtual | ~G4VBasicShell () |
Public Member Functions inherited from G4UIsession | |
G4UIsession () | |
virtual | ~G4UIsession () |
Public Member Functions inherited from G4coutDestination | |
G4coutDestination () | |
virtual | ~G4coutDestination () |
Private Attributes | |
G4String | prefix |
G4String | promptCharacter |
G4UImanager * | UI |
UImode | uiMode |
G4String | JVersion |
G4String | TVersion |
G4bool | iExit |
G4bool | iCont |
int | socketD [3] |
int | port |
struct sockaddr_in | saddr |
struct sockaddr_in | caddr |
int | len |
int | ret |
char | buf [1024] |
std::vector< G4String > | previousTreeCommands |
std::vector< G4String > | newTreeCommands |
std::vector< G4String > | previousTreeParams |
std::vector< G4String > | newTreeParams |
std::vector< G4UIcommand * > | previousTreePCP |
std::vector< G4UIcommand * > | newTreePCP |
Additional Inherited Members | |
Protected Member Functions inherited from G4VBasicShell | |
G4String | ModifyToFullPathCommand (const char *aCommandLine) const |
G4String | GetCurrentWorkingDirectory () const |
G4bool | ChangeDirectory (const char *newDir) |
G4UIcommandTree * | FindDirectory (const char *dirName) const |
G4UIcommand * | FindCommand (const char *commandName) const |
G4String | Complete (const G4String &) |
G4String | FindMatchingPath (G4UIcommandTree *, const G4String &) |
void | ApplyShellCommand (const G4String &, G4bool &, G4bool &) |
void | ShowCurrent (const G4String &) const |
void | ChangeDirectoryCommand (const G4String &) |
void | ListDirectory (const G4String &) const |
void | TerminalHelp (const G4String &) |
Static Protected Attributes inherited from G4coutDestination | |
static G4coutDestination * | masterG4coutDestination = 0 |
Definition at line 64 of file G4UIGainServer.hh.
G4UIGainServer::G4UIGainServer | ( | ) |
Definition at line 43 of file G4UIGainServer.cc.
References DEFAULT_PORT, FALSE, G4cout, G4endl, G4StateManager::GetCurrentState(), GetNewTreeStructure(), GetNewTreeValues(), G4StateManager::GetStateManager(), G4StateManager::GetStateString(), G4UImanager::GetTree(), G4UImanager::GetUIpointer(), iCont, iExit, JVersion, newTreeCommands, newTreeParams, newTreePCP, port, previousTreeCommands, previousTreeParams, previousTreePCP, promptCharacter, SetUPServer(), terminal_mode, TVersion, UI, and uiMode.
G4UIGainServer::~G4UIGainServer | ( | ) |
Definition at line 77 of file G4UIGainServer.cc.
References G4UImanager::GetUIpointer(), G4UImanager::SetCoutDestination(), G4UImanager::SetSession(), and UI.
|
private |
Definition at line 476 of file G4UIGainServer.cc.
References G4String::both, FindDirPath(), G4cout, G4endl, ModifyPrefix(), prefix, and G4String::strip().
Referenced by GetCommand().
|
private |
|
private |
Definition at line 690 of file G4UIGainServer.cc.
References G4cout, G4endl, G4UIcommandTree::GetCommand(), G4UIcommandTree::GetCommandEntry(), G4UIcommandTree::GetPathName(), G4UIcommandTree::GetTitle(), G4UIcommandTree::GetTree(), G4UIcommandTree::GetTreeEntry(), and SendAParamProperty().
Referenced by SendCommandProperties(), and SendParameterProperties().
|
private |
Definition at line 671 of file G4UIGainServer.cc.
References G4cout, G4endl, G4UIcommandTree::GetCommand(), G4UIcommandTree::GetCommandEntry(), G4UIcommand::GetCommandPath(), G4UIcommandTree::GetTree(), and G4UIcommandTree::GetTreeEntry().
Referenced by SendCommandProperties().
|
private |
|
private |
|
private |
Definition at line 827 of file G4UIGainServer.cc.
References added, addedAndDeleted, deleted, G4cout, G4endl, newTreeCommands, notChanged, and previousTreeCommands.
Referenced by ExecuteCommand().
|
privatevirtual |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Reimplemented from G4VBasicShell.
Definition at line 131 of file G4UIGainServer.cc.
References G4UImanager::ApplyCommand(), CommandUpdated(), fAliasNotFound, fCommandNotFound, fCommandSucceeded, fIllegalApplicationState, fParameterOutOfCandidates, fParameterOutOfRange, fParameterUnreadable, G4cerr, G4cout, G4endl, GetNewTreeStructure(), GetNewTreeValues(), G4UImanager::GetTree(), newTreeCommands, newTreeParams, newTreePCP, NotifyCommandUpdate(), previousTreeCommands, previousTreeParams, previousTreePCP, G4UImanager::SolveAlias(), terminal_mode, UI, uiMode, UpdateParamVal(), and UpdateState().
Referenced by PauseSessionStart(), and SessionStart().
|
privatevirtual |
|
private |
Definition at line 626 of file G4UIGainServer.cc.
References G4UIcommandTree::GetTree(), G4UImanager::GetTree(), G4String::index(), and UI.
Referenced by ChangeDirectory(), and ListDirectory().
G4String G4UIGainServer::GetCommand | ( | ) |
Definition at line 183 of file G4UIGainServer.cc.
References G4String::append(), buf, ChangeDirectory(), G4cerr, G4cin, G4cout, G4endl, GetFullPath(), G4UImanager::GetNumberOfHistory(), G4UImanager::GetPreviousCommand(), G4UImanager::GetTree(), iCont, iExit, java_mode, JVersion, G4String::leading, ListDirectory(), NotifyStateChange(), promptCharacter, G4String::readLine(), G4String::remove(), SendCommandProperties(), ShowCurrent(), socketD, G4String::strip(), tcl_mode, terminal_mode, TerminalHelp(), TVersion, UI, and uiMode.
Referenced by PauseSessionStart(), and SessionStart().
Definition at line 418 of file G4UIGainServer.cc.
References G4String::append(), G4String::both, ModifyPrefix(), prefix, and G4String::strip().
Referenced by GetCommand(), and ShowCurrent().
Implements G4VBasicShell.
Definition at line 340 of file G4UIGainServer.cc.
|
private |
Definition at line 858 of file G4UIGainServer.cc.
References G4UIcommandTree::GetCommand(), G4UIcommandTree::GetCommandEntry(), G4UIcommand::GetCommandPath(), G4UIcommandTree::GetPathName(), G4UIcommandTree::GetTitle(), G4UIcommand::GetTitle(), G4UIcommandTree::GetTree(), G4UIcommandTree::GetTreeEntry(), and newTreeCommands.
Referenced by ExecuteCommand(), and G4UIGainServer().
|
private |
Definition at line 907 of file G4UIGainServer.cc.
References G4UIcommandTree::GetCommand(), G4UIcommandTree::GetCommandEntry(), G4UIcommand::GetCommandPath(), G4UIparameter::GetDefaultValue(), G4UIcommand::GetParameter(), G4UIparameter::GetParameterCandidates(), G4UIcommand::GetParameterEntries(), G4UIparameter::GetParameterName(), G4UIparameter::GetParameterRange(), G4UIparameter::GetParameterType(), G4UIcommandTree::GetTree(), G4UIcommandTree::GetTreeEntry(), newTreeParams, and newTreePCP.
Referenced by ExecuteCommand(), and G4UIGainServer().
|
private |
Definition at line 503 of file G4UIGainServer.cc.
References G4String::both, FindDirPath(), G4cout, G4endl, G4UIcommandTree::ListCurrent(), ModifyPrefix(), prefix, and G4String::strip().
Referenced by GetCommand().
Definition at line 603 of file G4UIGainServer.cc.
References G4String::last(), and prefix.
Referenced by ChangeDirectory(), GetFullPath(), and ListDirectory().
|
private |
Definition at line 812 of file G4UIGainServer.cc.
References G4UImanager::GetTree(), SendCommandProperties(), and UI.
Referenced by ExecuteCommand().
|
private |
Definition at line 820 of file G4UIGainServer.cc.
References SendAParamProperty().
Referenced by UpdateParamVal().
|
private |
Definition at line 796 of file G4UIGainServer.cc.
References G4cout, G4endl, G4StateManager::GetCurrentState(), G4StateManager::GetStateManager(), G4StateManager::GetStateString(), G4UImanager::GetTree(), SendDisableList(), terminal_mode, UI, and uiMode.
Referenced by GetCommand(), and UpdateState().
|
virtual |
Implements G4VBasicShell.
Definition at line 113 of file G4UIGainServer.cc.
References buf, ExecuteCommand(), G4cout, G4endl, GetCommand(), iCont, promptCharacter, socketD, and TRUE.
void G4UIGainServer::Prompt | ( | G4String | ) |
Reimplemented from G4UIsession.
Definition at line 327 of file G4UIGainServer.cc.
References socketD.
Reimplemented from G4UIsession.
Definition at line 314 of file G4UIGainServer.cc.
References socketD.
|
private |
Definition at line 713 of file G4UIGainServer.cc.
References G4String::append(), G4cout, G4endl, G4UIcommand::GetCommandPath(), G4UIparameter::GetDefaultValue(), G4UIcommand::GetGuidanceEntries(), G4UIcommand::GetGuidanceLine(), G4UIcommand::GetParameter(), G4UIparameter::GetParameterCandidates(), G4UIcommand::GetParameterEntries(), G4UIparameter::GetParameterGuidance(), G4UIparameter::GetParameterName(), G4UIparameter::GetParameterRange(), G4UIparameter::GetParameterType(), G4UIcommand::GetRange(), and G4UIparameter::IsOmittable().
Referenced by CodeGenJavaParams(), and NotifyParameterUpdate().
|
private |
|
private |
Definition at line 644 of file G4UIGainServer.cc.
References CodeGenJavaParams(), CodeGenJavaTree(), G4cerr, G4cout, G4endl, java_mode, and uiMode.
Referenced by GetCommand(), and NotifyCommandUpdate().
|
private |
Definition at line 755 of file G4UIGainServer.cc.
References G4cout, G4endl, G4UIcommandTree::GetCommand(), G4UIcommandTree::GetCommandEntry(), G4UIcommand::GetCommandPath(), G4UIcommandTree::GetTree(), G4UIcommandTree::GetTreeEntry(), and G4UIcommand::IsAvailable().
Referenced by NotifyStateChange().
|
private |
Definition at line 659 of file G4UIGainServer.cc.
References CodeGenJavaParams(), G4cerr, G4endl, java_mode, and uiMode.
|
virtual |
Implements G4VBasicShell.
Definition at line 94 of file G4UIGainServer.cc.
References ExecuteCommand(), GetCommand(), G4StateManager::GetCurrentState(), G4StateManager::GetStateManager(), G4StateManager::GetStateString(), iExit, promptCharacter, TRUE, and WaitingConnection().
void G4UIGainServer::SessionTerminate | ( | ) |
Definition at line 451 of file G4UIGainServer.cc.
|
private |
Definition at line 361 of file G4UIGainServer.cc.
References G4cout, G4endl, port, saddr, SOCK_NAME, and socketD.
Referenced by G4UIGainServer().
|
private |
Definition at line 458 of file G4UIGainServer.cc.
References G4cout, G4endl, G4UImanager::GetCurrentValues(), GetFullPath(), G4String::isNull(), terminal_mode, UI, and uiMode.
Referenced by GetCommand().
|
private |
Definition at line 532 of file G4UIGainServer.cc.
References G4String::both, G4UIcommandTree::FindPath(), G4cin, G4cout, G4endl, G4UIcommandTree::GetCommand(), G4UIcommandTree::GetTree(), G4UImanager::GetTree(), G4UIcommandTree::GetTreeEntry(), G4String::index(), G4UIcommand::List(), G4UIcommandTree::ListCurrentWithNum(), prefix, G4String::prepend(), G4String::strip(), and UI.
Referenced by GetCommand().
|
private |
Definition at line 886 of file G4UIGainServer.cc.
References G4cout, G4endl, G4UIcommand::GetCommandPath(), newTreeParams, newTreePCP, NotifyParameterUpdate(), and previousTreeParams.
Referenced by ExecuteCommand().
|
private |
Definition at line 781 of file G4UIGainServer.cc.
References G4State_PreInit, G4ThreadLocal, G4StateManager::GetCurrentState(), G4StateManager::GetStateManager(), and NotifyStateChange().
Referenced by ExecuteCommand().
|
private |
Definition at line 396 of file G4UIGainServer.cc.
References caddr, FatalException, G4cerr, G4endl, G4Exception(), len, and socketD.
Referenced by SessionStart().
|
private |
Definition at line 87 of file G4UIGainServer.hh.
Referenced by GetCommand(), and PauseSessionStart().
|
private |
Definition at line 84 of file G4UIGainServer.hh.
Referenced by WaitingConnection().
|
private |
Definition at line 78 of file G4UIGainServer.hh.
Referenced by G4UIGainServer(), GetCommand(), and PauseSessionStart().
|
private |
Definition at line 77 of file G4UIGainServer.hh.
Referenced by G4UIGainServer(), GetCommand(), and SessionStart().
|
private |
Definition at line 70 of file G4UIGainServer.hh.
Referenced by G4UIGainServer(), and GetCommand().
|
private |
Definition at line 85 of file G4UIGainServer.hh.
Referenced by WaitingConnection().
|
private |
Definition at line 94 of file G4UIGainServer.hh.
Referenced by CommandUpdated(), ExecuteCommand(), G4UIGainServer(), and GetNewTreeStructure().
|
private |
Definition at line 96 of file G4UIGainServer.hh.
Referenced by ExecuteCommand(), G4UIGainServer(), GetNewTreeValues(), and UpdateParamVal().
|
private |
Definition at line 98 of file G4UIGainServer.hh.
Referenced by ExecuteCommand(), G4UIGainServer(), GetNewTreeValues(), and UpdateParamVal().
|
private |
Definition at line 82 of file G4UIGainServer.hh.
Referenced by G4UIGainServer(), and SetUPServer().
|
private |
Definition at line 66 of file G4UIGainServer.hh.
Referenced by ChangeDirectory(), GetFullPath(), ListDirectory(), ModifyPrefix(), and TerminalHelp().
|
private |
Definition at line 93 of file G4UIGainServer.hh.
Referenced by CommandUpdated(), ExecuteCommand(), and G4UIGainServer().
|
private |
Definition at line 95 of file G4UIGainServer.hh.
Referenced by ExecuteCommand(), G4UIGainServer(), and UpdateParamVal().
|
private |
Definition at line 97 of file G4UIGainServer.hh.
Referenced by ExecuteCommand(), and G4UIGainServer().
|
private |
Definition at line 67 of file G4UIGainServer.hh.
Referenced by G4UIGainServer(), GetCommand(), PauseSessionStart(), and SessionStart().
|
private |
Definition at line 86 of file G4UIGainServer.hh.
|
private |
Definition at line 83 of file G4UIGainServer.hh.
Referenced by SetUPServer().
|
private |
Definition at line 81 of file G4UIGainServer.hh.
Referenced by GetCommand(), PauseSessionStart(), ReceiveG4cerr(), ReceiveG4cout(), SetUPServer(), and WaitingConnection().
|
private |
Definition at line 71 of file G4UIGainServer.hh.
Referenced by G4UIGainServer(), and GetCommand().
|
private |
Definition at line 68 of file G4UIGainServer.hh.
Referenced by ExecuteCommand(), FindDirPath(), G4UIGainServer(), GetCommand(), NotifyCommandUpdate(), NotifyStateChange(), ShowCurrent(), TerminalHelp(), and ~G4UIGainServer().
|
private |
Definition at line 69 of file G4UIGainServer.hh.
Referenced by ExecuteCommand(), G4UIGainServer(), GetCommand(), NotifyStateChange(), SendCommandProperties(), SendParameterProperties(), and ShowCurrent().