// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // // G4PersistencyCenterMessenger // // Class Description: // // User interface messenger class to interface G4PersistencyCenter. // Author: Youhei Morita, 18.07.2001 // -------------------------------------------------------------------- #ifndef G4PERSISTENCYCENTERMESSENGER_HH #define G4PERSISTENCYCENTERMESSENGER_HH 1 #include "G4UIcommand.hh" #include "G4UIdirectory.hh" #include "G4UIcmdWithAnInteger.hh" #include "G4UIcmdWithAString.hh" #include "G4UIcmdWithoutParameter.hh" #include "G4PersistencyCenter.hh" #include "G4UImessenger.hh" class G4PersistencyCenterMessenger : public G4UImessenger { public: G4PersistencyCenterMessenger(G4PersistencyCenter* p); // Constructor ~G4PersistencyCenterMessenger(); // Destructor void SetNewValue(G4UIcommand* command, G4String newValues); // User interface for setting a new value G4String GetCurrentValue(G4UIcommand* command); // User interface for getting a value private: G4String PopWord(const G4String& text, G4int n, const G4String& delim); // Parse text and returns the n-th words separated by delim private: G4PersistencyCenter* pc = nullptr; G4UIdirectory *directory = nullptr, *subdir1 = nullptr, *subdir2 = nullptr, *subdir3 = nullptr, *subdir4 = nullptr, *subdir5 = nullptr; G4UIcmdWithAnInteger* verboseCmd = nullptr; G4UIcmdWithAString* select = nullptr; G4UIcmdWithAString* regHitIO = nullptr; std::vector wrObj; std::vector rdObj; std::vector storeObj; std::vector setWrFile; std::vector setRdFile; G4UIcmdWithoutParameter* printAll = nullptr; }; #endif