29#ifndef G4TFileManager_h
30#define G4TFileManager_h 1
72 void FileNotFoundWarning(
const G4String& fileName,
73 std::string_view functionName)
const;
75 std::string_view functionName,
G4bool warn =
true)
const;
76 std::shared_ptr<FT> GetFileInFunction(
const G4String& fileName,
77 std::string_view functionName,
G4bool warn =
true)
const;
84 static constexpr std::string_view fkClass {
"G4TFileManager<FT>" };
88 std::map<G4String, G4TFileInformation<FT>*> fFileMap;
91#include "G4TFileManager.icc"
G4bool SetIsEmpty(const G4String &fileName, G4bool isEmpty)
G4bool CloseTFile(const G4String &fileName)
virtual std::shared_ptr< FT > CreateFileImpl(const G4String &fileName)=0
virtual G4bool CloseFileImpl(std::shared_ptr< FT > file)=0
G4TFileManager(const G4AnalysisManagerState &state)
virtual ~G4TFileManager()
std::shared_ptr< FT > GetTFile(const G4String &fileName, G4bool warn=true) const
G4bool DeleteEmptyFiles()
std::shared_ptr< FT > CreateTFile(const G4String &fileName)
virtual G4bool WriteFileImpl(std::shared_ptr< FT > file)=0
G4bool WriteTFile(const G4String &fileName)