27namespace matrix_science {
69 SEQDB_INSTALL_SHOULD_QUERY_USER = 0x0000FFFF,
70 SEQDB_INSTALL_CUSTOMISED = 0x00000001,
71 SEQDB_INSTALL_INACTIVE = 0x00000002,
72 SEQDB_INSTALL_INVALID_CONFIG = 0x00000004,
73 SEQDB_INSTALL_EXISTING_LARGER = 0x00000010,
76 SEQDB_INSTALL_INVALID_DBNAME = 0x00000000,
79 SEQDB_INSTALL_MUST_UPDATE_CFG = 0x000F000F,
80 SEQDB_INSTALL_MISSING_CONFIG = 0x00010000,
81 SEQDB_INSTALL_OLD_RULES = 0x00020000,
82 SEQDB_INSTALL_WRONG_WILDCARD = 0x00040000,
85 SEQDB_INSTALL_CURRENT_RULES = 0x01000000
94 IFLG_UPDATETAXONOMY = 0x00000001,
95 IFLG_UPDATEPARSERULES = 0x00000002,
96 IFLG_UPDATESWISSPROT = 0x00000004,
97 IFLG_UPDATECLUSTER = 0x00000008,
98 IFLG_UPDATEESTTAX = 0x00000010,
99 IFLG_ADDMISSINGOPTIONS = 0x00000020,
100 IFLG_ADDREPORTAUTO = 0x00000040,
101 IFLG_UPDATEAPACHEFORKOPT = 0x00000080,
102 IFLG_ADDPERCOLATOROPT = 0x00000100,
103 IFLG_UPDATENCBIHTTPS = 0x00000200,
104 IFLG_UPDATEPRIDECONTAMINANTS = 0x00000400,
105 IFLG_UPDATEDBMANAGERPERLPATH = 0x00000800,
106 IFLG_UPDATEMSPEPSEARCHOPTS = 0x00001000,
107 IFLG_UPDATEEXECAFTERSEARCH = 0x00002000,
108 IFLG_UPDATEPERCOLATORFEATS = 0x00004000,
109 IFLG_UPDATEPROTFAMILYSWITCH = 0x00008000,
110 IFLG_UPDATEPERCOLATORUSERT = 0x00010000,
111 IFLG_UPDATESPLITNUMOFQUERIES = 0x00020000,
112 IFLG_UPDATESPLITDATAFILESIZE = 0x00040000,
113 IFLG_UPDATERESULTSCACHE = 0x00080000,
115 IFLG_DEFAULTNEWINSTALL = IFLG_UPDATECLUSTER |
116 IFLG_UPDATEAPACHEFORKOPT,
117 IFLG_DEFAULTUPGRADE = IFLG_UPDATETAXONOMY |
118 IFLG_UPDATEPARSERULES |
120 IFLG_ADDMISSINGOPTIONS |
122 IFLG_UPDATEAPACHEFORKOPT |
123 IFLG_ADDPERCOLATOROPT |
124 IFLG_UPDATEPERCOLATORFEATS |
125 IFLG_UPDATEPERCOLATORUSERT |
126 IFLG_UPDATENCBIHTTPS |
127 IFLG_UPDATEDBMANAGERPERLPATH |
128 IFLG_UPDATEMSPEPSEARCHOPTS |
129 IFLG_UPDATEEXECAFTERSEARCH |
130 IFLG_UPDATERESULTSCACHE |
131 IFLG_UPDATESPLITNUMOFQUERIES |
132 IFLG_UPDATESPLITDATAFILESIZE |
133 IFLG_UPDATEPROTFAMILYSWITCH
143 ms_datfile(
const char* filename,
const int timeoutSec = 0,
150 void defaultValues();
160 std::string getFileName()
const;
163 void setFileName(
const char* name);
174 void read_buffer(
const char * buffer);
180 bool editedByDatabaseManager()
const;
219 int getMaxTaxonomyRules()
const;
252 void setFindFileTimeout(
const int seconds);
255 int getFindFileTimeout()
const;
258 unsigned int checkSeqDBInstallRequest(
const std::string & dbName,
259 const double newFastaSize)
const;
262 bool updateForInstaller(
ms_errs & log,
263 const char * not_mascot_dat_path,
264 const char * mascot_dat_path,
265 const char * licenseFilePath,
266 const char * pathToMascot,
267 const char * mascotURL,
268 const char * sequenceDatabases,
269 const bool clusterEnable,
271 const char * NTGuestName,
272 const char * NTAdminName,
273 const unsigned int flags);
276 std::string getHeaderComments()
const;
279 void setHeaderComments(
const std::string headerComments);
282 std::string filename_;
284 int findFileTimeout_;
308 std::string headerComments_;
309 std::string footerComments_;
314 void defaultFileName();
316 void defaultTaxonomyRules();
317 void copyTaxonomyRules(
const ms_datfile* right);
319 void get_db_info(ms_filesource *f);
320 void save_db_info(
void *f);
322 void get_library_options(ms_filesource *f,
const std::string & preceedingComments);
323 void save_library_options(
void *f);
325 void get_parse_rules(ms_filesource *f,
const std::string & preceedingComments);
326 void save_parse_rules(
void *f);
328 void get_www(ms_filesource *f,
const std::string & preceedingComments);
329 void save_www(
void *f);
331 void get_taxonomy_rules(ms_filesource *f,
const char * sectionTitle,
const std::string & preceedingComments);
332 void save_taxonomy(
void *f,
const int index);
334 void get_cluster_params(ms_filesource *f,
const std::string & preceedingComments);
335 void save_cluster_params(
void *f);
337 void get_unigene_options(ms_filesource *f,
const std::string & preceedingComments);
338 void save_unigene_options(
void *f);
340 void get_processors(ms_filesource *f,
const std::string & preceedingComments);
341 void save_processors(
void *f);
343 void get_options(ms_filesource *f,
const std::string & preceedingComments);
344 void save_options(
void *f);
346 void get_cron_job_list(ms_filesource *f,
const std::string & preceedingComments);
347 void save_cron_job_list(
void *f);
349 bool get_parse_rule_plus(
const char *lineForError,
char *pSrc,
ms_parserule_plus *pRulePlus);
350 void setIamParameter();
351 void checkAndCompileParseRules();
352 bool parseStringIntoCron(
const char *szBuf,
ms_cronjob & cron);
354 int parseIntoArray(
const char * szBufCopy,
359 const char * wholeLine);
361 bool skipToEndOfSection(ms_filesource *f);
362 bool getStringExcludingQuotes(
const char *line,
char *pDst);
363 void readToEndOfLine(
const char * pSrc,
char * pDst,
int maximumLength);
365 const std::string & localPath,
366 const std::string & hostname,
367 const std::string & url);
369 void read_filesource(ms_filesource & fsource);
370 bool updateForInstallerDatabase(
ms_errs & log,
371 const std::string & dbName,
372 const std::string & defaultWildcard,
An instance of this class represents all the parameters specified in the Cluster section of mascot....
Definition: ms_clusterparams.hpp:72
Settings required to make an HTTP connection to a Mascot server.
Definition: ms_connection_settings.hpp:54
Represents a single entry from the cron section of mascot.dat.
Definition: ms_cronoptions.hpp:38
Contains parameters from the cron section of mascot.dat.
Definition: ms_cronoptions.hpp:150
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 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
SEQDB_INSTALL
Flags for checkSeqDBInstallRequest().
Definition: ms_datfile.hpp:67
WST
Web server type for the updateForInstaller() function.
Definition: ms_datfile.hpp:55
INST_FLAGS
Flags for the updateForInstaller() function.
Definition: ms_datfile.hpp:93
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
Represents the LibraryOptions section of mascot.dat.
Definition: ms_libraryoptions.hpp:53
An instance of this class contains configuration files paths (except for mascot.dat).
Definition: ms_mascotfiles.hpp:53
An instance of this class represents all the parameters specified in the Options section of mascot....
Definition: ms_mascotoptions.hpp:91
Represents the PARSE section of mascot.dat.
Definition: ms_parserule.hpp:102
Represents regular expression parse rule plus some additional parameters.
Definition: ms_taxonomyrules.hpp:153
An instance of this class represents all the parameters specified in the Processors section of mascot...
Definition: ms_processoroptions.hpp:109
This class represents a single Taxonomy_XXX section in mascot.dat.
Definition: ms_taxonomyrules.hpp:247
An instance of this class represents all the parameters specified in UniGene section of mascot....
Definition: ms_unigeneoptions.hpp:59
Represents the whole WWW section.
Definition: ms_wwwoptions.hpp:157