Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:54

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 // G4PersistencyCenterMessenger
0027 //
0028 // Class Description:
0029 //
0030 // User interface messenger class to interface G4PersistencyCenter.
0031 
0032 // Author: Youhei Morita, 18.07.2001
0033 // --------------------------------------------------------------------
0034 #ifndef G4PERSISTENCYCENTERMESSENGER_HH
0035 #define G4PERSISTENCYCENTERMESSENGER_HH 1
0036 
0037 #include "G4UIcommand.hh"
0038 #include "G4UIdirectory.hh"
0039 #include "G4UIcmdWithAnInteger.hh"
0040 #include "G4UIcmdWithAString.hh"
0041 #include "G4UIcmdWithoutParameter.hh"
0042 #include "G4PersistencyCenter.hh"
0043 #include "G4UImessenger.hh"
0044 
0045 class G4PersistencyCenterMessenger : public G4UImessenger
0046 {
0047   public:
0048 
0049     G4PersistencyCenterMessenger(G4PersistencyCenter* p);
0050       // Constructor
0051 
0052     ~G4PersistencyCenterMessenger();
0053       // Destructor
0054 
0055     void SetNewValue(G4UIcommand* command, G4String newValues);
0056       // User interface for setting a new value
0057 
0058     G4String GetCurrentValue(G4UIcommand* command);
0059       // User interface for getting a value
0060 
0061   private:
0062 
0063     G4String PopWord(const G4String& text, G4int n, const G4String& delim);
0064       // Parse text and returns the n-th words separated by delim
0065 
0066   private:
0067 
0068     G4PersistencyCenter* pc = nullptr;
0069     G4UIdirectory *directory  = nullptr,
0070                   *subdir1 = nullptr, *subdir2 = nullptr,
0071                   *subdir3 = nullptr, *subdir4 = nullptr, *subdir5 = nullptr;
0072     G4UIcmdWithAnInteger* verboseCmd = nullptr;
0073     G4UIcmdWithAString* select = nullptr;
0074     G4UIcmdWithAString* regHitIO = nullptr;
0075     std::vector<std::string> wrObj;
0076     std::vector<std::string> rdObj;
0077     std::vector<G4UIcmdWithAString*> storeObj;
0078     std::vector<G4UIcmdWithAString*> setWrFile;
0079     std::vector<G4UIcmdWithAString*> setRdFile;
0080     G4UIcmdWithoutParameter* printAll = nullptr;
0081 };
0082 
0083 #endif