libpappsomspp
Library for mass spectrometry
obopsimodterm.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright (c) 2015 Olivier Langella <Olivier.Langella@moulon.inra.fr>.
3  *
4  * This file is part of the PAPPSOms++ library.
5  *
6  * PAPPSOms++ is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * PAPPSOms++ is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
18  *
19  ******************************************************************************/
20 
21 #pragma once
22 
23 #include <QRegularExpression>
24 #include "../exportinmportconfig.h"
25 
26 namespace pappso
27 {
28 
29 class OboPsiMod;
30 
32 {
33  friend OboPsiMod;
34 
35  public:
36  OboPsiModTerm();
37  ~OboPsiModTerm();
39  OboPsiModTerm &operator=(const OboPsiModTerm &);
40 
41  bool isValid() const;
42 
43  public:
44  QString m_accession;
45  QString m_name;
46  QString m_definition;
47  QString m_psiModLabel;
48  QString m_psiMsLabel;
49  QString m_diffFormula;
50  QString m_origin;
51 
52  double m_diffMono;
53 
54  private:
55  void parseLine(const QString &line);
56  void clearTerm();
57 
58  static QRegularExpression m_firstParse;
59  static QRegularExpression m_findExactPsiModLabel;
60  static QRegularExpression m_findRelatedPsiMsLabel;
61 };
62 
63 } // namespace pappso
64 
65 
66 
67 extern int oboPsiModTermMetaTypeId;
static QRegularExpression m_firstParse
Definition: obopsimodterm.h:58
static QRegularExpression m_findRelatedPsiMsLabel
Definition: obopsimodterm.h:60
static QRegularExpression m_findExactPsiModLabel
Definition: obopsimodterm.h:59
#define PMSPP_LIB_DECL
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition: aa.cpp:39
int oboPsiModTermMetaTypeId