13#include <OpenMS/PROCESSING/MISC/DataFilters.h>
14#include <OpenMS/KERNEL/ConsensusMap.h>
15#include <OpenMS/KERNEL/FeatureMap.h>
16#include <OpenMS/KERNEL/MSExperiment.h>
17#include <OpenMS/KERNEL/RangeManager.h>
18#include <OpenMS/CONCEPT/ProgressLogger.h>
32 storage_formats_(supported_storage_formats)
42 return storage_formats_;
50 virtual void saveToFile(
const std::string& filename,
const ProgressLogger::LogType lt)
const = 0;
68 LayerStoreData(FileTypeList({FileTypes::MZML, FileTypes::MZDATA, FileTypes::MZXML}))
72 void saveToFile(
const std::string& filename,
const ProgressLogger::LogType lt)
const override;
80 void storeVisibleSpectrum(
const MSSpectrum& spec,
const RangeAllType& visible_range,
const DataFilters& layer_filters);
87 void storeVisibleChromatogram(
const MSChromatogram& chrom,
const RangeAllType& visible_range,
const DataFilters& layer_filters);
90 void storeVisibleExperiment(
const PeakMap& exp,
const RangeAllType& visible_range,
const DataFilters& layer_filters);
109 void saveToFile(
const std::string& filename,
const ProgressLogger::LogType lt)
const override;
114 const PeakMap* full_exp_ =
nullptr;
128 void saveToFile(
const std::string& filename,
const ProgressLogger::LogType lt)
const override;
130 void storeVisibleFM(
const FeatureMap& fm,
const RangeAllType& visible_range,
const DataFilters& layer_filters);
149 void saveToFile(
const std::string& filename,
const ProgressLogger::LogType lt)
const override;
154 const FeatureMap* full_fm_ =
nullptr;
168 void saveToFile(
const std::string& filename,
const ProgressLogger::LogType lt)
const override;
170 void storeVisibleCM(
const ConsensusMap& cm,
const RangeAllType& visible_range,
const DataFilters& layer_filters);
189 void saveToFile(
const std::string& filename,
const ProgressLogger::LogType lt)
const override;
194 const ConsensusMap* full_cm_ =
nullptr;
210 void saveToFile(
const std::string& filename,
const ProgressLogger::LogType lt)
const override;
231 void saveToFile(
const std::string& filename,
const ProgressLogger::LogType lt)
const override;
PeptideIdentificationList PepIds
Definition IPeptideIds.h:26
Visitor which can save a full ConsensusMap; subsequently the data can be stored to a file.
Definition LayerStoreData.h:182
LayerStoreDataConsensusMapAll()
Definition LayerStoreData.h:184
void saveToFile(const std::string &filename, const ProgressLogger::LogType lt) const override
void storeFullCM(const ConsensusMap &cm)
Visitor which can save a visible piece of data; subsequently the data can be stored to a file.
Definition LayerStoreData.h:161
ConsensusMap cm_
the filtered data; used when saveToFile() is called
Definition LayerStoreData.h:173
void storeVisibleCM(const ConsensusMap &cm, const RangeAllType &visible_range, const DataFilters &layer_filters)
void saveToFile(const std::string &filename, const ProgressLogger::LogType lt) const override
LayerStoreDataConsensusMapVisible()
Definition LayerStoreData.h:163
Visitor which can save a full FeatureMap; subsequently the data can be stored to a file.
Definition LayerStoreData.h:142
void storeFullFM(const FeatureMap &fm)
void saveToFile(const std::string &filename, const ProgressLogger::LogType lt) const override
LayerStoreDataFeatureMapAll()
Definition LayerStoreData.h:144
Visitor which can save a visible piece of data; subsequently the data can be stored to a file.
Definition LayerStoreData.h:121
void storeVisibleFM(const FeatureMap &fm, const RangeAllType &visible_range, const DataFilters &layer_filters)
LayerStoreDataFeatureMapVisible()
Definition LayerStoreData.h:123
void saveToFile(const std::string &filename, const ProgressLogger::LogType lt) const override
FeatureMap fm_
the filtered data; used when saveToFile() is called
Definition LayerStoreData.h:133
Visitor which can save a full set of Identifications; subsequently the data can be stored to a file.
Definition LayerStoreData.h:224
void storeFullIdent(const IPeptideIds::PepIds &ids)
LayerStoreDataIdentAll()
Definition LayerStoreData.h:226
void saveToFile(const std::string &filename, const ProgressLogger::LogType lt) const override
Visitor which can save a visible piece of data; subsequently the data can be stored to a file.
Definition LayerStoreData.h:203
void storeVisibleIdent(const IPeptideIds::PepIds &ids, const RangeAllType &visible_range, const DataFilters &layer_filters)
void saveToFile(const std::string &filename, const ProgressLogger::LogType lt) const override
LayerStoreDataIdentVisible()
Definition LayerStoreData.h:205
IPeptideIds::PepIds ids_
the filtered data; used when saveToFile() is called
Definition LayerStoreData.h:215
Visitor which can save a full experiment; subsequently the data can be stored to a file.
Definition LayerStoreData.h:102
void saveToFile(const std::string &filename, const ProgressLogger::LogType lt) const override
void storeFullExperiment(const PeakMap &exp)
LayerStoreDataPeakMapAll()
Definition LayerStoreData.h:104
Visitor which can save a visible piece of data; subsequently the data can be stored to a file.
Definition LayerStoreData.h:65
LayerStoreDataPeakMapVisible()
Definition LayerStoreData.h:67
void storeVisibleSpectrum(const MSSpectrum &spec, const RangeAllType &visible_range, const DataFilters &layer_filters)
Stores data from a 1D canvas and remembers the data internally.
void saveToFile(const std::string &filename, const ProgressLogger::LogType lt) const override
PeakMap pm_
the filtered data; used when saveToFile() is called
Definition LayerStoreData.h:93
void storeVisibleChromatogram(const MSChromatogram &chrom, const RangeAllType &visible_range, const DataFilters &layer_filters)
Stores data from a 1D canvas and remembers the data internally.
void storeVisibleExperiment(const PeakMap &exp, const RangeAllType &visible_range, const DataFilters &layer_filters)
analog to storeVisibleSpectrum()
Base class to store either the currently visible or all data of a canvas.
Definition LayerStoreData.h:29
virtual void saveToFile(const std::string &filename, const ProgressLogger::LogType lt) const =0
virtual ~LayerStoreData()=default
virtual D'tor for proper cleanup of derived classes' members
FileTypeList storage_formats_
file formats which can hold the data from the layer; The first item should be the preferred/default f...
Definition LayerStoreData.h:57
FileTypes::Type getSupportedExtension_(const std::string &filename) const
extracts the supported extension (converting UNKNOWN to first item in storage_formats_) or throws an ...
FileTypeList getSupportedFileFormats() const
Which formats are supported when writing the file?
Definition LayerStoreData.h:40
LayerStoreData(FileTypeList supported_storage_formats)
Definition LayerStoreData.h:31
Definition Annotation1DCaret.h:23