Geant4  10.01.p03
G4MPIsession Class Reference

#include <G4MPIsession.hh>

+ Inheritance diagram for G4MPIsession:
+ Collaboration diagram for G4MPIsession:

Public Member Functions

 G4MPIsession (G4VUIshell *ashell=0)
 
 ~G4MPIsession ()
 
void SetPrompt (const G4String &prompt)
 
void SetShell (G4VUIshell *ashell)
 
virtual G4UIsessionSessionStart ()
 
- Public Member Functions inherited from G4VMPIsession
 G4VMPIsession ()
 
 ~G4VMPIsession ()
 
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

G4String GetCommand (const char *msg=0)
 
G4bool TryForcedTerminate ()
 

Private Attributes

G4VUIshellshell_
 

Additional Inherited Members

- Protected Member Functions inherited from G4VMPIsession
G4int ExecCommand (const G4String &acommand)
 
G4String TruncateCommand (const G4String &command) const
 
G4String BypassCommand (const G4String &command) const
 
virtual G4bool GetHelpChoice (G4int &aval)
 
virtual void ExitHelp () const
 
- 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 &)
 
virtual void ExecuteCommand (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 &)
 
- Protected Attributes inherited from G4VMPIsession
G4MPImanagerg4mpi_
 
G4bool is_master_
 
G4bool is_slave_
 
G4int rank_
 
- Static Protected Attributes inherited from G4coutDestination
static G4coutDestinationmasterG4coutDestination = 0
 

Detailed Description

Definition at line 33 of file G4MPIsession.hh.

Constructor & Destructor Documentation

G4MPIsession::G4MPIsession ( G4VUIshell ashell = 0)

Definition at line 52 of file G4MPIsession.cc.

References G4VMPIsession::g4mpi_, G4VMPIsession::is_master_, shell_, and tcsh_build.

G4MPIsession::~G4MPIsession ( )

Definition at line 72 of file G4MPIsession.cc.

References G4UImanager::GetUIpointer(), and shell_.

+ Here is the call graph for this function:

Member Function Documentation

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

Definition at line 95 of file G4MPIsession.cc.

References G4VBasicShell::ChangeDirectoryCommand(), G4cerr, G4cout, G4endl, G4VBasicShell::GetCurrentWorkingDirectory(), G4String::leading, G4VBasicShell::ListDirectory(), G4VBasicShell::ModifyToFullPathCommand(), G4String::remove(), shell_, G4VBasicShell::ShowCurrent(), G4String::strip(), G4VBasicShell::TerminalHelp(), and G4VMPIsession::TruncateCommand().

Referenced by SessionStart().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4UIsession * G4MPIsession::SessionStart ( )
virtual

Implements G4VBasicShell.

Definition at line 178 of file G4MPIsession.cc.

References G4VMPIsession::ExecCommand(), G4VMPIsession::g4mpi_, GetCommand(), G4MPImanager::GetInitFileName(), G4MPImanager::GetMacroFileName(), G4VMPIsession::is_master_, and TryForcedTerminate().

+ Here is the call graph for this function:

void G4MPIsession::SetPrompt ( const G4String prompt)

Definition at line 82 of file G4MPIsession.cc.

References shell_.

void G4MPIsession::SetShell ( G4VUIshell ashell)

Definition at line 88 of file G4MPIsession.cc.

References shell_.

G4bool G4MPIsession::TryForcedTerminate ( )
private

Definition at line 210 of file G4MPIsession.cc.

References G4cin, G4cout, G4endl, G4VMPIsession::g4mpi_, G4RunManager::GetRunManager(), and G4VMPIsession::is_master_.

Referenced by SessionStart().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4VUIshell* G4MPIsession::shell_
private

Definition at line 44 of file G4MPIsession.hh.

Referenced by G4MPIsession(), GetCommand(), SetPrompt(), SetShell(), and ~G4MPIsession().


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