A class to load an indexedmzML file. More...
#include <OpenMS/FORMAT/IndexedMzMLFileLoader.h>
Public Member Functions | |
IndexedMzMLFileLoader () | |
Constructor. More... | |
~IndexedMzMLFileLoader () | |
Destructor. More... | |
PeakFileOptions & | getOptions () |
Mutable access to the options for loading/storing. More... | |
const PeakFileOptions & | getOptions () const |
Non-mutable access to the options for loading/storing. More... | |
void | setOptions (const PeakFileOptions &) |
set options for loading/storing More... | |
bool | load (const String &filename, OnDiscMSExperiment<> &exp) |
Load a file. More... | |
void | store (const String &filename, OnDiscMSExperiment<> &exp) |
Store a file from an on-disc data-structure. More... | |
void | store (const String &filename, MSExperiment<> &exp) |
Store a file from an in-memory data-structure. More... | |
Private Attributes | |
PeakFileOptions | options_ |
Options for storing. More... | |
A class to load an indexedmzML file.
Providing the same interface as the other classes such as mzMLFile, mzXMLFile etc. to load a file.
Constructor.
Destructor.
PeakFileOptions& getOptions | ( | ) |
Mutable access to the options for loading/storing.
const PeakFileOptions& getOptions | ( | ) | const |
Non-mutable access to the options for loading/storing.
|
inline |
Load a file.
Tries to parse the file, success needs to be checked with the return value.
filename | Filename determines where the file is located |
exp | Object which will contain the data after the call |
References OnDiscMSExperiment< PeakT, ChromatogramPeakT >::openFile().
void setOptions | ( | const PeakFileOptions & | ) |
set options for loading/storing
|
inline |
Store a file from an on-disc data-structure.
filename | Filename determines where the file will be stored |
exp | MS data to be stored |
References OpenMS::Constants::c, MSDataWritingConsumer::consumeChromatogram(), MSDataWritingConsumer::consumeSpectrum(), OnDiscMSExperiment< PeakT, ChromatogramPeakT >::getChromatogram(), OnDiscMSExperiment< PeakT, ChromatogramPeakT >::getExperimentalSettings(), OnDiscMSExperiment< PeakT, ChromatogramPeakT >::getNrChromatograms(), OnDiscMSExperiment< PeakT, ChromatogramPeakT >::getNrSpectra(), OnDiscMSExperiment< PeakT, ChromatogramPeakT >::getSpectrum(), MSDataWritingConsumer::setExpectedSize(), MSDataWritingConsumer::setExperimentalSettings(), and MzMLHandler< MapType >::setOptions().
|
inline |
Store a file from an in-memory data-structure.
filename | Filename determines where the file will be stored |
exp | MS data to be stored |
References MzMLFile::setOptions(), and MzMLFile::store().
|
private |
Options for storing.
OpenMS / TOPP release 2.0.0 | Documentation generated on Tue Nov 1 2016 16:34:46 using doxygen 1.8.11 |