19#ifndef MS_DATABASEOPTIONS_HPP
20#define MS_DATABASEOPTIONS_HPP
27namespace matrix_science {
71 NUM_THREADS_AUTO_DETECT = -1
95 bool isActive()
const;
98 void setActive(
const bool value);
101 std::string getName()
const;
104 void setName(
const char* name);
107 std::string getPath()
const;
110 void setPath(
const char* path);
113 int getDBType()
const;
116 void setDBType(
const int type);
119 bool isMemoryMapFiles()
const;
122 void setMemoryMapFiles(
const bool flag);
125 int getNumberOfThreads()
const;
128 void setNumberOfThreads(
const int number);
131 bool isLockMemory()
const;
134 void setLockMemory(
const bool flag);
137 bool isLocalRefFile()
const;
140 void setLocalRefFile(
const bool flag);
143 int getAccessionParseRuleIndex()
const;
146 void setAccessionParseRuleIndex(
const int index);
149 int getDescriptionParseRuleIndex()
const;
152 void setDescriptionParseRuleIndex(
const int index);
155 int getAccessionRefParseRuleIndex()
const;
158 void setAccessionRefParseRuleIndex(
const int index);
161 int getTaxonomyParseRuleIndex()
const;
164 void setTaxonomyParseRuleIndex(
const int index);
167 bool isBlastIndexFiles()
const;
170 void setBlastIndexFiles(
const bool flag);
173 void setPreceedingComments(
const std::string &str);
176 const std::string& getPreceedingComments()
const;
179 std::string getStringValue()
const;
188 bool __useBlastIndexFiles_;
192 int accessionParseRule_;
193 int descriptionParseRule_;
194 int accessionRefParseRule_;
195 int taxonomyParseRule_;
196 std::string comment_;
238 void defaultValues();
248 bool isSectionAvailable()
const;
251 void setSectionAvailable(
const bool value);
254 int getNumberOfDatabases()
const;
260 void clearDatabases();
266 int findDatabase(
const char* dbName,
const bool searchInactive =
false)
const;
275 bool deleteDatabaseByNumber(
const int num);
278 bool deleteDatabaseByName(
const char* name);
280#ifdef SUPPRESS_MS_CUSTOMPROPERTY_INHERITANCE
281#include "suppress_ms_customproperty.hpp"
286 void setFollowingComments(
const std::string &str);
287 const std::string& getFollowingComments()
const;
289 bool sectionAvailable_;
290 std::vector< ms_databaseoptions* > dbases_;
291 std::string followingComments_;
The class is used as a base for property-containing classes, such as ms_mascotoptions.
Definition: ms_customproperty.hpp:91
An instance of this class represents a single database definition from the Databases section of masco...
Definition: ms_databaseoptions.hpp:59
An instance of this class represents the Databases section of mascot.dat.
Definition: ms_databaseoptions.hpp:225
Encapsulates the mascot.dat file that contains the most important parameters.
Definition: ms_datfile.hpp:47
DATABASE_TYPE
Definition: ms_databaseoptions.hpp:39
@ SLREF
FASTA reference database of a Spectral Library.
Definition: ms_databaseoptions.hpp:43
@ SL
Spectral Library (MSP file)
Definition: ms_databaseoptions.hpp:42
@ NA
NA sequence database (FASTA file, nucleic acid)
Definition: ms_databaseoptions.hpp:41
@ AA
Protein sequence database (FASTA file, amino acid)
Definition: ms_databaseoptions.hpp:40