libpappsomspp
Library for mass spectrometry
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>
37
38namespace pappso
39{
40namespace cbor
41{
42namespace mzcbor
43{
44/**
45 * @todo write docs
46 */
47class PMSPP_LIB_DECL QcborSpectrum : public QCborMap
48{
49 public:
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
A simple container of DataPoint instances.
Definition trace.h:152
void decodeTrace(pappso::Trace &trace) const
std::vector< QcborSpectrumPrecursor > getPrecursorList() const
void setPrecursorList(std::vector< QcborSpectrumPrecursor > &precursor_list)
#define PMSPP_LIB_DECL
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39
Low level CBOR map to store an mzCBOR Spectrum object.