Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4StateManager Class Reference

The manager class for application state. More...

#include <TG4StateManager.h>

Inheritance diagram for TG4StateManager:

Public Member Functions

 TG4StateManager ()
 
virtual ~TG4StateManager ()
 
void SetNewState (TG4ApplicationState state)
 
TG4ApplicationState GetCurrentState () const
 
TG4ApplicationState GetPreviousState () const
 
- Public Member Functions inherited from TG4Verbose
 TG4Verbose (const G4String &cmdName)
 
 TG4Verbose (const G4String &cmdName, G4int verboseLevel)
 
virtual ~TG4Verbose ()
 
virtual void VerboseLevel (G4int level)
 
virtual G4int VerboseLevel () const
 

Static Public Member Functions

static TG4StateManagerInstance ()
 
static G4String GetStateName (TG4ApplicationState state)
 

Private Member Functions

 TG4StateManager (const TG4StateManager &right)
 Not implemented.
 
TG4StateManageroperator= (const TG4StateManager &right)
 Not implemented.
 

Private Attributes

TG4ApplicationState fCurrentState
 the current application state
 
TG4ApplicationState fPreviousState
 the previous application state
 

Static Private Attributes

static G4ThreadLocal TG4StateManagerfgInstance = 0
 this instance
 

Detailed Description

The manager class for application state.

Author
I. Hrivnacova; IPN, Orsay

Definition at line 30 of file TG4StateManager.h.

Constructor & Destructor Documentation

◆ TG4StateManager() [1/2]

TG4StateManager::TG4StateManager ( )

Standard constructor

Definition at line 49 of file TG4StateManager.cxx.

◆ ~TG4StateManager()

TG4StateManager::~TG4StateManager ( )
virtual

Destructor

Definition at line 66 of file TG4StateManager.cxx.

◆ TG4StateManager() [2/2]

TG4StateManager::TG4StateManager ( const TG4StateManager & right)
private

Not implemented.

Member Function Documentation

◆ Instance()

◆ GetStateName()

G4String TG4StateManager::GetStateName ( TG4ApplicationState state)
static

Return string for given application state

Definition at line 21 of file TG4StateManager.cxx.

Referenced by SetNewState().

◆ SetNewState()

◆ GetCurrentState()

TG4ApplicationState TG4StateManager::GetCurrentState ( ) const
inline

Return application state

Definition at line 67 of file TG4StateManager.h.

◆ GetPreviousState()

TG4ApplicationState TG4StateManager::GetPreviousState ( ) const
inline

Return application state

Definition at line 73 of file TG4StateManager.h.

◆ operator=()

TG4StateManager & TG4StateManager::operator= ( const TG4StateManager & right)
private

Not implemented.

Member Data Documentation

◆ fgInstance

G4ThreadLocal TG4StateManager * TG4StateManager::fgInstance = 0
staticprivate

this instance

Definition at line 52 of file TG4StateManager.h.

Referenced by Instance(), TG4StateManager(), and ~TG4StateManager().

◆ fCurrentState

TG4ApplicationState TG4StateManager::fCurrentState
private

the current application state

Definition at line 55 of file TG4StateManager.h.

Referenced by GetCurrentState(), and SetNewState().

◆ fPreviousState

TG4ApplicationState TG4StateManager::fPreviousState
private

the previous application state

Definition at line 56 of file TG4StateManager.h.

Referenced by GetPreviousState(), and SetNewState().


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