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

Method FindMacroPath

source/intercoms/src/G4UImanager.cc:808–820  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

806
807// --------------------------------------------------------------------
808G4String G4UImanager::FindMacroPath(const G4String& fname) const
809{
810 G4String macrofile = fname;
811
812 for (const auto& searchDir : searchDirs) {
813 const G4String& fullpath = searchDir + "/" + fname;
814 if (FileFound(fullpath)) {
815 macrofile = fullpath;
816 break;
817 }
818 }
819 return macrofile;
820}
821
822// --------------------------------------------------------------------
823std::vector<G4String>* G4UImanager::GetCommandStack()

Callers 4

AddViewerTabFromFileMethod · 0.80
AddIconMethod · 0.80
SetNewValueMethod · 0.80
SetNewValueMethod · 0.80

Calls 1

FileFoundFunction · 0.85

Tested by

no test coverage detected