Gromacs
2025-dev-20240910-a7e2421
|
Functions | |
std::string | findExistingExtension (const std::string &prefix, const FileNameOptionInfo &option, const IFileInputRedirector *redirector) |
Adds an extension to prefix if it results in an existing file. More... | |
Variables | |
const char *const | c_compressedExtensions [] = { ".gz", ".Z" } |
Extensions that are recognized as compressed files. | |
std::string gmx::anonymous_namespace{filenameoptionmanager.cpp}::findExistingExtension | ( | const std::string & | prefix, |
const FileNameOptionInfo & | option, | ||
const IFileInputRedirector * | redirector | ||
) |
Adds an extension to prefix
if it results in an existing file.
Tries to add each extension for this file type to prefix
and checks whether this results in an existing file. The first match is returned. Returns an empty string if no existing file is found.