libpappsomspp
Library for mass spectrometry
wraptandemresults.h
Go to the documentation of this file.
1 /**
2  * \file pappsomspp/processing/tandemwrapper/wraptandemresults.h
3  * \date 13/11/2021
4  * \author Olivier Langella
5  * \brief rewrites tandem xml output file with temporary files
6  */
7 
8 /*******************************************************************************
9  * Copyright (c) 2021 Olivier Langella <Olivier.Langella@u-psud.fr>.
10  *
11  * This file is part of PAPPSOms-tools.
12  *
13  * PAPPSOms-tools 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-tools 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-tools. If not, see <http://www.gnu.org/licenses/>.
25  *
26  ******************************************************************************/
27 
28 #pragma once
29 
30 #include <QDebug>
31 #include <QFile>
32 #include "../xml/xmlstreamreaderinterface.h"
33 
34 
35 namespace pappso
36 {
37 
38 
39 /**
40  * @todo write docs
41  */
43 {
44  public:
45  /**
46  * Default constructor
47  */
48  WrapTandemResults(const QString &final_tandem_output,
49  const QString &original_msdata_file_name);
50 
51  /**
52  * Destructor
53  */
54  virtual ~WrapTandemResults();
55 
56  void setInputParameters(const QString &label_name_attribute,
57  const QString &input_value);
58 
59  protected:
60  virtual void readStream() override;
61 
62  private:
63  void process_group_note();
64 
65 
66  private:
68  QXmlStreamWriter m_writerXmlTandemOutput;
70 
71  std::map<QString, QString> m_mapTandemInputParameters;
72 };
73 } // namespace pappso
QXmlStreamWriter m_writerXmlTandemOutput
WrapTandemResults(const QString &final_tandem_output, const QString &original_msdata_file_name)
virtual void readStream() override
std::map< QString, QString > m_mapTandemInputParameters
void setInputParameters(const QString &label_name_attribute, const QString &input_value)
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition: aa.cpp:39