Geant4-11
Functions
anonymous_namespace{G4GenericFileManager.cc} Namespace Reference

Functions

void FileManagerWarning (const G4String &fileName, std::string_view className, std::string_view functionName, G4bool hdf5Warn=true)
 

Function Documentation

◆ FileManagerWarning()

void anonymous_namespace{G4GenericFileManager.cc}::FileManagerWarning ( const G4String fileName,
std::string_view  className,
std::string_view  functionName,
G4bool  hdf5Warn = true 
)

Definition at line 48 of file G4GenericFileManager.cc.

52{
53 if ( GetExtension(fileName) == "hdf5" && ( ! hdf5Warn ) ) return;
54
55 Warn("Cannot get file manager for " + fileName,
56 className, functionName);
57}
static char className[]
Definition: G4Win32.cc:36
G4String GetExtension(const G4String &fileName, const G4String &defaultExtension="")
void Warn(const G4String &message, const std::string_view inClass, const std::string_view inFunction)

References className, G4Analysis::GetExtension(), and G4Analysis::Warn().

Referenced by G4GenericFileManager::CloseFile(), G4GenericFileManager::CreateFile(), G4GenericFileManager::OpenFiles(), G4GenericFileManager::SetIsEmpty(), and G4GenericFileManager::WriteFile().