Geant4  10.00.p02
G4UIExecutive Class Reference

#include <G4UIExecutive.hh>

+ Collaboration diagram for G4UIExecutive:

Public Member Functions

 G4UIExecutive (G4int argc, char **argv, const G4String &type="")
 
 ~G4UIExecutive ()
 
G4UIsessionGetSession () const
 
G4bool IsGUI () const
 
void SetPrompt (const G4String &prompt)
 
void SetLsColor (TermColorIndex dirColor, TermColorIndex cmdColor)
 
void SessionStart ()
 

Private Types

enum  SessionType {
  kNone, kQt, kXm, kWin32,
  kWt, kGag, kTcsh, kCsh
}
 

Private Member Functions

void SelectSessionByArg (const G4String &stype)
 
void SelectSessionByEnv ()
 
void SelectSessionByFile (const G4String &appname)
 
void SelectSessionByBestGuess ()
 

Private Attributes

SessionType selected
 
G4UIsessionsession
 
G4VUIshellshell
 
G4bool isGUI
 
std::map< G4String, G4StringsessionMap
 

Detailed Description

Definition at line 60 of file G4UIExecutive.hh.

Member Enumeration Documentation

Enumerator
kNone 
kQt 
kXm 
kWin32 
kWt 
kGag 
kTcsh 
kCsh 

Definition at line 75 of file G4UIExecutive.hh.

Constructor & Destructor Documentation

G4UIExecutive::G4UIExecutive ( G4int  argc,
char **  argv,
const G4String type = "" 
)

Definition at line 91 of file G4UIExecutive.cc.

References DISCARD_PARAMETER, G4cout, G4endl, G4Exception(), isGUI, JustWarning, kCsh, kGag, kNone, kQt, kTcsh, kWin32, kWt, kXm, qt_build, selected, SelectSessionByArg(), SelectSessionByBestGuess(), SelectSessionByEnv(), SelectSessionByFile(), session, shell, tcsh_build, G4String::toLower(), win32_build, wt_build, and xm_build.

+ Here is the call graph for this function:

G4UIExecutive::~G4UIExecutive ( )

Definition at line 196 of file G4UIExecutive.cc.

References kWt, selected, and session.

Member Function Documentation

G4UIsession * G4UIExecutive::GetSession ( ) const
inline

Definition at line 92 of file G4UIExecutive.hh.

References session.

G4bool G4UIExecutive::IsGUI ( ) const
inline

Definition at line 97 of file G4UIExecutive.hh.

References isGUI.

Referenced by main(), and XrayFluoSimulation::RunSimulation().

+ Here is the caller graph for this function:

void G4UIExecutive::SelectSessionByArg ( const G4String stype)
private

Definition at line 202 of file G4UIExecutive.cc.

References kCsh, kGag, kQt, kTcsh, kWin32, kWt, kXm, qt_build, selected, tcsh_build, win32_build, wt_build, and xm_build.

Referenced by G4UIExecutive().

+ Here is the caller graph for this function:

void G4UIExecutive::SelectSessionByBestGuess ( )
private

Definition at line 283 of file G4UIExecutive.cc.

References kQt, kTcsh, kXm, qt_build, selected, tcsh_build, and xm_build.

Referenced by G4UIExecutive().

+ Here is the caller graph for this function:

void G4UIExecutive::SelectSessionByEnv ( )
private

Definition at line 214 of file G4UIExecutive.cc.

References kGag, kQt, kTcsh, kWin32, kWt, kXm, qt_build, selected, tcsh_build, win32_build, wt_build, and xm_build.

Referenced by G4UIExecutive().

+ Here is the caller graph for this function:

void G4UIExecutive::SelectSessionByFile ( const G4String appname)
private

Definition at line 225 of file G4UIExecutive.cc.

References G4String::both, kCsh, kGag, kQt, kTcsh, kWin32, kXm, qt_build, selected, sessionMap, G4String::strip(), tcsh_build, G4String::toLower(), win32_build, and xm_build.

Referenced by G4UIExecutive().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4UIExecutive::SessionStart ( )

Definition at line 304 of file G4UIExecutive.cc.

References session.

Referenced by main(), and XrayFluoSimulation::RunSimulation().

+ Here is the caller graph for this function:

void G4UIExecutive::SetLsColor ( TermColorIndex  dirColor,
TermColorIndex  cmdColor 
)

Definition at line 297 of file G4UIExecutive.cc.

References shell.

void G4UIExecutive::SetPrompt ( const G4String prompt)

Definition at line 291 of file G4UIExecutive.cc.

References shell.

Member Data Documentation

G4bool G4UIExecutive::isGUI
private

Definition at line 81 of file G4UIExecutive.hh.

Referenced by G4UIExecutive(), and IsGUI().

G4UIsession* G4UIExecutive::session
private

Definition at line 78 of file G4UIExecutive.hh.

Referenced by G4UIExecutive(), GetSession(), SessionStart(), and ~G4UIExecutive().

std::map<G4String, G4String> G4UIExecutive::sessionMap
private

Definition at line 83 of file G4UIExecutive.hh.

Referenced by SelectSessionByFile().

G4VUIshell* G4UIExecutive::shell
private

Definition at line 79 of file G4UIExecutive.hh.

Referenced by G4UIExecutive(), SetLsColor(), and SetPrompt().


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