Description of the settings a MS Instrument was run with. More...
#include <OpenMS/METADATA/InstrumentSettings.h>
Public Types | |
enum | ScanMode { UNKNOWN, MASSSPECTRUM, MS1SPECTRUM, MSNSPECTRUM, SIM, SRM, CRM, CNG, CNL, PRECURSOR, EMC, TDF, EMR, EMISSION, ABSORBTION, SIZE_OF_SCANMODE } |
scan mode More... | |
Public Member Functions | |
InstrumentSettings () | |
Constructor. More... | |
InstrumentSettings (const InstrumentSettings &source) | |
Copy constructor. More... | |
~InstrumentSettings () | |
Destructor. More... | |
InstrumentSettings & | operator= (const InstrumentSettings &source) |
Assignment operator. More... | |
bool | operator== (const InstrumentSettings &rhs) const |
Equality operator. More... | |
bool | operator!= (const InstrumentSettings &rhs) const |
Equality operator. More... | |
ScanMode | getScanMode () const |
returns the scan mode More... | |
void | setScanMode (ScanMode scan_mode) |
sets the scan mode More... | |
bool | getZoomScan () const |
return if this scan is a zoom (enhanced resolution) scan More... | |
void | setZoomScan (bool zoom_scan) |
sets if this scan is a zoom (enhanced resolution) scan More... | |
IonSource::Polarity | getPolarity () const |
returns the polarity More... | |
void | setPolarity (IonSource::Polarity polarity) |
sets the polarity More... | |
const std::vector< ScanWindow > & | getScanWindows () const |
returns a const reference to the m/z scan windows More... | |
std::vector< ScanWindow > & | getScanWindows () |
returns a mutable reference to the m/z scan windows More... | |
void | setScanWindows (std::vector< ScanWindow > scan_windows) |
sets the m/z scan windows More... | |
![]() | |
MetaInfoInterface () | |
constructor More... | |
MetaInfoInterface (const MetaInfoInterface &rhs) | |
copy constructor More... | |
~MetaInfoInterface () | |
destructor More... | |
MetaInfoInterface & | operator= (const MetaInfoInterface &rhs) |
assignment operator More... | |
bool | operator== (const MetaInfoInterface &rhs) const |
Equality operator. More... | |
bool | operator!= (const MetaInfoInterface &rhs) const |
Equality operator. More... | |
const DataValue & | getMetaValue (const String &name) const |
returns the value corresponding to a string More... | |
const DataValue & | getMetaValue (UInt index) const |
returns the value corresponding to an index More... | |
bool | metaValueExists (const String &name) const |
returns if this MetaInfo is set More... | |
bool | metaValueExists (UInt index) const |
returns if this MetaInfo is set More... | |
void | setMetaValue (const String &name, const DataValue &value) |
sets the DataValue corresponding to a name More... | |
void | setMetaValue (UInt index, const DataValue &value) |
sets the DataValue corresponding to an index More... | |
void | removeMetaValue (const String &name) |
Removes the DataValue corresponding to name if it exists. More... | |
void | removeMetaValue (UInt index) |
Removes the DataValue corresponding to index if it exists. More... | |
void | getKeys (std::vector< String > &keys) const |
fills the given vector with a list of all keys for which a value is set More... | |
void | getKeys (std::vector< UInt > &keys) const |
fills the given vector with a list of all keys for which a value is set More... | |
bool | isMetaEmpty () const |
returns if the MetaInfo is empty More... | |
void | clearMetaInfo () |
removes all meta values More... | |
Static Public Attributes | |
static const std::string | NamesOfScanMode [SIZE_OF_SCANMODE] |
Names of scan modes. More... | |
Protected Attributes | |
ScanMode | scan_mode_ |
bool | zoom_scan_ |
IonSource::Polarity | polarity_ |
std::vector< ScanWindow > | scan_windows_ |
![]() | |
MetaInfo * | meta_ |
pointer to the MetaInfo object. 0 by default More... | |
Additional Inherited Members | |
![]() | |
static MetaInfoRegistry & | metaRegistry () |
returns a reference to the MetaInfoRegistry More... | |
![]() | |
void | createIfNotExists_ () |
creates the MetaInfo object if it does not exist More... | |
Description of the settings a MS Instrument was run with.
Constructor.
InstrumentSettings | ( | const InstrumentSettings & | source | ) |
Copy constructor.
~InstrumentSettings | ( | ) |
Destructor.
IonSource::Polarity getPolarity | ( | ) | const |
returns the polarity
Referenced by MzMLHandler< MapType >::writeSpectrum_(), MzDataHandler< MapType >::writeTo(), and MzXMLHandler< MapType >::writeTo().
ScanMode getScanMode | ( | ) | const |
returns the scan mode
Referenced by MzMLHandler< MapType >::writeSpectrum_(), MzDataHandler< MapType >::writeTo(), and MzXMLHandler< MapType >::writeTo().
const std::vector<ScanWindow>& getScanWindows | ( | ) | const |
returns a const reference to the m/z scan windows
Referenced by MzMLHandler< MapType >::writeSpectrum_(), MzDataHandler< MapType >::writeTo(), and MzXMLHandler< MapType >::writeTo().
std::vector<ScanWindow>& getScanWindows | ( | ) |
returns a mutable reference to the m/z scan windows
bool getZoomScan | ( | ) | const |
return if this scan is a zoom (enhanced resolution) scan
Referenced by MzMLHandler< MapType >::writeSpectrum_(), MzDataHandler< MapType >::writeTo(), and MzXMLHandler< MapType >::writeTo().
bool operator!= | ( | const InstrumentSettings & | rhs | ) | const |
Equality operator.
InstrumentSettings& operator= | ( | const InstrumentSettings & | source | ) |
Assignment operator.
bool operator== | ( | const InstrumentSettings & | rhs | ) | const |
Equality operator.
void setPolarity | ( | IonSource::Polarity | polarity | ) |
sets the polarity
Referenced by XMassFile::load().
void setScanMode | ( | ScanMode | scan_mode | ) |
sets the scan mode
Referenced by XMassFile::load().
void setScanWindows | ( | std::vector< ScanWindow > | scan_windows | ) |
sets the m/z scan windows
void setZoomScan | ( | bool | zoom_scan | ) |
sets if this scan is a zoom (enhanced resolution) scan
Referenced by XMassFile::load().
|
static |
Names of scan modes.
Referenced by MzDataHandler< MapType >::writeTo(), and MzXMLHandler< MapType >::writeTo().
|
protected |
|
protected |
|
protected |
|
protected |
OpenMS / TOPP release 2.0.0 | Documentation generated on Tue Aug 25 2015 05:54:01 using doxygen 1.8.9.1 |