filterobopsimodtermaccession.cpp
Go to the documentation of this file.
/*******************************************************************************
* Copyright (c) 2015 Olivier Langella <Olivier.Langella@moulon.inra.fr>.
*
* This file is part of the PAPPSOms++ library.
*
* PAPPSOms++ is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PAPPSOms++ is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
*
* Contributors:
* Olivier Langella <Olivier.Langella@moulon.inra.fr> - initial API and
*implementation
******************************************************************************/
#include "filterobopsimodtermaccession.h"
#include <QDebug>
namespace pappso
{
FilterOboPsiModTermAccession::FilterOboPsiModTermAccession(
OboPsiModHandlerInterface &sink, const QString &accession)
: m_sink(sink)
{
m_accession = accession;
}
FilterOboPsiModTermAccession::~FilterOboPsiModTermAccession()
{
}
void
FilterOboPsiModTermAccession::setOboPsiModTerm(const OboPsiModTerm &term)
{
// qDebug() << "FilterOboPsiModTermAccession::setOboPsiModTerm term._accession
// " << term._accession << " == _accession " << _accession;
if(term.m_accession == m_accession)
{
m_sink.setOboPsiModTerm(term);
}
}
} // namespace pappso
pappso::FilterOboPsiModTermAccession::m_sink
OboPsiModHandlerInterface & m_sink
Definition: filterobopsimodtermaccession.h:39
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:38
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