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 $ #
00013 #       $Date: 2016/09/05 14:08:38 $ #
00014 #   $Revision: 1.3 $ #
00015 # $NoKeywords::                                                            $ #
00016 ##############################################################################
00017 */
00018 
00019 #ifndef MS_LIBRARYOPTIONS_HPP
00020 #define MS_LIBRARYOPTIONS_HPP
00021 
00022 #ifdef _WIN32
00023 #pragma warning(disable:4251)   // Don't want all classes to be exported
00024 #pragma warning(disable:4786)   // Debug symbols too long
00025 #   ifndef _MATRIX_USE_STATIC_LIB
00026 #       ifdef MS_MASCOTRESFILE_EXPORTS
00027 #           define MS_MASCOTRESFILE_API __declspec(dllexport)
00028 #       else
00029 #           define MS_MASCOTRESFILE_API __declspec(dllimport)
00030 #       endif
00031 #   else
00032 #       define MS_MASCOTRESFILE_API
00033 #   endif
00034 #else
00035 #   define MS_MASCOTRESFILE_API
00036 #endif
00037 
00038 
00039 #include <string>
00040 #include <map>
00041 
00042 namespace matrix_science {
00049 
00050 
00067     class MS_MASCOTRESFILE_API ms_libraryoptions : public ms_customproperty
00068     {
00069         friend class ms_datfile;
00070     public:
00072         ms_libraryoptions();
00073 
00075         ms_libraryoptions(const ms_libraryoptions& src);
00076 
00078         ~ms_libraryoptions();
00079         
00081         void defaultValues();
00082 
00084         void copyFrom(const ms_libraryoptions* right);
00085 
00086 #ifndef SWIG
00087 
00088         ms_libraryoptions& operator=(const ms_libraryoptions& right);
00089 #endif
00090 
00091 
00095         bool isSectionAvailable() const;
00096 
00098         void setSectionAvailable(const bool value);
00099 
00101         double getToleranceInPPM(const char * spectralLibraryName) const;
00102 
00104         void setToleranceInPPM(const char * spectralLibraryName, double tolerance);
00105 
00107         double getToleranceInDa(const char * spectralLibraryName) const;
00108 
00110         void setToleranceInDa(const char * spectralLibraryName, double tolerance);
00111 
00113         std::string getReferenceFasta(const char * spectralLibraryName) const;
00114 
00116         std::string getReferenceFastaTaxonomyTitle(const char * spectralLibraryName) const;
00117 
00119         void setReferenceFasta(const char * spectralLibraryName, const char * fastaDatabaseName, const char * taxonomyTitle);
00120 
00122         void dropSpectralLibrary(const char * spectralLibraryName);
00123 
00125         int getNumberOfLibraries() const;
00126 
00128         std::string getLibraryName(const int num) const;
00129 
00130 #ifdef SUPPRESS_MS_CUSTOMPROPERTY_INHERITANCE
00131 #include "suppress_ms_customproperty.hpp"
00132 #endif
00133 
00134     private:
00135         bool sectionAvailable_;
00136         struct sl_info_t {
00137         public:
00138             std::string referenceFastaDB;
00139             std::string referenceFastaTaxonomyTitle;
00140             double tolInPPM;
00141             double tolInDa;
00142         };
00143         typedef std::map<std::string, sl_info_t> slInfoMap_t;
00144         slInfoMap_t slInfoMap_;
00145     }; // end of config_group
00147 } // namespace matrix_science
00148 
00149 #endif // MS_LIBRARYOPTIONS_HPP
00150 
00151 /*------------------------------- End of File -------------------------------*/
Copyright © 2016 Matrix Science Ltd.  All Rights Reserved. Generated on Fri Jun 2 2017 01:44:51