Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Types | Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
FileTypes Struct Reference

Centralizes the file types recognized by FileHandler. More...

#include <OpenMS/FORMAT/FileTypes.h>

Public Types

enum  Type {
  UNKNOWN, DTA, DTA2D, MZDATA,
  MZXML, FEATUREXML, IDXML, CONSENSUSXML,
  MGF, INI, TOPPAS, TRANSFORMATIONXML,
  MZML, MS2, PEPXML, PROTXML,
  MZIDENTML, MZQUANTML, QCML, GELML,
  TRAML, MSP, OMSSAXML, MASCOTXML,
  PNG, XMASS, TSV, PEPLIST,
  HARDKLOER, KROENIK, FASTA, EDTA,
  CSV, TXT, OBO, HTML,
  XML, ANALYSISXML, XSD, PSQ,
  MRM, PSMS, SIZE_OF_TYPE
}
 Actual file types enum. More...
 

Static Public Member Functions

static String typeToName (Type type)
 Returns the name/extension of the type. More...
 
static String typeToMZML (Type type)
 Returns the mzML name (TODO: switch to accession since they are more stable!) More...
 
static Type nameToType (const String &name)
 Converts a file type name into a Type. More...
 

Static Private Member Functions

static std::map< Type, StringinitializeMap_ ()
 Initializer for the file extension map. More...
 
static std::map< Type, StringinitializeMZMLMap_ ()
 Initializer for the file extension map. More...
 

Static Private Attributes

static const std::map< Type, Stringname_of_types_
 Maps the FileType::Type to the preferred extension. More...
 
static const std::map< Type, Stringname_of_MZMLtypes_
 Maps the FileType::Type to the preferred mzML CV name. More...
 

Detailed Description

Centralizes the file types recognized by FileHandler.

FileType separate from FileHandler to avoid circular inclusions by DocumentIdentifier, ExperimentalSettings and FileHandler and respective fileclasses (e.g. DTA2DFile).

Member Function Documentation

static std::map<Type, String> initializeMap_ ( )
staticprivate

Initializer for the file extension map.

static std::map<Type, String> initializeMZMLMap_ ( )
staticprivate

Initializer for the file extension map.

static Type nameToType ( const String name)
static

Converts a file type name into a Type.

static String typeToMZML ( Type  type)
static

Returns the mzML name (TODO: switch to accession since they are more stable!)

Referenced by FileHandler::loadExperiment().

static String typeToName ( Type  type)
static

Returns the name/extension of the type.

Referenced by TOPPViewBase::addDataFile(), and InspectOutfile::getExperiment().

Member Data Documentation

const std::map<Type, String> name_of_MZMLtypes_
staticprivate

Maps the FileType::Type to the preferred mzML CV name.

const std::map<Type, String> name_of_types_
staticprivate

Maps the FileType::Type to the preferred extension.


OpenMS / TOPP release 2.0.0 Documentation generated on Thu Aug 20 2015 01:44:35 using doxygen 1.8.9.1