wraptandemresults.h
Go to the documentation of this file.
/**
* \file pappsomspp/processing/tandemwrapper/wraptandemresults.h
* \date 13/11/2021
* \author Olivier Langella
* \brief rewrites tandem xml output 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"
namespace pappso
{
/**
* @todo write docs
*/
class WrapTandemResults : public XmlStreamReaderInterface
{
public:
/**
* Default constructor
*/
WrapTandemResults(const QString &final_tandem_output,
const QString &original_msdata_file_name);
/**
* Destructor
*/
virtual ~WrapTandemResults();
void setInputParameters(const QString &label_name_attribute,
const QString &input_value);
protected:
virtual void readStream() override;
private:
void process_group_note();
private:
QFile m_destinationTandemOutputFile;
QXmlStreamWriter m_writerXmlTandemOutput;
QString m_originalMsDataFileName;
std::map<QString, QString> m_mapTandemInputParameters;
};
} // namespace pappso
pappso::WrapTandemResults
Definition: wraptandemresults.h:43
pappso::WrapTandemResults::process_group_note
void process_group_note()
Definition: wraptandemresults.cpp:67
pappso::WrapTandemResults::m_destinationTandemOutputFile
QFile m_destinationTandemOutputFile
Definition: wraptandemresults.h:67
pappso::WrapTandemResults::m_writerXmlTandemOutput
QXmlStreamWriter m_writerXmlTandemOutput
Definition: wraptandemresults.h:68
pappso::WrapTandemResults::~WrapTandemResults
virtual ~WrapTandemResults()
Definition: wraptandemresults.cpp:54
pappso::WrapTandemResults::WrapTandemResults
WrapTandemResults(const QString &final_tandem_output, const QString &original_msdata_file_name)
Definition: wraptandemresults.cpp:36
pappso::WrapTandemResults::m_originalMsDataFileName
QString m_originalMsDataFileName
Definition: wraptandemresults.h:69
pappso::WrapTandemResults::readStream
virtual void readStream() override
Definition: wraptandemresults.cpp:133
pappso::WrapTandemResults::m_mapTandemInputParameters
std::map< QString, QString > m_mapTandemInputParameters
Definition: wraptandemresults.h:71
pappso::WrapTandemResults::setInputParameters
void setInputParameters(const QString &label_name_attribute, const QString &input_value)
Definition: wraptandemresults.cpp:59
pappso::XmlStreamReaderInterface
convenient xml reader helper
Definition: xmlstreamreaderinterface.h:41
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition: aa.cpp:39