MCPcopy Create free account
hub / github.com/Geant4/geant4 / FileFound

Function FileFound

source/intercoms/src/G4UImanager.cc:795–805  ·  view source on GitHub ↗

--------------------------------------------------------------------

Source from the content-addressed store, hash-verified

793
794// --------------------------------------------------------------------
795static G4bool FileFound(const G4String& fname)
796{
797 G4bool qopen = false;
798 std::ifstream fs;
799 fs.open(fname.c_str(), std::ios::in);
800 if (fs.good()) {
801 fs.close();
802 qopen = true;
803 }
804 return qopen;
805}
806
807// --------------------------------------------------------------------
808G4String G4UImanager::FindMacroPath(const G4String& fname) const

Callers 1

FindMacroPathMethod · 0.85

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected