Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4UIsession Class Reference

#include <G4UIsession.hh>

Inheritance diagram for G4UIsession:
Collaboration diagram for G4UIsession:

Public Member Functions

 G4UIsession ()
 
 G4UIsession (G4int iBatch)
 
virtual ~G4UIsession ()
 
virtual G4UIsessionSessionStart ()
 
virtual void PauseSessionStart (const G4String &Prompt)
 
virtual G4int ReceiveG4cout (const G4String &coutString)
 
virtual G4int ReceiveG4cerr (const G4String &cerrString)
 
- Public Member Functions inherited from G4coutDestination
 G4coutDestination ()
 
virtual ~G4coutDestination ()
 

Static Public Member Functions

static G4int InSession ()
 

Protected Attributes

G4int ifBatch
 

Static Protected Attributes

static G4int inSession = 0
 
- Static Protected Attributes inherited from G4coutDestination
static G4coutDestinationmasterG4coutDestination = 0
 

Detailed Description

Definition at line 43 of file G4UIsession.hh.

Constructor & Destructor Documentation

G4UIsession::G4UIsession ( )

Definition at line 35 of file G4UIsession.cc.

35  : ifBatch(0)
36 {
37  inSession++;
38 }
G4int ifBatch
Definition: G4UIsession.hh:66
static G4int inSession
Definition: G4UIsession.hh:65
G4UIsession::G4UIsession ( G4int  iBatch)

Definition at line 40 of file G4UIsession.cc.

40  : ifBatch(iBatch)
41 {;}
G4int ifBatch
Definition: G4UIsession.hh:66
G4UIsession::~G4UIsession ( )
virtual

Definition at line 43 of file G4UIsession.cc.

44 { if(!ifBatch) { inSession--; } }
G4int ifBatch
Definition: G4UIsession.hh:66
static G4int inSession
Definition: G4UIsession.hh:65

Member Function Documentation

static G4int G4UIsession::InSession ( )
inlinestatic

Definition at line 68 of file G4UIsession.hh.

68 { return inSession; }
static G4int inSession
Definition: G4UIsession.hh:65

Here is the caller graph for this function:

void G4UIsession::PauseSessionStart ( const G4String Prompt)
virtual

Reimplemented in G4UIGainServer, G4UIterminal, G4UIbatch, G4UIGAG, G4VBasicShell, and G4VMPIsession.

Definition at line 48 of file G4UIsession.cc.

48 {;}

Here is the caller graph for this function:

G4int G4UIsession::ReceiveG4cerr ( const G4String cerrString)
virtual

Reimplemented from G4coutDestination.

Reimplemented in G4UIGainServer, G4UIterminal, G4UIGAG, and G4VMPIsession.

Definition at line 56 of file G4UIsession.cc.

57 {
58  std::cerr << cerrString << std::flush;
59  return 0;
60 }
G4int G4UIsession::ReceiveG4cout ( const G4String coutString)
virtual

Reimplemented from G4coutDestination.

Reimplemented in G4UIGainServer, G4UIterminal, G4UIGAG, and G4VMPIsession.

Definition at line 50 of file G4UIsession.cc.

51 {
52  std::cout << coutString << std::flush;
53  return 0;
54 }
G4UIsession * G4UIsession::SessionStart ( )
virtual

Reimplemented in G4UIGainServer, G4UIterminal, G4UIbatch, G4UIGAG, G4VBasicShell, G4MPIsession, and G4MPIbatch.

Definition at line 46 of file G4UIsession.cc.

46 { return nullptr; }

Here is the caller graph for this function:

Member Data Documentation

G4int G4UIsession::ifBatch
protected

Definition at line 66 of file G4UIsession.hh.

G4int G4UIsession::inSession = 0
staticprotected

Definition at line 65 of file G4UIsession.hh.


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