libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
filterobopsimodtermaccession.cpp
Go to the documentation of this file.
1
2
/*******************************************************************************
3
* Copyright (c) 2015 Olivier Langella <Olivier.Langella@moulon.inra.fr>.
4
*
5
* This file is part of the PAPPSOms++ library.
6
*
7
* PAPPSOms++ is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* PAPPSOms++ is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
19
*
20
* Contributors:
21
* Olivier Langella <Olivier.Langella@moulon.inra.fr> - initial API and
22
*implementation
23
******************************************************************************/
24
#include "
filterobopsimodtermaccession.h
"
25
#include <QDebug>
26
27
28
namespace
pappso
29
{
30
FilterOboPsiModTermAccession::FilterOboPsiModTermAccession
(
31
OboPsiModHandlerInterface
&sink,
const
QString &accession)
32
: m_sink(sink)
33
{
34
m_accession
= accession;
35
}
36
37
FilterOboPsiModTermAccession::~FilterOboPsiModTermAccession
()
38
{
39
}
40
41
void
42
FilterOboPsiModTermAccession::setOboPsiModTerm
(
const
OboPsiModTerm
&term)
43
{
44
// qDebug() << "FilterOboPsiModTermAccession::setOboPsiModTerm term._accession
45
// " << term._accession << " == _accession " << _accession;
46
if
(term.
m_accession
==
m_accession
)
47
{
48
m_sink
.
setOboPsiModTerm
(term);
49
}
50
}
51
}
// namespace pappso
pappso::FilterOboPsiModTermAccession::m_sink
OboPsiModHandlerInterface & m_sink
Definition
filterobopsimodtermaccession.h:38
pappso::FilterOboPsiModTermAccession::setOboPsiModTerm
void setOboPsiModTerm(const OboPsiModTerm &term) override
triggered function on each obo term when parsing obo file
Definition
filterobopsimodtermaccession.cpp:42
pappso::FilterOboPsiModTermAccession::m_accession
QString m_accession
Definition
filterobopsimodtermaccession.h:37
pappso::FilterOboPsiModTermAccession::FilterOboPsiModTermAccession
FilterOboPsiModTermAccession(OboPsiModHandlerInterface &sink, const QString &accession)
Definition
filterobopsimodtermaccession.cpp:30
pappso::FilterOboPsiModTermAccession::~FilterOboPsiModTermAccession
virtual ~FilterOboPsiModTermAccession()
Definition
filterobopsimodtermaccession.cpp:37
pappso::OboPsiModHandlerInterface
Definition
obopsimodhandlerinterface.h:31
pappso::OboPsiModHandlerInterface::setOboPsiModTerm
virtual void setOboPsiModTerm(const OboPsiModTerm &term)=0
triggered function on each obo term when parsing obo file
pappso::OboPsiModTerm
Definition
obopsimodterm.h:32
pappso::OboPsiModTerm::m_accession
QString m_accession
Definition
obopsimodterm.h:44
filterobopsimodtermaccession.h
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
pappsomspp
obo
filterobopsimodtermaccession.cpp
Generated on Sat Nov 18 2023 21:44:09 for libpappsomspp by
1.9.8