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
31
#include "
pappsomspp/core/processing/uimonitor/uimonitorinterface.h
"
32
#include "
pappsomspp/core/processing/cbor/cborstreamreaderinterface.h
"
33
#include <QXmlStreamWriter>
34
35
36
#include "
pappsomspp/export-import-config.h
"
37
38
namespace
pappso
39
{
40
namespace
cbor
41
{
42
namespace
mzcbor
43
{
44
/**
45
* @todo write docs
46
*/
47
class
PMSPP_LIB_DECL
ConvertToMzml
:
public
CborStreamReaderInterface
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
:
66
void
readRoot
(
pappso::UiMonitorInterface
&monitor);
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
cborstreamreaderinterface.h
pappso::UiMonitorInterface
Definition
uimonitorinterface.h:50
pappso::cbor::CborStreamReaderInterface::CborStreamReaderInterface
CborStreamReaderInterface()
Definition
cborstreamreaderinterface.cpp:30
pappso::cbor::mzcbor::ConvertToMzml::ConvertToMzml
ConvertToMzml(QXmlStreamWriter *p_writer)
Definition
converttomzml.cpp:38
pappso::cbor::mzcbor::ConvertToMzml::m_isMzcbor
bool m_isMzcbor
Definition
converttomzml.h:73
pappso::cbor::mzcbor::ConvertToMzml::readCbor
virtual void readCbor(QFile *cborp, pappso::UiMonitorInterface &monitor)
Definition
converttomzml.cpp:52
pappso::cbor::mzcbor::ConvertToMzml::close
virtual void close()
Definition
converttomzml.cpp:47
pappso::cbor::mzcbor::ConvertToMzml::mp_writer
QXmlStreamWriter * mp_writer
Definition
converttomzml.h:72
pappso::cbor::mzcbor::ConvertToMzml::writeElementInMzml
void writeElementInMzml(const QString &name, pappso::UiMonitorInterface &monitor)
Definition
converttomzml.cpp:146
pappso::cbor::mzcbor::ConvertToMzml::readRoot
void readRoot(pappso::UiMonitorInterface &monitor)
Definition
converttomzml.cpp:81
export-import-config.h
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition
export-import-config.h:14
pappso::cbor::mzcbor
Definition
binarydataarray.h:41
pappso::cbor
Definition
cborstreamreader.cpp:35
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
uimonitorinterface.h
pappsomspp
core
processing
cbor
mzcbor
converttomzml.h
Generated on
for libpappsomspp by
1.15.0