27namespace matrix_science {
77 UNDEFINED_CUTTER = 0x0000,
78 NTERM_CUTTER = 0x0001,
102 bool isValid()
const;
105 bool verifyEnzyme(
ms_errs* errObj)
const;
108 std::string getTitle()
const;
111 void setTitle(
const char* str);
114 bool isSemiSpecific()
const;
117 void setSemiSpecific(
const bool value);
120 bool isIndependent()
const;
123 void setIndependent(
const bool bit);
126 int getNumberOfCutters()
const;
129 void clearAllCutters();
132 void addCutter(
const cuttertype type,
const char* cleaveAtStr,
const char* restrictStr);
138 std::string getCleave(
const int cutterNum)
const;
141 std::string getRestrict(
const int cutterNum)
const;
144 bool canCleave(
const int cutterNum,
145 const char leftResidue,
146 const char rightResidue)
const;
148#ifdef SUPPRESS_MS_CUSTOMPROPERTY_INHERITANCE
149#include "suppress_ms_customproperty.hpp"
153 void setNTerm(std::string& cleaveStr, std::string& restrictStr);
154 void setCTerm(std::string& cleaveStr, std::string& restrictStr);
155 std::string::size_type prepareNextNTerm();
156 std::string::size_type prepareNextCTerm();
157 void setIndependentInternal(
const bool bit);
158 void setSemiSpecificInternal(
const bool bit);
159 void makeCustomPropIndexed();
167 typedef std::vector< bool* > residue_flags_vector;
169 residue_flags_vector cleavageNTerm;
170 residue_flags_vector cleavageCTerm;
171 residue_flags_vector restrictNTerm;
172 residue_flags_vector restrictCTerm;
209 void defaultValues();
219 void setFileName(
const char* filename);
222 std::string getFileName()
const;
234 void read_buffer(
const char* buffer);
240 int getNumberOfEnzymes()
const;
246 void appendEnzyme(
const ms_enzyme* item);
249 const ms_enzyme* getEnzymeByNumber(
const int num)
const;
252 const ms_enzyme* getEnzymeByName(
const char* name)
const;
255 bool isNoneFound()
const;
258 bool updateEnzymeByNumber(
const int num,
const ms_enzyme enzyme);
261 bool updateEnzymeByName(
const char* name,
const ms_enzyme enzyme);
264 bool deleteEnzymeByNumber(
const int num);
267 bool deleteEnzymeByName(
const char* name);
272 void read_internal(ms_filesource *pFSource);
274 std::string filename_;
275 std::vector<ms_enzyme*> entries_;
276 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
Represent a single entry in the enzymes file.
Definition: ms_enzyme.hpp:67
cuttertype
Definitions for types of cutter.
Definition: ms_enzyme.hpp:76
Reads and parses the enzymes file that contains multiple enzyme definitions.
Definition: ms_enzyme.hpp:194
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