All classes for file and database IO can be found in the FORMAT folder.
The interface of most file adapter classes is very similar. They implement a load and a store method, that take a file name and the appropriate data structure.
The following example (Tutorial_FileIO.C) demonstrates the use of MzMLFile and MzXMLFile to convert one format into another using MSExperiment to hold the temporary data:
For database access, the class DBAdapter is used. As its interface is very similar to the interface of the file adapters, no example is shown here.
In order to have more control over loading data from files or databases, most adapters can be configured using PeakFileOptions. The following options are available:
OpenMS / TOPP release 1.9.0 | Documentation generated on Sun Oct 27 2013 01:11:37 using doxygen 1.8.4 |