29#ifndef G4TFileManager_h
30#define G4TFileManager_h 1
73 std::string_view functionName)
const;
75 std::string_view functionName,
G4bool warn =
true)
const;
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;
G4bool DeleteEmptyFile(const G4String &fileName)
std::map< G4String, G4TFileInformation< FT > * > fFileMap
G4bool SetIsEmpty(const G4String &fileName, G4bool isEmpty)
static constexpr std::string_view fkClass
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()
void FileNotFoundWarning(const G4String &fileName, std::string_view functionName) const
std::shared_ptr< FT > GetTFile(const G4String &fileName, G4bool warn=true) const
G4TFileInformation< FT > * GetFileInfoInFunction(const G4String &fileName, std::string_view functionName, G4bool warn=true) const
const G4AnalysisManagerState & fAMState
G4bool DeleteEmptyFiles()
G4bool CloseTFile(std::shared_ptr< FT > file, const G4String &fileName)
std::shared_ptr< FT > CreateTFile(const G4String &fileName)
virtual G4bool WriteFileImpl(std::shared_ptr< FT > file)=0
G4bool WriteTFile(std::shared_ptr< FT > file, const G4String &fileName)
G4bool WriteTFile(const G4String &fileName)
std::shared_ptr< FT > GetFileInFunction(const G4String &fileName, std::string_view functionName, G4bool warn=true) const