Loading...
Searching...
No Matches
wraptandeminput.h
Go to the documentation of this file.
/**
* \file pappsomspp/processing/tandemwrapper/wraptandeminput.h
* \date 13/11/2021
* \author Olivier Langella
* \brief rewrites tandem xml input file with temporary files
*/
/*******************************************************************************
* Copyright (c) 2021 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 <QFile>
#include "../xml/xmlstreamreaderinterface.h"
/**
* @todo write docs
*/
namespace pappso
{
/**
* @todo write docs
*/
class WrapTandemInput : public XmlStreamReaderInterface
{
public:
/**
* Default constructor
*/
WrapTandemInput(const QString &destinationMzXmlFile,
const QString &destinationTandemInputFile,
const QString &destinationTandemOutputFile);
/**
* Destructor
*/
virtual ~WrapTandemInput();
const QString &getOriginalMsDataFileName() const;
const QString &getOriginalTandemOutputFileName() const;
const QString &getOriginalTandemPresetFileName() const;
protected:
virtual void readStream() override;
private:
QString m_destinationMzXmlFileName;
QString m_originMzDataFileName;
QString m_destinationTandemInputFileName;
QString m_originTandemPresetFileName;
QString m_originTandemOutpuFileName;
QString m_destinationTandemOutputFileName;
QFile m_destinationTandemInputFile;
QXmlStreamWriter m_writerXmlTandemInput;
};
} // namespace pappso
pappso::WrapTandemInput::m_writerXmlTandemInput
QXmlStreamWriter m_writerXmlTandemInput
Definition wraptandeminput.h:75
pappso::WrapTandemInput::m_originMzDataFileName
QString m_originMzDataFileName
Definition wraptandeminput.h:69
pappso::WrapTandemInput::m_destinationTandemInputFile
QFile m_destinationTandemInputFile
Definition wraptandeminput.h:74
pappso::WrapTandemInput::readStream
virtual void readStream() override
Definition wraptandeminput.cpp:69
pappso::WrapTandemInput::WrapTandemInput
WrapTandemInput(const QString &destinationMzXmlFile, const QString &destinationTandemInputFile, const QString &destinationTandemOutputFile)
Definition wraptandeminput.cpp:36
pappso::WrapTandemInput::getOriginalTandemOutputFileName
const QString & getOriginalTandemOutputFileName() const
Definition wraptandeminput.cpp:137
pappso::WrapTandemInput::~WrapTandemInput
virtual ~WrapTandemInput()
Definition wraptandeminput.cpp:62
pappso::WrapTandemInput::m_originTandemPresetFileName
QString m_originTandemPresetFileName
Definition wraptandeminput.h:71
pappso::WrapTandemInput::m_originTandemOutpuFileName
QString m_originTandemOutpuFileName
Definition wraptandeminput.h:72
pappso::WrapTandemInput::m_destinationTandemInputFileName
QString m_destinationTandemInputFileName
Definition wraptandeminput.h:70
pappso::WrapTandemInput::m_destinationTandemOutputFileName
QString m_destinationTandemOutputFileName
Definition wraptandeminput.h:73
pappso::WrapTandemInput::getOriginalTandemPresetFileName
const QString & getOriginalTandemPresetFileName() const
Definition wraptandeminput.cpp:143
pappso::WrapTandemInput::getOriginalMsDataFileName
const QString & getOriginalMsDataFileName() const
Definition wraptandeminput.cpp:131
pappso::WrapTandemInput::m_destinationMzXmlFileName
QString m_destinationMzXmlFileName
Definition wraptandeminput.h:68
pappso::XmlStreamReaderInterface::XmlStreamReaderInterface
XmlStreamReaderInterface()
Definition xmlstreamreaderinterface.cpp:37
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39
xmlstreamreaderinterface.h