00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef MS_LIBRARYOPTIONS_HPP
00020 #define MS_LIBRARYOPTIONS_HPP
00021
00022
00023
00024 #include <string>
00025 #include <map>
00026
00027 namespace matrix_science {
00034
00035
00052 class MS_MASCOTRESFILE_API ms_libraryoptions : public ms_customproperty
00053 {
00054 friend class ms_datfile;
00055 public:
00057 ms_libraryoptions();
00058
00060 ms_libraryoptions(const ms_libraryoptions& src);
00061
00063 ~ms_libraryoptions();
00064
00066 void defaultValues();
00067
00069 void copyFrom(const ms_libraryoptions* right);
00070
00071 #ifndef SWIG
00072
00073 ms_libraryoptions& operator=(const ms_libraryoptions& right);
00074 #endif
00075
00076
00080 bool isSectionAvailable() const;
00081
00083 void setSectionAvailable(const bool value);
00084
00086 double getToleranceInPPM(const char * spectralLibraryName) const;
00087
00089 void setToleranceInPPM(const char * spectralLibraryName, double tolerance);
00090
00092 double getToleranceInDa(const char * spectralLibraryName) const;
00093
00095 void setToleranceInDa(const char * spectralLibraryName, double tolerance);
00096
00098 std::string getReferenceFasta(const char * spectralLibraryName) const;
00099
00101 std::string getReferenceFastaTaxonomyTitle(const char * spectralLibraryName) const;
00102
00104 void setReferenceFasta(const char * spectralLibraryName, const char * fastaDatabaseName, const char * taxonomyTitle);
00105
00107 void dropSpectralLibrary(const char * spectralLibraryName);
00108
00110 int getNumberOfLibraries() const;
00111
00113 std::string getLibraryName(const int num) const;
00114
00115 #ifdef SUPPRESS_MS_CUSTOMPROPERTY_INHERITANCE
00116 #include "suppress_ms_customproperty.hpp"
00117 #endif
00118
00119 private:
00120 bool sectionAvailable_;
00121 struct sl_info_t {
00122 public:
00123 std::string referenceFastaDB;
00124 std::string referenceFastaTaxonomyTitle;
00125 double tolInPPM;
00126 double tolInDa;
00127 };
00128 typedef std::map<std::string, sl_info_t> slInfoMap_t;
00129 slInfoMap_t slInfoMap_;
00130 };
00132 }
00133
00134 #endif // MS_LIBRARYOPTIONS_HPP
00135
00136