libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
mzcborreaderbase.h
Go to the documentation of this file.
1
/**
2
* \file pappsomspp/core/processing/cbor/mzcbor/mzcborreaderbase.h
3
* \date 19/11/2025
4
* \author Olivier Langella
5
* \brief read mzcbor stream or file
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
#include "
pappsomspp/core/processing/cbor/cborstreamreaderinterface.h
"
31
#include "
pappsomspp/core/processing/uimonitor/uimonitorinterface.h
"
32
#include "
cvparam.h
"
33
namespace
pappso
34
{
35
namespace
cbor
36
{
37
namespace
mzcbor
38
{
39
/**
40
* @brief base class to initialize mzCBOR file parsing
41
*
42
* ensures stream read on regular file or any readable device
43
*/
44
class
PMSPP_LIB_DECL
MzcborReaderBase
:
public
CborStreamReaderInterface
45
{
46
public
:
47
/**
48
* Default constructor
49
*/
50
MzcborReaderBase
();
51
52
/**
53
* Destructor
54
*/
55
virtual
~MzcborReaderBase
();
56
57
/**
58
* @brief read mzCBOR file
59
* @param cborp file pointer
60
* @param monitor monitor read progress and messages
61
*/
62
virtual
void
readCbor(QFile *cborp,
pappso::UiMonitorInterface
&monitor);
63
64
65
/**
66
* @brief read mzCBOR from any device (memory buffer or else)
67
* @param cborp device pointer
68
* @param monitor monitor read progress and messages
69
*/
70
virtual
void
readCbor(QIODevice *cborp,
pappso::UiMonitorInterface
&monitor);
71
72
virtual
void
close();
73
74
bool
isMzcbor()
const
;
75
76
const
QStringList &getMsrunIdList()
const
;
77
78
79
protected
:
80
void
readRoot(
pappso::UiMonitorInterface
&monitor);
81
82
virtual
void
readMsrun();
83
virtual
void
readReferenceableParamGroupList();
84
85
/** @brief read the array containing cvParams to give accessions and values
86
*/
87
std::map<QString, CvParam> getCvParamsMap();
88
89
protected
:
90
bool
m_stopParsing =
false
;
91
92
private
:
93
bool
m_isMzcbor =
false
;
94
QStringList
m_msrunIdList
;
95
};
96
}
// namespace mzcbor
97
}
// namespace cbor
98
}
// namespace pappso
cborstreamreaderinterface.h
pappso::UiMonitorInterface
Definition
uimonitorinterface.h:50
pappso::cbor::CborStreamReaderInterface
base class to start a CBOR reader
Definition
cborstreamreaderinterface.h:43
pappso::cbor::mzcbor::MzcborReaderBase
base class to initialize mzCBOR file parsing
Definition
mzcborreaderbase.h:45
pappso::cbor::mzcbor::MzcborReaderBase::m_msrunIdList
QStringList m_msrunIdList
Definition
mzcborreaderbase.h:94
cvparam.h
PSI cvParam object for mzML/mzCBOR.
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition
export-import-config.h:14
pappso::Enums::MsDataFormat::mzcbor
@ mzcbor
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
mzcborreaderbase.h
Generated on Tue May 19 2026 12:52:14 for libpappsomspp by
1.9.8