Loading...
Searching...
No Matches
cvparammap.h
Go to the documentation of this file.
/**
* \file pappsomspp/core/processing/cbor/mzcbor/cvparammap.h
* \date 02/02/2026
* \author Olivier Langella
* \brief cvParam map
*/
/*******************************************************************************
* Copyright (c) 2026 Olivier Langella <Olivier.Langella@universite-paris-saclay.fr>.
*
* This file is part of PAPPSOms-tools.
*
* PAPPSOms-tools is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PAPPSOms-tools is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PAPPSOms-tools. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#pragma once
#include <QString>
#include <QXmlStreamWriter>
#include <QJsonArray>
#include <QCborStreamReader>
#include "cvparam.h"
namespace pappso
{
namespace cbor
{
namespace mzcbor
{
/**
* @todo write docs
*/
struct PMSPP_LIB_DECL CvParamMap : std::map<QString, pappso::cbor::mzcbor::CvParam>
{
/** @brief fill the structure reading data from a CBOR stream
* @param reader CBOR stream
*/
void fromCbor(CborStreamReader &reader);
/** @brief write the structure to a JSON array
* @result QJsonObject
*/
QJsonArray toJsonArray() const;
};
} // namespace mzcbor
} // namespace cbor
} // namespace pappso
pappso::cbor::CborStreamReader
simple override of the raw QCborStreamReader This adds convenient functions to put CBOR data into C++...
Definition cborstreamreader.h:46
cvparam.h
PSI cvParam object for mzML/mzCBOR.
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
pappso::cbor::mzcbor::CvParamMap
Definition cvparammap.h:46
pappso::cbor::mzcbor::CvParamMap::fromCbor
void fromCbor(CborStreamReader &reader)
fill the structure reading data from a CBOR stream
Definition cvparammap.cpp:33
pappso::cbor::mzcbor::CvParamMap::toJsonArray
QJsonArray toJsonArray() const
write the structure to a JSON array
Definition cvparammap.cpp:59