Filename-only format recognition and extension manipulation.
Definition FileNameUtils.h:25
static FileTypes::Type getTypeByFileName(const std::string &filename)
Determine a file type from its name, including compression suffixes.
static bool hasValidExtension(const std::string &filename, FileTypes::Type type)
Accept the expected extension or an unknown extension.
static std::string stripExtension(const std::string &filename)
Remove the extension using the established FileHandler rules.
static std::string swapExtension(const std::string &filename, FileTypes::Type new_type)
Strip the existing extension and append the requested extension.
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Type
Actual file types enum.
Definition FileTypes.h:31