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

PTMXMLFile Class Reference
[File IO]

Used to load and store PTMXML files. More...

#include <OpenMS/FORMAT/PTMXMLFile.h>

Inheritance diagram for PTMXMLFile:
XMLFile

List of all members.

Public Member Functions

 PTMXMLFile ()
 Constructor.
void load (const String &filename, std::map< String, std::pair< String, String > > &ptm_informations)
 Loads the informations of a PTMXML file.
void store (String filename, std::map< String, std::pair< String, String > > &ptm_informations) const
 Stores the data in an PTMXML file.

Detailed Description

Used to load and store PTMXML files.

This class is used to load and store documents that implement the schema of PTMXML files.


Constructor & Destructor Documentation

PTMXMLFile (  ) 

Constructor.


Member Function Documentation

void load ( const String filename,
std::map< String, std::pair< String, String > > &  ptm_informations 
)

Loads the informations of a PTMXML file.

Parameters:
filename The name of the file
ptm_informations the PTM information from the file are stored herein
Exceptions:
FileNotFound is thrown if the given file could not be found
ParseError is thrown if the given file could not be parsed The information is read in and stored in the corresponding variables
void store ( String  filename,
std::map< String, std::pair< String, String > > &  ptm_informations 
) const

Stores the data in an PTMXML file.

Exceptions:
UnableToCreateFile is thrown if the given filename could not be created

The data is read in and stored in the file 'filename'.


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