|  | OpenMS
    2.6.0
    | 
An class that uses on-disk caching to read and write spectra and chromatograms. More...
#include <OpenMS/FORMAT/CachedMzML.h>
| Constructors and Destructor | |
| MSExperiment | meta_ms_experiment_ | 
| Meta data.  More... | |
| std::ifstream | ifs_ | 
| Internal filestream.  More... | |
| String | filename_ | 
| Name of the mzML file.  More... | |
| String | filename_cached_ | 
| Name of the cached mzML file.  More... | |
| std::vector< std::streampos > | spectra_index_ | 
| Indices.  More... | |
| std::vector< std::streampos > | chrom_index_ | 
| CachedmzML () | |
| Default constructor.  More... | |
| CachedmzML (const String &filename) | |
| CachedmzML (const CachedmzML &rhs) | |
| Copy constructor.  More... | |
| ~CachedmzML () | |
| Default destructor.  More... | |
| MSSpectrum | getSpectrum (Size id) | 
| MSChromatogram | getChromatogram (Size id) | 
| size_t | getNrSpectra () const | 
| size_t | getNrChromatograms () const | 
| const MSExperiment & | getMetaData () const | 
| static void | store (const String &filename, const PeakMap &map) | 
| Stores a map in a cached MzML file.  More... | |
| static void | load (const String &filename, CachedmzML &map) | 
| Loads a map from a cached MzML file.  More... | |
| void | load_ (const String &filename) | 
An class that uses on-disk caching to read and write spectra and chromatograms.
This class provides functions to read and write spectra and chromatograms to disk using a time-efficient format. Reading the data items from disk can be very fast and done in random order (once the in-memory index is built for the file).
| CachedmzML | ( | ) | 
Default constructor.
| CachedmzML | ( | const String & | filename | ) | 
| CachedmzML | ( | const CachedmzML & | rhs | ) | 
Copy constructor.
| ~CachedmzML | ( | ) | 
Default destructor.
| MSChromatogram getChromatogram | ( | Size | id | ) | 
| 
 | inline | 
| size_t getNrChromatograms | ( | ) | const | 
| size_t getNrSpectra | ( | ) | const | 
| MSSpectrum getSpectrum | ( | Size | id | ) | 
| 
 | static | 
Loads a map from a cached MzML file.
filename The data location (ends in .mzML, expects an adjacent .mzML.cached file) map A CachedmzML result object
| Exception::FileNotFound | is thrown if the file could not be opened | 
| Exception::ParseError | is thrown if an error occurs during parsing | 
| 
 | protected | 
Stores a map in a cached MzML file.
filename The data location (ends in .mzML) map has to be an MSExperiment or have the same interface.
| Exception::UnableToCreateFile | is thrown if the file could not be created | 
| 
 | protected | 
| 
 | protected | 
Name of the mzML file.
| 
 | protected | 
Name of the cached mzML file.
| 
 | protected | 
Internal filestream.
| 
 | protected | 
Meta data.
| 
 | protected | 
Indices.
 1.8.16
 1.8.16