Matrix Science header

ms_libraryoptions.hpp

00001 /*
00002 ##############################################################################
00003 # file: ms_parserule.hpp                                                     #
00004 # 'msparser' toolkit                                                         #
00005 # Represents LibraryOptions section of mascot.dat file                       #
00006 ##############################################################################
00007 # COPYRIGHT NOTICE                                                           #
00008 # Copyright 1998-2016 Matrix Science Limited  All Rights Reserved.           #
00009 #                                                                            #
00010 ##############################################################################
00011 #    $Archive:: /Mowse/ms_mascotresfile/include/ms_parserule.hpp           $ #
00012 #     $Author: villek@matrixscience.com $ #
00013 #       $Date: 2018-07-30 16:23:53 +0100 $ #
00014 #   $Revision: 1b450440f9c97e1e41d0fc6016a27d68951d4532 | MSPARSER_REL_2_8_1-0-gea32989045 $ #
00015 # $NoKeywords::                                                            $ #
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     }; // end of config_group
00132 } // namespace matrix_science
00133 
00134 #endif // MS_LIBRARYOPTIONS_HPP
00135 
00136 /*------------------------------- End of File -------------------------------*/

Copyright © 2022 Matrix Science Ltd.  All Rights Reserved. Generated on Thu Mar 31 2022 01:12:29