Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4StateManager.h
Go to the documentation of this file.
1#ifndef TG4_STATE_MANAGER_H
2#define TG4_STATE_MANAGER_H
3
4//------------------------------------------------
5// The Geant4 Virtual Monte Carlo package
6// Copyright (C) 2007 - 2014 Ivana Hrivnacova
7// All rights reserved.
8//
9// For the licensing terms see geant4_vmc/LICENSE.
10// Contact: root-vmc@cern.ch
11//-------------------------------------------------
12
17
18#include "TG4ApplicationState.h"
19#include "TG4Verbose.h"
20
21#include "globals.hh"
22
23class TG4StateManager;
24
29
31{
32 public:
34 virtual ~TG4StateManager();
35
36 // static access method
37 static TG4StateManager* Instance();
38 static G4String GetStateName(TG4ApplicationState state);
39
40 // methods
44
45 private:
50
51 // static data members
52 static G4ThreadLocal TG4StateManager* fgInstance;
53
54 // data members
57};
58
59// inline methods
60
66
72
78
79#endif // TG4_STATE_MANAGER_H
Definition of the enumeration TG4ApplicationState.
Definition of the TG4Verbose class.
The manager class for application state.
TG4ApplicationState GetPreviousState() const
static G4ThreadLocal TG4StateManager * fgInstance
this instance
TG4ApplicationState fCurrentState
the current application state
static G4String GetStateName(TG4ApplicationState state)
void SetNewState(TG4ApplicationState state)
TG4ApplicationState fPreviousState
the previous application state
static TG4StateManager * Instance()
virtual ~TG4StateManager()
TG4ApplicationState GetCurrentState() const
TG4StateManager & operator=(const TG4StateManager &right)
Not implemented.
TG4StateManager(const TG4StateManager &right)
Not implemented.
Base class for defining the verbose level and a common messenger.
Definition TG4Verbose.h:36
TG4ApplicationState
Enumeration for application states.