libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
converttomzml.h
Go to the documentation of this file.
1/**
2 * \file pappsomspp/processing/cbor/mzcbor/converttomzml.h
3 * \date 30/11/2025
4 * \author Olivier Langella
5 * \brief convert mzcbor to mzML
6 */
7
8/*******************************************************************************
9 * Copyright (c) 2025 Olivier Langella <Olivier.Langella@universite-paris-saclay.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
29#pragma once
30
33#include <QXmlStreamWriter>
34
35
37
38namespace pappso
39{
40namespace cbor
41{
42namespace mzcbor
43{
44/**
45 * @todo write docs
46 */
48{
49 public:
50 /**
51 * Default constructor
52 */
53 ConvertToMzml(QXmlStreamWriter *p_writer);
54 /**
55 * Destructor
56 */
57 virtual ~ConvertToMzml();
58
59
60 virtual void readCbor(QFile *cborp, pappso::UiMonitorInterface &monitor);
61 virtual void readCbor(QIODevice *cborp, pappso::UiMonitorInterface &monitor);
62
63 virtual void close();
64
65 protected:
67
68 void writeElementInMzml(const QString & name,pappso::UiMonitorInterface &monitor);
69
70
71 private:
72 QXmlStreamWriter *mp_writer;
73 bool m_isMzcbor = false;
74};
75} // namespace mzcbor
76} // namespace cbor
77} // namespace pappso
ConvertToMzml(QXmlStreamWriter *p_writer)
virtual void readCbor(QFile *cborp, pappso::UiMonitorInterface &monitor)
virtual void close()
convenient function to clean pointer before leaving
void writeElementInMzml(const QString &name, pappso::UiMonitorInterface &monitor)
void readRoot(pappso::UiMonitorInterface &monitor)
#define PMSPP_LIB_DECL
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39