19#ifndef MS_PARSERULE_HPP
20#define MS_PARSERULE_HPP
26namespace matrix_science {
64 bool isAvailable()
const;
67 void setAvailable(
const bool value);
70 std::string getRuleStr()
const;
73 void setRuleStr(
const char* str);
80 void compileAccessionRegex(
ms_errs* pErr);
81 std::string regexStr(
const char * input,
ms_errs * pErr,
bool reportErrorIfNoMatch)
const;
115 void defaultValues();
125 bool isSectionAvailable()
const;
128 void setSectionAvailable(
const bool value);
131 int getNumberOfParseRules()
const;
134 void clearParseRules();
137 const ms_parserule* getParseRule(
const int index)
const;
140 void setParseRule(
const int index,
const ms_parserule* rule);
143 void dropParseRule(
const int index);
145 int findOrAddParseRule(
const char * rule,
bool & added);
147#ifdef SUPPRESS_MS_CUSTOMPROPERTY_INHERITANCE
148#include "suppress_ms_customproperty.hpp"
152 bool sectionAvailable_;
The class is used as a base for property-containing classes, such as ms_mascotoptions.
Definition: ms_customproperty.hpp:91
Encapsulates the mascot.dat file that contains the most important parameters.
Definition: ms_datfile.hpp:47
All errors are collected in an instance of this class.
Definition: ms_errors.hpp:37
Represents the PARSE section of mascot.dat.
Definition: ms_parserule.hpp:102
Represents a single regular expression parsing rule.
Definition: ms_parserule.hpp:38
This class is used to encapsulate a complete NIST .msp, SpectraST .sptxt or X!Hunter ASL MGF file.
Definition: ms_spectral_lib_file.hpp:66