Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions

MzIdentMLFile Class Reference
[File IO]

File adapter for MzIdentML files. More...

#include <OpenMS/FORMAT/MzIdentMLFile.h>

Inheritance diagram for MzIdentMLFile:
XMLFile ProgressLogger

List of all members.

Public Member Functions

 MzIdentMLFile ()
 Default constructor.
virtual ~MzIdentMLFile ()
 Destructor.
void load (const String &filename, Identification &id)
 Loads a map from a MzIdentML file.
void store (const String &filename, const std::vector< ProteinIdentification > &poid, const std::vector< PeptideIdentification > &peid) const
 Stores a map in a MzIdentML file.
void store (const String &filename, const Identification &id) const
 Stores a map in a MzIdentML file.
bool isSemanticallyValid (const String &filename, StringList &errors, StringList &warnings)
 Checks if a file is valid with respect to the mapping file and the controlled vocabulary.

Detailed Description

File adapter for MzIdentML files.

If a critical error occurs due to the missing functionality, Exception::NotImplemented is thrown.


Constructor & Destructor Documentation

MzIdentMLFile (  ) 

Default constructor.

virtual ~MzIdentMLFile (  )  [virtual]

Destructor.


Member Function Documentation

bool isSemanticallyValid ( const String filename,
StringList errors,
StringList warnings 
)

Checks if a file is valid with respect to the mapping file and the controlled vocabulary.

Parameters:
filename File name of the file to be checked.
errors Errors during the validation are returned in this output parameter.
warnings Warnings during the validation are returned in this output parameter.
Exceptions:
Exception::FileNotFound is thrown if the file could not be opened
void load ( const String filename,
Identification id 
)

Loads a map from a MzIdentML file.

Exceptions:
Exception::FileNotFound is thrown if the file could not be opened
Exception::ParseError is thrown if an error occurs during parsing
void store ( const String filename,
const Identification id 
) const

Stores a map in a MzIdentML file.

Exceptions:
Exception::UnableToCreateFile is thrown if the file could not be created
void store ( const String filename,
const std::vector< ProteinIdentification > &  poid,
const std::vector< PeptideIdentification > &  peid 
) const

Stores a map in a MzIdentML file.

Exceptions:
Exception::UnableToCreateFile is thrown if the file could not be created

OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:54 using doxygen 1.7.1