OpenMS  2.7.0
Public Member Functions | Private Attributes | List of all members
FileTypes::FileTypeList Class Reference

holds a vector of known file types, e.g. as a way to specify supported input formats More...

#include <OpenMS/FORMAT/FileTypes.h>

Collaboration diagram for FileTypes::FileTypeList:
[legend]

Public Member Functions

 FileTypeList (const std::vector< Type > &types)
 
bool contains (const Type &type) const
 check if type is contained in this array More...
 
String toFileDialogFilter (const Filter style, bool add_all_filter) const
 

Private Attributes

std::vector< Typetype_list_
 

Detailed Description

holds a vector of known file types, e.g. as a way to specify supported input formats

The vector can be exported in Qt's file dialog format.

Constructor & Destructor Documentation

◆ FileTypeList()

FileTypeList ( const std::vector< Type > &  types)

Member Function Documentation

◆ contains()

bool contains ( const Type type) const

check if type is contained in this array

Referenced by TOPPViewBase::addDataFile().

◆ toFileDialogFilter()

String toFileDialogFilter ( const Filter  style,
bool  add_all_filter 
) const

converts the array into a Qt-compatible filter for selecting files in a user dialog. e.g. "all readable files (*.mzML *.mzXML);;". See Filter enum.

Parameters
styleCreate a combined filter, or single filters, or both
add_all_filterAdd 'all files (*)' as a single filter at the end?

Referenced by TOPPViewBase::chooseFilesDialog_().

Member Data Documentation

◆ type_list_

std::vector<Type> type_list_
private