source: trunk/source/processes/management/include/G4ProcessTableMessenger.hh @ 1346

Last change on this file since 1346 was 1337, checked in by garnier, 14 years ago

tag geant4.9.4 beta 1 + modifs locales

File size: 3.8 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer                                           *
4// *                                                                  *
5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
7// * conditions of the Geant4 Software License,  included in the file *
8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
9// * include a list of copyright holders.                             *
10// *                                                                  *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work  make  any representation or  warranty, express or implied, *
14// * regarding  this  software system or assume any liability for its *
15// * use.  Please see the license in the file  LICENSE  and URL above *
16// * for the full disclaimer and the limitation of liability.         *
17// *                                                                  *
18// * This  code  implementation is the result of  the  scientific and *
19// * technical work of the GEANT4 collaboration.                      *
20// * By using,  copying,  modifying or  distributing the software (or *
21// * any work based  on the software)  you  agree  to acknowledge its *
22// * use  in  resulting  scientific  publications,  and indicate your *
23// * acceptance of all terms of the Geant4 Software license.          *
24// ********************************************************************
25//
26//
27// $Id: G4ProcessTableMessenger.hh,v 1.7 2006/06/29 21:07:36 gunter Exp $
28// GEANT4 tag $Name: geant4-09-04-beta-01 $
29//
30//
31//---------------------------------------------------------------
32//
33//  G4ProcessTableMessenger.hh
34//
35//  Class Description:
36//    This is a messenger class to interface to exchange information
37//    between ProcessTable and UI.
38//-
39//  /process/   Process Table control commands.
40//   Commands :
41//     list *       :Dump process name registered.
42//     verbose *    :Set Verbose Level for Process Table
43//     activate *   :Activate process 
44//     inactivate * :Inctivate process 
45//     dump *       :Dump process information
46//
47//  History:
48//    15 Aug. 1998, H. Kurashige 
49//
50//---------------------------------------------------------------
51
52#ifndef G4ProcessTableMessenger_h
53#define G4ProcessTableMessenger_h 1
54
55class G4ProcessTable;
56
57class G4UIdirectory;
58class G4UIcmdWithoutParameter;
59class G4UIcmdWithAnInteger; 
60class G4UIcmdWithAString;
61
62#include "G4UImessenger.hh"
63#include "globals.hh"
64#include "G4ProcessType.hh"
65
66class G4ProcessTableMessenger: public G4UImessenger
67{
68  public:
69    G4ProcessTableMessenger(G4ProcessTable* pTable);
70    virtual ~G4ProcessTableMessenger();
71
72  public: // with description
73    virtual void SetNewValue(G4UIcommand * command,G4String newValues);
74    virtual G4String GetCurrentValue(G4UIcommand * command);
75
76  private:
77    G4String GetProcessTypeName(G4ProcessType aType) const; 
78    G4int    GetProcessType(const G4String& aTypeName) const;
79    static   G4int NumberOfProcessType;
80    void     SetNumberOfProcessType();
81
82  private:
83    G4ProcessTableMessenger(const G4ProcessTableMessenger&)
84      : G4UImessenger() {};
85    G4ProcessTableMessenger(){};
86
87  private:
88    G4ProcessTable*  theProcessTable;
89
90    G4UIdirectory *             thisDirectory;
91    G4UIcmdWithAnInteger *      verboseCmd;
92    G4UIcmdWithAString *        listCmd;
93    G4UIcommand *               dumpCmd;
94    G4UIcommand *               activateCmd;
95    G4UIcommand *               inactivateCmd;
96    G4UIcommand *               procVerboseCmd;
97
98    G4String                    currentProcessTypeName;
99    G4String                    currentProcessName;
100    G4String                    currentParticleName; 
101};
102
103#endif
104
105
106
107
Note: See TracBrowser for help on using the repository browser.