Geant4  10.02
G4UIbatch Class Reference

#include <G4UIbatch.hh>

+ Inheritance diagram for G4UIbatch:
+ Collaboration diagram for G4UIbatch:

Public Member Functions

 G4UIbatch (const char *fileName, G4UIsession *prevSession=0)
 
 ~G4UIbatch ()
 
G4UIsessionGetPreviousSession () const
 
virtual G4UIsessionSessionStart ()
 
virtual void PauseSessionStart (const G4String &Prompt)
 
- Public Member Functions inherited from G4UIsession
 G4UIsession ()
 
virtual ~G4UIsession ()
 
virtual G4int ReceiveG4cout (const G4String &coutString)
 
virtual G4int ReceiveG4cerr (const G4String &cerrString)
 
- Public Member Functions inherited from G4coutDestination
 G4coutDestination ()
 
virtual ~G4coutDestination ()
 

Private Member Functions

G4String ReadCommand ()
 
G4int ExecCommand (const G4String &command)
 

Private Attributes

G4UIsessionpreviousSession
 
std::ifstream macroStream
 
G4bool isOpened
 

Additional Inherited Members

- Static Protected Attributes inherited from G4coutDestination
static G4coutDestinationmasterG4coutDestination = 0
 

Detailed Description

Definition at line 51 of file G4UIbatch.hh.

Constructor & Destructor Documentation

G4UIbatch::G4UIbatch ( const char *  fileName,
G4UIsession prevSession = 0 
)

Definition at line 69 of file G4UIbatch.cc.

References G4cerr, G4endl, G4UImanager::GetUIpointer(), isOpened, and macroStream.

+ Here is the call graph for this function:

G4UIbatch::~G4UIbatch ( )

Definition at line 87 of file G4UIbatch.cc.

References isOpened, and macroStream.

Member Function Documentation

G4int G4UIbatch::ExecCommand ( const G4String command)
private

Definition at line 166 of file G4UIbatch.cc.

References fCommandNotFound, fCommandSucceeded, fIllegalApplicationState, G4cerr, G4endl, G4UImanager::GetUIpointer(), and G4InuclParticleNames::pn.

Referenced by SessionStart().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4UIsession * G4UIbatch::GetPreviousSession ( ) const
inline

Definition at line 81 of file G4UIbatch.hh.

References previousSession.

void G4UIbatch::PauseSessionStart ( const G4String Prompt)
virtual

Reimplemented from G4UIsession.

Definition at line 227 of file G4UIbatch.cc.

References G4cout, G4endl, and SessionStart().

+ Here is the call graph for this function:

G4String G4UIbatch::ReadCommand ( )
private

Definition at line 95 of file G4UIbatch.cc.

References G4String::both, G4Exception(), G4ThreadLocal, JustWarning, macroStream, G4String::replace(), G4String::strip(), Tokenize(), and G4String::trailing.

Referenced by SessionStart().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4UIsession * G4UIbatch::SessionStart ( )
virtual

Reimplemented from G4UIsession.

Definition at line 194 of file G4UIbatch.cc.

References ExecCommand(), fCommandSucceeded, G4cerr, G4cout, G4endl, G4UImanager::GetUIpointer(), isOpened, previousSession, and ReadCommand().

Referenced by PauseSessionStart().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4bool G4UIbatch::isOpened
private

Definition at line 56 of file G4UIbatch.hh.

Referenced by G4UIbatch(), SessionStart(), and ~G4UIbatch().

std::ifstream G4UIbatch::macroStream
private

Definition at line 55 of file G4UIbatch.hh.

Referenced by G4UIbatch(), ReadCommand(), and ~G4UIbatch().

G4UIsession* G4UIbatch::previousSession
private

Definition at line 53 of file G4UIbatch.hh.

Referenced by GetPreviousSession(), and SessionStart().


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