|
||||
File indexing completed on 2025-01-18 09:58:58
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 // G4ProcessTableMessenger 0027 // 0028 // Class description: 0029 // 0030 // Messenger class to exchange information between ProcessTable and UI. 0031 // 0032 // /process/ Process Table control commands. 0033 // Commands : 0034 // list * : Dump process name registered. 0035 // verbose * : Set Verbose Level for Process Table 0036 // activate * : Activate process 0037 // inactivate * : Inctivate process 0038 // dump * : Dump process information 0039 0040 // Author: H.Kurashige, 15 August 1998 0041 // -------------------------------------------------------------------- 0042 #ifndef G4ProcessTableMessenger_hh 0043 #define G4ProcessTableMessenger_hh 1 0044 0045 #include "G4UImessenger.hh" 0046 #include "globals.hh" 0047 #include "G4ProcessType.hh" 0048 0049 class G4ProcessTable; 0050 class G4UIdirectory; 0051 class G4UIcmdWithoutParameter; 0052 class G4UIcmdWithAnInteger; 0053 class G4UIcmdWithAString; 0054 0055 class G4ProcessTableMessenger : public G4UImessenger 0056 { 0057 public: 0058 0059 G4ProcessTableMessenger(G4ProcessTable* pTable); 0060 virtual ~G4ProcessTableMessenger(); 0061 0062 G4ProcessTableMessenger(const G4ProcessTableMessenger&) = delete; 0063 G4ProcessTableMessenger& operator=(const G4ProcessTableMessenger&) = delete; 0064 0065 virtual void SetNewValue(G4UIcommand * command,G4String newValues); 0066 virtual G4String GetCurrentValue(G4UIcommand * command); 0067 0068 private: 0069 0070 G4ProcessTableMessenger(){} 0071 0072 G4String GetProcessTypeName(G4ProcessType aType) const; 0073 G4int GetProcessType(const G4String& aTypeName) const; 0074 static G4ThreadLocal G4int NumberOfProcessType; 0075 void SetNumberOfProcessType(); 0076 0077 private: 0078 0079 G4ProcessTable* theProcessTable = nullptr; 0080 0081 G4UIdirectory* thisDirectory = nullptr; 0082 G4UIcmdWithAnInteger* verboseCmd = nullptr; 0083 G4UIcmdWithAString* listCmd = nullptr; 0084 G4UIcommand* dumpCmd = nullptr; 0085 G4UIcommand* activateCmd = nullptr; 0086 G4UIcommand* inactivateCmd = nullptr; 0087 G4UIcommand* procVerboseCmd = nullptr; 0088 0089 G4String currentProcessTypeName = "all"; 0090 G4String currentProcessName = "all"; 0091 G4String currentParticleName = "all"; 0092 }; 0093 0094 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |