00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id$ 00028 // 00029 // 00030 //--------------------------------------------------------------- 00031 // 00032 // G4ProcessTableMessenger.hh 00033 // 00034 // Class Description: 00035 // This is a messenger class to interface to exchange information 00036 // between ProcessTable and UI. 00037 //- 00038 // /process/ Process Table control commands. 00039 // Commands : 00040 // list * :Dump process name registered. 00041 // verbose * :Set Verbose Level for Process Table 00042 // activate * :Activate process 00043 // inactivate * :Inctivate process 00044 // dump * :Dump process information 00045 // 00046 // History: 00047 // 15 Aug. 1998, H. Kurashige 00048 // 00049 //--------------------------------------------------------------- 00050 00051 #ifndef G4ProcessTableMessenger_h 00052 #define G4ProcessTableMessenger_h 1 00053 00054 class G4ProcessTable; 00055 00056 class G4UIdirectory; 00057 class G4UIcmdWithoutParameter; 00058 class G4UIcmdWithAnInteger; 00059 class G4UIcmdWithAString; 00060 00061 #include "G4UImessenger.hh" 00062 #include "globals.hh" 00063 #include "G4ProcessType.hh" 00064 00065 class G4ProcessTableMessenger: public G4UImessenger 00066 { 00067 public: 00068 G4ProcessTableMessenger(G4ProcessTable* pTable); 00069 virtual ~G4ProcessTableMessenger(); 00070 00071 public: // with description 00072 virtual void SetNewValue(G4UIcommand * command,G4String newValues); 00073 virtual G4String GetCurrentValue(G4UIcommand * command); 00074 00075 private: 00076 G4String GetProcessTypeName(G4ProcessType aType) const; 00077 G4int GetProcessType(const G4String& aTypeName) const; 00078 static G4int NumberOfProcessType; 00079 void SetNumberOfProcessType(); 00080 00081 private: 00082 G4ProcessTableMessenger(const G4ProcessTableMessenger&) 00083 : G4UImessenger() {}; 00084 G4ProcessTableMessenger(){}; 00085 00086 private: 00087 G4ProcessTable* theProcessTable; 00088 00089 G4UIdirectory * thisDirectory; 00090 G4UIcmdWithAnInteger * verboseCmd; 00091 G4UIcmdWithAString * listCmd; 00092 G4UIcommand * dumpCmd; 00093 G4UIcommand * activateCmd; 00094 G4UIcommand * inactivateCmd; 00095 G4UIcommand * procVerboseCmd; 00096 00097 G4String currentProcessTypeName; 00098 G4String currentProcessName; 00099 G4String currentParticleName; 00100 }; 00101 00102 #endif 00103 00104 00105 00106