OpenMS  2.7.0
Public Member Functions | Private Attributes | List of all members
IndexedMzMLFileLoader Class Reference

A class to load an indexedmzML file. More...

#include <OpenMS/FORMAT/IndexedMzMLFileLoader.h>

Collaboration diagram for IndexedMzMLFileLoader:
[legend]

Public Member Functions

 IndexedMzMLFileLoader ()
 Constructor. More...
 
 ~IndexedMzMLFileLoader ()
 Destructor. More...
 
PeakFileOptionsgetOptions ()
 Mutable access to the options for loading/storing. More...
 
const PeakFileOptionsgetOptions () 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, OnDiscPeakMap &exp)
 Load a file. More...
 
void store (const String &filename, OnDiscPeakMap &exp)
 Store a file from an on-disc data-structure. More...
 
void store (const String &filename, PeakMap &exp)
 Store a file from an in-memory data-structure. More...
 

Private Attributes

PeakFileOptions options_
 Options for storing. More...
 

Detailed Description

A class to load an indexedmzML file.

Providing the same interface as the other classes such as MzMLFile, MzXMLFile etc. to load and store a file. Reading a file from disk will load the file into a OnDiscMSExperiment while the class can write to disk both, a MSExperiment and a OnDiscMSExperiment.

Constructor & Destructor Documentation

◆ IndexedMzMLFileLoader()

Constructor.

◆ ~IndexedMzMLFileLoader()

Destructor.

Member Function Documentation

◆ getOptions() [1/2]

PeakFileOptions& getOptions ( )

Mutable access to the options for loading/storing.

◆ getOptions() [2/2]

const PeakFileOptions& getOptions ( ) const

Non-mutable access to the options for loading/storing.

◆ load()

bool load ( const String filename,
OnDiscPeakMap exp 
)
inline

Load a file.

Tries to parse the file, success needs to be checked with the return value.

Parameters
filenameFilename determines where the file is located
expObject which will contain the data after the call
Returns
Indicates whether parsing was successful (if it is false, the file most likely was not an mzML or not indexed).

References OnDiscMSExperiment::openFile().

◆ setOptions()

void setOptions ( const PeakFileOptions )

set options for loading/storing

◆ store() [1/2]

void store ( const String filename,
OnDiscPeakMap exp 
)
inline

◆ store() [2/2]

void store ( const String filename,
PeakMap exp 
)
inline

Store a file from an in-memory data-structure.

Parameters
filenameFilename determines where the file will be stored
expMS data to be stored

References MzMLFile::setOptions(), and MzMLFile::store().

Member Data Documentation

◆ options_

PeakFileOptions options_
private

Options for storing.