00001 // -*- Mode: C++; tab-width: 2; -*- 00002 // vi: set ts=2: 00003 // 00004 // -------------------------------------------------------------------------- 00005 // OpenMS Mass Spectrometry Framework 00006 // -------------------------------------------------------------------------- 00007 // Copyright (C) 2003-2008 -- Oliver Kohlbacher, Knut Reinert 00008 // 00009 // This library is free software; you can redistribute it and/or 00010 // modify it under the terms of the GNU Lesser General Public 00011 // License as published by the Free Software Foundation; either 00012 // version 2.1 of the License, or (at your option) any later version. 00013 // 00014 // This library is distributed in the hope that it will be useful, 00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 // Lesser General Public License for more details. 00018 // 00019 // You should have received a copy of the GNU Lesser General Public 00020 // License along with this library; if not, write to the Free Software 00021 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00022 // 00023 // -------------------------------------------------------------------------- 00024 // $Maintainer: Marc Sturm $ 00025 // -------------------------------------------------------------------------- 00026 00027 #ifndef OPENMS_FORMAT_PEAKFILEOPTIONS_H 00028 #define OPENMS_FORMAT_PEAKFILEOPTIONS_H 00029 00030 #include <OpenMS/DATASTRUCTURES/DRange.h> 00031 00032 #include <vector> 00033 00034 namespace OpenMS 00035 { 00039 class PeakFileOptions 00040 { 00041 public: 00042 typedef std::vector<int> MSLevels; 00043 00045 PeakFileOptions(); 00047 ~PeakFileOptions(); 00048 00050 void setMetadataOnly(bool only); 00052 bool getMetadataOnly() const; 00053 00055 void setWriteSupplementalData(bool write); 00057 bool getWriteSupplementalData() const; 00058 00060 void setRTRange(const DRange<1>& range); 00062 bool hasRTRange() const; 00064 const DRange<1>& getRTRange() const; 00065 00067 void setMZRange(const DRange<1>& range); 00069 bool hasMZRange() const; 00071 const DRange<1>& getMZRange() const; 00072 00074 void setIntensityRange(const DRange<1>& range); 00076 bool hasIntensityRange() const; 00078 const DRange<1>& getIntensityRange() const; 00079 00081 void setMSLevels(const MSLevels& levels); 00083 void addMSLevel(int level); 00085 void clearMSLevels(); 00087 bool hasMSLevels() const; 00089 bool containsMSLevel(int level) const; 00091 const MSLevels& getMSLevels() const; 00092 00093 private: 00094 bool metadata_only_; 00095 bool write_supplemental_data_; 00096 bool has_rt_range_; 00097 bool has_mz_range_; 00098 bool has_intensity_range_; 00099 DRange<1> rt_range_; 00100 DRange<1> mz_range_; 00101 DRange<1> intensity_range_; 00102 MSLevels ms_levels_; 00103 }; 00104 00105 } // namespace OpenMS 00106 00107 #endif // OPENMS_FORMAT_PEAKFILEOPTIONS_H
Generated Tue Apr 1 15:36:36 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |