Geant4  10.02.p02
G4UIterminal Class Reference

#include <G4UIterminal.hh>

+ Inheritance diagram for G4UIterminal:
+ Collaboration diagram for G4UIterminal:

Public Member Functions

 G4UIterminal (G4VUIshell *aShell=0, G4bool qsig=true)
 
 ~G4UIterminal ()
 
void SetPrompt (const G4String &prompt)
 
virtual G4UIsessionSessionStart ()
 
virtual void PauseSessionStart (const G4String &msg)
 
virtual G4int ReceiveG4cout (const G4String &coutString)
 
virtual G4int ReceiveG4cerr (const G4String &cerrString)
 
- 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 Member Functions

virtual void ExecuteCommand (const G4String &aCommand)
 
virtual G4bool GetHelpChoice (G4int &aInt)
 
virtual void ExitHelp () const
 
G4String GetCommand (const char *msg=0)
 

Private Attributes

G4UImanagerUI
 
G4VUIshellshell
 
G4bool iExit
 
G4bool iCont
 

Additional Inherited Members

- Protected Member Functions inherited from G4VBasicShell
G4String ModifyToFullPathCommand (const char *aCommandLine) const
 
G4String GetCurrentWorkingDirectory () const
 
G4bool ChangeDirectory (const char *newDir)
 
G4UIcommandTreeFindDirectory (const char *dirName) const
 
G4UIcommandFindCommand (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 G4coutDestinationmasterG4coutDestination = 0
 

Detailed Description

Definition at line 71 of file G4UIterminal.hh.

Constructor & Destructor Documentation

G4UIterminal::G4UIterminal ( G4VUIshell aShell = 0,
G4bool  qsig = true 
)

Definition at line 91 of file G4UIterminal.cc.

References FALSE, G4UImanager::GetUIpointer(), iCont, iExit, shell, SignalHandler(), theshell, and UI.

+ Here is the call graph for this function:

G4UIterminal::~G4UIterminal ( )

Definition at line 114 of file G4UIterminal.cc.

References G4UImanager::GetUIpointer(), shell, and UI.

+ Here is the call graph for this function:

Member Function Documentation

void G4UIterminal::ExecuteCommand ( const G4String aCommand)
privatevirtual

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Reimplemented from G4VBasicShell.

Definition at line 161 of file G4UIterminal.cc.

References fAliasNotFound, fCommandNotFound, fCommandSucceeded, fIllegalApplicationState, G4VBasicShell::FindCommand(), fParameterOutOfCandidates, fParameterOutOfRange, fParameterUnreadable, G4cerr, G4cout, G4endl, G4UIcommand::GetParameter(), G4UIparameter::GetParameterCandidates(), G4String::index(), G4UImanager::SolveAlias(), and UI.

Referenced by PauseSessionStart(), and SessionStart().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UIterminal::ExitHelp ( ) const
privatevirtual

Implements G4VBasicShell.

Definition at line 336 of file G4UIterminal.cc.

References G4cin.

G4String G4UIterminal::GetCommand ( const char *  msg = 0)
private

Definition at line 212 of file G4UIterminal.cc.

References G4VBasicShell::ChangeDirectoryCommand(), FALSE, G4cerr, G4cout, G4endl, G4VBasicShell::GetCurrentWorkingDirectory(), G4UImanager::GetPreviousCommand(), iCont, iExit, G4String::leading, G4VBasicShell::ListDirectory(), G4VBasicShell::ModifyToFullPathCommand(), G4String::remove(), shell, G4VBasicShell::ShowCurrent(), G4String::strip(), G4VBasicShell::TerminalHelp(), and UI.

Referenced by PauseSessionStart(), and SessionStart().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4UIterminal::GetHelpChoice ( G4int aInt)
privatevirtual

Implements G4VBasicShell.

Definition at line 323 of file G4UIterminal.cc.

References FALSE, G4cin, and TRUE.

void G4UIterminal::PauseSessionStart ( const G4String msg)
virtual

Implements G4VBasicShell.

Definition at line 148 of file G4UIterminal.cc.

References ExecuteCommand(), GetCommand(), iCont, and TRUE.

+ Here is the call graph for this function:

G4int G4UIterminal::ReceiveG4cerr ( const G4String cerrString)
virtual

Reimplemented from G4UIsession.

Definition at line 315 of file G4UIterminal.cc.

G4int G4UIterminal::ReceiveG4cout ( const G4String coutString)
virtual

Reimplemented from G4UIsession.

Definition at line 307 of file G4UIterminal.cc.

G4UIsession * G4UIterminal::SessionStart ( )
virtual

Implements G4VBasicShell.

Definition at line 134 of file G4UIterminal.cc.

References ExecuteCommand(), GetCommand(), iExit, and TRUE.

+ Here is the call graph for this function:

void G4UIterminal::SetPrompt ( const G4String prompt)

Definition at line 127 of file G4UIterminal.cc.

References shell.

Member Data Documentation

G4bool G4UIterminal::iCont
private

Definition at line 79 of file G4UIterminal.hh.

Referenced by G4UIterminal(), GetCommand(), and PauseSessionStart().

G4bool G4UIterminal::iExit
private

Definition at line 78 of file G4UIterminal.hh.

Referenced by G4UIterminal(), GetCommand(), and SessionStart().

G4VUIshell* G4UIterminal::shell
private

Definition at line 75 of file G4UIterminal.hh.

Referenced by G4UIterminal(), GetCommand(), SetPrompt(), and ~G4UIterminal().

G4UImanager* G4UIterminal::UI
private

Definition at line 73 of file G4UIterminal.hh.

Referenced by ExecuteCommand(), G4UIterminal(), GetCommand(), and ~G4UIterminal().


The documentation for this class was generated from the following files: