libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
qcborspectrum.h
Go to the documentation of this file.
1
/**
2
* \file pappsomspp/core/processing/cbor/mzcbor/copyreplace/qcborspectrum.h
3
* \date 2/10/2026
4
* \author Olivier Langella
5
* \brief Low level CBOR map to store an mzCBOR Spectrum object
6
* */
7
8
/*******************************************************************************
9
* Copyright (c) 2026 Olivier Langella <Olivier.Langella@cnrs.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 <QString>
31
#include <QCborMap>
32
#include <QDebug>
33
#include <vector>
34
#include "
qcborspectrumprecursor.h
"
35
#include "
pappsomspp/core/trace/trace.h
"
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
QcborSpectrum
:
public
QCborMap
48
{
49
public
:
50
QcborSpectrum
();
51
QcborSpectrum
(
const
QcborSpectrum
&other);
52
53
54
QString
getId
()
const
;
55
void
setId
(
const
QString &
id
);
56
57
std::size_t
getIndex
()
const
;
58
void
setIndex
(std::size_t index);
59
60
std::size_t
getDefaultArrayLength
()
const
;
61
int
getMsLevel
()
const
;
62
63
std::vector<QcborSpectrumPrecursor>
getPrecursorList
()
const
;
64
void
setPrecursorList
(std::vector<QcborSpectrumPrecursor> &precursor_list);
65
66
double
getRetentionTimeInSeconds
()
const
;
67
68
void
decodeTrace
(
pappso::Trace
&trace)
const
;
69
// void decodeTrace(pappso::Trace &trace) const;
70
};
71
}
// namespace mzcbor
72
}
// namespace cbor
73
}
// namespace pappso
pappso::Trace
A simple container of DataPoint instances.
Definition
trace.h:152
pappso::cbor::mzcbor::QcborSpectrum::getDefaultArrayLength
std::size_t getDefaultArrayLength() const
Definition
qcborspectrum.cpp:179
pappso::cbor::mzcbor::QcborSpectrum::decodeTrace
void decodeTrace(pappso::Trace &trace) const
Definition
qcborspectrum.cpp:280
pappso::cbor::mzcbor::QcborSpectrum::getPrecursorList
std::vector< QcborSpectrumPrecursor > getPrecursorList() const
Definition
qcborspectrum.cpp:57
pappso::cbor::mzcbor::QcborSpectrum::getRetentionTimeInSeconds
double getRetentionTimeInSeconds() const
Definition
qcborspectrum.cpp:87
pappso::cbor::mzcbor::QcborSpectrum::QcborSpectrum
QcborSpectrum()
Definition
qcborspectrum.cpp:50
pappso::cbor::mzcbor::QcborSpectrum::getIndex
std::size_t getIndex() const
Definition
qcborspectrum.cpp:215
pappso::cbor::mzcbor::QcborSpectrum::setId
void setId(const QString &id)
Definition
qcborspectrum.cpp:195
pappso::cbor::mzcbor::QcborSpectrum::getId
QString getId() const
Definition
qcborspectrum.cpp:159
pappso::cbor::mzcbor::QcborSpectrum::setPrecursorList
void setPrecursorList(std::vector< QcborSpectrumPrecursor > &precursor_list)
Definition
qcborspectrum.cpp:115
pappso::cbor::mzcbor::QcborSpectrum::getMsLevel
int getMsLevel() const
Definition
qcborspectrum.cpp:251
pappso::cbor::mzcbor::QcborSpectrum::setIndex
void setIndex(std::size_t index)
Definition
qcborspectrum.cpp:230
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
qcborspectrumprecursor.h
Low level CBOR map to store an mzCBOR Spectrum object.
trace.h
pappsomspp
core
processing
cbor
mzcbor
copyreplace
qcborspectrum.h
Generated on
for libpappsomspp by
1.17.0