libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
fastahandlerinterface.h
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
25
#pragma once
26
#include <QString>
27
#include "
../exportinmportconfig.h
"
28
29
namespace
pappso
30
{
31
class
FastaHandlerInterface
32
{
33
public
:
34
virtual
void
setSequence
(
const
QString &description,
35
const
QString &sequence) = 0;
36
};
37
38
39
class
FastaSeqHandler
:
public
pappso::FastaHandlerInterface
40
{
41
public
:
42
const
QString &
43
getDescription
()
const
44
{
45
return
description
;
46
};
47
const
QString &
48
getSequence
()
const
49
{
50
return
sequence
;
51
};
52
void
53
setSequence
(
const
QString &description_in,
54
const
QString &sequence_in)
override
55
{
56
description
= description_in;
57
sequence
= sequence_in;
58
};
59
60
private
:
61
QString
description
;
62
QString
sequence
;
63
};
64
}
// namespace pappso
pappso::FastaHandlerInterface
Definition
fastahandlerinterface.h:32
pappso::FastaHandlerInterface::setSequence
virtual void setSequence(const QString &description, const QString &sequence)=0
pappso::FastaSeqHandler
Definition
fastahandlerinterface.h:40
pappso::FastaSeqHandler::description
QString description
Definition
fastahandlerinterface.h:61
pappso::FastaSeqHandler::getSequence
const QString & getSequence() const
Definition
fastahandlerinterface.h:48
pappso::FastaSeqHandler::setSequence
void setSequence(const QString &description_in, const QString &sequence_in) override
Definition
fastahandlerinterface.h:53
pappso::FastaSeqHandler::getDescription
const QString & getDescription() const
Definition
fastahandlerinterface.h:43
pappso::FastaSeqHandler::sequence
QString sequence
Definition
fastahandlerinterface.h:62
exportinmportconfig.h
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
pappsomspp
fasta
fastahandlerinterface.h
Generated on Fri Jul 19 2024 14:40:15 for libpappsomspp by
1.12.0