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 // G4ProcessManagerMessenger.hh 00033 // 00034 // Class Description: 00035 // This is a messenger class to interface to exchange information 00036 // between ProcessManager and UI. 00037 //- 00038 // /particle/process/ Process Manager control commands. 00039 // Commands : 00040 // dump * dump process manager information. 00041 // Verbose * Set Verbose Level for Process Manager and/or process 00042 // Activate * Activate process 00043 // inactivate * Inctivate process 00044 // 00045 // History: 00046 // 13 June 1997, H. Kurashige : The 1st version created. 00047 // 10 Nov. 1997 H. Kurashige : fixed bugs 00048 // 08 Jan. 1998, H. Kurashige : new UIcommand 00049 // 00050 //--------------------------------------------------------------- 00051 00052 #ifndef G4ProcessManagerMessenger_h 00053 #define G4ProcessManagerMessenger_h 1 00054 00055 class G4ParticleDefinition; 00056 class G4ParticleTable; 00057 class G4ProcessManager; 00058 class G4ProcessVector; 00059 class G4VProcess; 00060 00061 class G4UIdirectory; 00062 class G4UIcmdWithoutParameter; 00063 class G4UIcmdWithAnInteger; 00064 class G4UIcommand; 00065 00066 #include "G4UImessenger.hh" 00067 #include "globals.hh" 00068 00069 class G4ProcessManagerMessenger: public G4UImessenger 00070 { 00071 public: 00072 G4ProcessManagerMessenger(G4ParticleTable* pTable = 0); 00073 // constructor 00074 00075 virtual ~G4ProcessManagerMessenger(); 00076 // destructor 00077 00078 public: // with description 00079 virtual void SetNewValue(G4UIcommand * command,G4String newValues); 00080 // set new value for command string 00081 00082 virtual G4String GetCurrentValue(G4UIcommand * command); 00083 // get current value for command string 00084 00085 private: 00086 G4ProcessManagerMessenger(const G4ProcessManagerMessenger&) 00087 : G4UImessenger() {}; 00088 // hide copy constructor as private 00089 00090 private: 00091 G4ParticleDefinition* SetCurrentParticle(); 00092 // set particle currently concerned 00093 00094 private: 00095 G4ParticleTable* theParticleTable; 00096 G4ParticleDefinition* currentParticle; 00097 G4VProcess* currentProcess; 00098 G4ProcessManager* theManager; 00099 G4ProcessVector* theProcessList; 00100 00101 G4UIdirectory * thisDirectory; 00102 G4UIcmdWithAnInteger * dumpCmd; 00103 G4UIcommand * verboseCmd; 00104 G4UIcmdWithAnInteger * activateCmd; 00105 G4UIcmdWithAnInteger * inactivateCmd; 00106 }; 00107 00108 #endif 00109