19#ifndef MS_FRAGMENTATIONRULES_HPP
20#define MS_FRAGMENTATIONRULES_HPP
28namespace matrix_science {
75 FRAG_B_MINUS_H2O = 10,
79 FRAG_Y_MINUS_NH3 = 14,
80 FRAG_Y_MINUS_H2O = 15,
82 FRAG_INTERNAL_YB = 17,
83 FRAG_INTERNAL_YA = 18,
101 void defaultValues();
111 std::string getTitle()
const;
114 void setTitle(
const char * title);
117 static int getFirstSeries();
120 static int getFirstSerie();
123 static int getLastSeries();
126 static int getLastSerie();
129 bool isSinglyCharged()
const;
132 void setSinglyCharged(
const bool value);
135 bool isCharged2Plus()
const;
138 void setCharged2Plus(
const bool value);
141 bool isCharged3Plus()
const;
144 void setCharged3Plus(
const bool value);
147 bool isSeriesUsed(
const int series)
const;
153 void setSeriesUsed(
const int series,
const bool val);
156 bool isValid()
const;
159 bool verifyRule(
ms_errs* err_,
const bool tryToFix);
162 static std::string getSeriesDescription(
const int series);
165 double getMinInternalMass()
const;
168 void setMinInternalMass(
const double mass);
171 double getMaxInternalMass()
const;
174 void setMaxInternalMass(
const double mass);
177 static std::string getSeriesName(
const int series);
180 static bool isBackboneSeries(
const int series);
183 static bool isNeutralLossSeries(
const int series);
186 bool anyNLseriesUsed(
const int series)
const;
189 static int getTotalSeriesOutput();
191#ifdef SUPPRESS_MS_CUSTOMPROPERTY_INHERITANCE
192#include "suppress_ms_customproperty.hpp"
198 double minInternalMass_;
199 double maxInternalMass_;
224 void defaultValues();
234 void setFileName(
const char* filename);
237 std::string getFileName()
const;
249 void read_buffer(
const char * buffer);
255 int getNumberOfInstruments()
const;
258 void clearInstruments();
264 std::string getInstrumentName(
const int instrumentNum)
const;
279 bool deleteInstrumentByNumber(
const int num);
282 bool deleteInstrumentByName(
const char* name);
285 void read_filesource(ms_filesource & fsource);
287 std::string filename_;
288 std::vector< ms_fragmentationrules* > rules_;
289 std::vector< std::string > comments_;
Settings required to make an HTTP connection to a Mascot server.
Definition: ms_connection_settings.hpp:54
The class is used as a base for property-containing classes, such as ms_mascotoptions.
Definition: ms_customproperty.hpp:91
This class is used as a base class for several Mascot Parser classes.
Definition: ms_errors.hpp:696
All errors are collected in an instance of this class.
Definition: ms_errors.hpp:37
This class encapsulates a single entry (an instrument) from a fragmentation_rules file.
Definition: ms_fragmentationrules.hpp:56
FRAG_SERIES_TYPE
Definitions for ID-constants for series used.
Definition: ms_fragmentationrules.hpp:68
This class encapsulates a complete fragmentation_rules file.
Definition: ms_fragmentationrules.hpp:209