35 #ifndef OPENMS_INTERFACES_ISPECTRUMACCESS_H 36 #define OPENMS_INTERFACES_ISPECTRUMACCESS_H 42 #include <boost/shared_ptr.hpp> 57 virtual SpectrumPtr getSpectrumById(
int id)
const = 0;
59 virtual SpectrumPtr getSpectrumById(
const std::string&
id)
const = 0;
61 virtual std::vector<std::size_t> getSpectraByRT(
double RT,
double deltaRT)
const = 0;
63 virtual size_t getNrSpectra()
const = 0;
89 virtual ChromatogramPtr getChromatogramById(
const std::string&
id)
const = 0;
91 virtual std::vector<std::size_t> getChromatogramByPrecursorMZ(
double mz,
double deltaMZ)
const = 0;
93 virtual std::size_t getNrChromatograms()
const = 0;
113 virtual void appendSpectrum(
SpectrumPtr spectrum,
bool write_through=
false) = 0;
115 virtual void flush() = 0;
125 virtual void appendChromatogram(
ChromatogramPtr chromatogram,
bool write_through=
false) = 0;
127 virtual void flush() = 0;
boost::shared_ptr< Spectrum > SpectrumPtr
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:237
boost::shared_ptr< Chromatogram > ChromatogramPtr
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:157
boost::shared_ptr< IChromatogramsReader > ChromatogramsReaderPtr
Definition: openms/include/OpenMS/INTERFACES/ISpectrumAccess.h:105
Definition: openms/include/OpenMS/INTERFACES/ISpectrumAccess.h:120
boost::shared_ptr< IChromatogramsWriter > ChromatogramsWriterPtr
Definition: openms/include/OpenMS/INTERFACES/ISpectrumAccess.h:129
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
boost::shared_ptr< ISpectraWriter > SpectraWriterPtr
Definition: openms/include/OpenMS/INTERFACES/ISpectrumAccess.h:117
Definition: openms/include/OpenMS/INTERFACES/ISpectrumAccess.h:108
The interface of read-access to a list of chromatograms.
Definition: openms/include/OpenMS/INTERFACES/ISpectrumAccess.h:82
virtual ~IChromatogramsWriter()
Definition: openms/include/OpenMS/INTERFACES/ISpectrumAccess.h:123
virtual ~ISpectraReader()
Definition: openms/include/OpenMS/INTERFACES/ISpectrumAccess.h:55
boost::shared_ptr< ChromatogramMeta > ChromatogramMetaPtr
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:100
boost::shared_ptr< SpectrumMeta > SpectrumMetaPtr
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:180
virtual ~IChromatogramsReader()
Definition: openms/include/OpenMS/INTERFACES/ISpectrumAccess.h:85
virtual ~ISpectraWriter()
Definition: openms/include/OpenMS/INTERFACES/ISpectrumAccess.h:111
boost::shared_ptr< ISpectraReader > SpectraReaderPtr
Definition: openms/include/OpenMS/INTERFACES/ISpectrumAccess.h:76
The interface of read-access to a list of spectra.
Definition: openms/include/OpenMS/INTERFACES/ISpectrumAccess.h:52