libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
filternameinterface.h
Go to the documentation of this file.
1
/**
2
* \file pappsomspp/processing/filers/filternameinterface.h
3
* \date 31/10/2020
4
* \author Olivier Langella
5
* \brief interface to allow filter object construction from strings
6
*/
7
8
/*******************************************************************************
9
* Copyright (c) 2020 Olivier Langella <Olivier.Langella@u-psud.fr>.
10
*
11
* This file is part of the PAPPSOms++ library.
12
*
13
* PAPPSOms++ is free software: you can redistribute it and/or modify
14
* it under the terms of the GNU General Public License as published by
15
* the Free Software Foundation, either version 3 of the License, or
16
* (at your option) any later version.
17
*
18
* PAPPSOms++ is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
* GNU General Public License for more details.
22
*
23
* You should have received a copy of the GNU General Public License
24
* along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
25
*
26
******************************************************************************/
27
28
#pragma once
29
30
#include <QString>
31
#include "
pappsomspp/export-import-config.h
"
32
#include "
filterinterface.h
"
33
34
35
namespace
pappso
36
{
37
38
39
/** @brief Interface that allows to build filter objects from strings
40
*/
41
class
PMSPP_LIB_DECL
FilterNameInterface
:
public
FilterInterface
42
{
43
public
:
44
virtual
QString
name
()
const
= 0;
45
virtual
QString
toString
()
const
= 0;
46
47
virtual
~FilterNameInterface
(){};
48
49
protected
:
50
/** @brief build this filter using a string
51
* @param strBuildParams a string coding the filter and its parameters
52
* "filterName|param1;param2;param3"
53
*
54
*/
55
virtual
void
buildFilterFromString
(
const
QString &strBuildParams) = 0;
56
};
57
58
59
typedef
std::shared_ptr<FilterNameInterface>
FilterNameInterfaceSPtr
;
60
typedef
std::shared_ptr<const FilterNameInterface>
FilterNameInterfaceCstSPtr
;
61
62
}
// namespace pappso
pappso::FilterInterface
generic interface to apply a filter on a trace
Definition
filterinterface.h:40
pappso::FilterNameInterface
Interface that allows to build filter objects from strings.
Definition
filternameinterface.h:42
pappso::FilterNameInterface::~FilterNameInterface
virtual ~FilterNameInterface()
Definition
filternameinterface.h:47
pappso::FilterNameInterface::toString
virtual QString toString() const =0
pappso::FilterNameInterface::name
virtual QString name() const =0
pappso::FilterNameInterface::buildFilterFromString
virtual void buildFilterFromString(const QString &strBuildParams)=0
build this filter using a string
export-import-config.h
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition
export-import-config.h:14
filterinterface.h
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
pappso::FilterNameInterfaceSPtr
std::shared_ptr< FilterNameInterface > FilterNameInterfaceSPtr
Definition
filternameinterface.h:59
pappso::FilterNameInterfaceCstSPtr
std::shared_ptr< const FilterNameInterface > FilterNameInterfaceCstSPtr
Definition
filternameinterface.h:60
pappsomspp
core
processing
filters
filternameinterface.h
Generated on
for libpappsomspp by
1.17.0