Loading...
Searching...
No Matches
xtandempresetreader.h
Go to the documentation of this file.
/**
* \file pappsomspp/processing/tandemwrapper/xtandempresetreader.h
* \date 06/02/2020
* \author Olivier Langella
* \brief read tandem preset file to get centroid parameters and number of
* threads
*/
/*******************************************************************************
* Copyright (c) 2020 Olivier Langella <Olivier.Langella@u-psud.fr>.
*
* This file is part of PAPPSOms-tools.
*
* PAPPSOms-tools 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-tools 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-tools. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#pragma once
#include <QDebug>
#include "../../types.h"
#include "../xml/xmlstreamreaderinterface.h"
/**
* @todo write docs
*/
namespace pappso
{
class XtandemPresetReader : public XmlStreamReaderInterface
{
public:
/**
* Default constructor
*/
XtandemPresetReader();
/**
* Destructor
*/
virtual ~XtandemPresetReader();
int getNumberOfThreads() const;
const QString getMs2FiltersOptions() const;
int getCountNote() const;
protected:
virtual void readStream() override;
private:
void read_note();
private:
int m_countNote = -1;
int m_threads = -1;
Enums::PrecisionUnit m_ms2precisionUnit = Enums::PrecisionUnit::dalton;
double m_ms2precisionValue = 0;
};
} // namespace pappso
pappso::XmlStreamReaderInterface::XmlStreamReaderInterface
XmlStreamReaderInterface()
Definition xmlstreamreaderinterface.cpp:37
pappso::XtandemPresetReader::m_threads
int m_threads
Definition xtandempresetreader.h:64
pappso::XtandemPresetReader::m_countNote
int m_countNote
Definition xtandempresetreader.h:63
pappso::XtandemPresetReader::~XtandemPresetReader
virtual ~XtandemPresetReader()
Definition xtandempresetreader.cpp:39
pappso::XtandemPresetReader::m_ms2precisionUnit
Enums::PrecisionUnit m_ms2precisionUnit
Definition xtandempresetreader.h:66
pappso::XtandemPresetReader::getMs2FiltersOptions
const QString getMs2FiltersOptions() const
Definition xtandempresetreader.cpp:110
pappso::XtandemPresetReader::m_ms2precisionValue
double m_ms2precisionValue
Definition xtandempresetreader.h:67
pappso::XtandemPresetReader::getCountNote
int getCountNote() const
Definition xtandempresetreader.cpp:161
pappso::XtandemPresetReader::getNumberOfThreads
int getNumberOfThreads() const
Definition xtandempresetreader.cpp:103
pappso::XtandemPresetReader::readStream
virtual void readStream() override
Definition xtandempresetreader.cpp:128
pappso::XtandemPresetReader::XtandemPresetReader
XtandemPresetReader()
Definition xtandempresetreader.cpp:35
pappso::XtandemPresetReader::read_note
void read_note()
Definition xtandempresetreader.cpp:45
pappso::Enums::PrecisionUnit
PrecisionUnit
Definition types.h:96
pappso::Enums::PrecisionUnit::dalton
@ dalton
Definition types.h:98
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39
types.h
xmlstreamreaderinterface.h