Filename-only format recognition and extension manipulation.
Definition FileNameUtils.h:29
static FileTypes::Type matchExtension_(const std::string &filename, size_t &ext_start)
Match the longest known extension at the end of filename.
static bool hasCompressionSuffix(const std::string &filename)
Does filename end in a compression suffix (.gz/.bz2/.zip)?
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.
static FileTypes::Type compressionType(const std::string &filename)
Which compression suffix does filename end in?
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Type
Actual file types enum.
Definition FileTypes.h:31