Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_libraryoptions.hpp
1/*
2##############################################################################
3# file: ms_parserule.hpp #
4# 'msparser' toolkit #
5# Represents LibraryOptions section of mascot.dat file #
6##############################################################################
7# COPYRIGHT NOTICE #
8# Copyright 1998-2016 Matrix Science Limited All Rights Reserved. #
9# #
10##############################################################################
11# $Archive:: /Mowse/ms_mascotresfile/include/ms_parserule.hpp $ #
12# $Author: villek@matrixscience.com $ #
13# $Date: 2018-07-30 16:23:53 +0100 $ #
14# $Revision: 1b450440f9c97e1e41d0fc6016a27d68951d4532 | MSPARSER_REL_3_0_0-2024-09-24-0-g93ebaeb4f4 $ #
15# $NoKeywords:: $ #
16##############################################################################
17*/
18
19#ifndef MS_LIBRARYOPTIONS_HPP
20#define MS_LIBRARYOPTIONS_HPP
21
22
23
24#include <string>
25#include <map>
26
27namespace matrix_science {
35
52 class MS_MASCOTRESFILE_API ms_libraryoptions : public ms_customproperty
53 {
54 friend class ms_datfile;
55 public:
58
61
64
66 void defaultValues();
67
69 void copyFrom(const ms_libraryoptions* right);
70
71#ifndef SWIG
73 ms_libraryoptions& operator=(const ms_libraryoptions& right);
74#endif
76
80 bool isSectionAvailable() const;
81
83 void setSectionAvailable(const bool value);
84
86 double getToleranceInPPM(const char * spectralLibraryName) const;
87
89 void setToleranceInPPM(const char * spectralLibraryName, double tolerance);
90
92 double getToleranceInDa(const char * spectralLibraryName) const;
93
95 void setToleranceInDa(const char * spectralLibraryName, double tolerance);
96
98 std::string getReferenceFasta(const char * spectralLibraryName) const;
99
101 std::string getReferenceFastaTaxonomyTitle(const char * spectralLibraryName) const;
102
104 void setReferenceFasta(const char * spectralLibraryName, const char * fastaDatabaseName, const char * taxonomyTitle);
105
107 void dropSpectralLibrary(const char * spectralLibraryName);
108
110 int getNumberOfLibraries() const;
111
113 std::string getLibraryName(const int num) const;
114
115#ifdef SUPPRESS_MS_CUSTOMPROPERTY_INHERITANCE
116#include "suppress_ms_customproperty.hpp"
117#endif
118
119 private:
120 bool sectionAvailable_;
121 struct sl_info_t {
122 public:
123 std::string referenceFastaDB;
124 std::string referenceFastaTaxonomyTitle;
125 double tolInPPM;
126 double tolInDa;
127 };
128 typedef std::map<std::string, sl_info_t> slInfoMap_t;
129 slInfoMap_t slInfoMap_;
130 }; // end of config_group
132} // namespace matrix_science
133
134#endif // MS_LIBRARYOPTIONS_HPP
135
136/*------------------------------- End of File -------------------------------*/
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
Represents the LibraryOptions section of mascot.dat.
Definition: ms_libraryoptions.hpp:53