libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
psmneweval.h
Go to the documentation of this file.
1/**
2 * \file pappsomspp/processing/cbor/psm/evalscan/psmneweval.h
3 * \date 21/08/2025
4 * \author Olivier Langella
5 * \brief add any new eval contained in a double vector
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#pragma once
28
30#include <QJsonObject>
31
32namespace pappso::cbor::psm
33{
34/**
35 * @todo write docs
36 */
38{
39 public:
40 /**
41 * Default constructor
42 */
43 PsmNewEval(std::size_t buffer_scan_size,
44 CborStreamWriter *cbor_output_p,
45 const QString &eval_name,
46 const QJsonObject &parameters);
47
48 virtual ~PsmNewEval();
49
50 void addEvalDoubleVector(const QString &eval_key_value_name, std::vector<double> arr_values);
51
52 protected:
54 void parameterMapReady(pappso::UiMonitorInterface &monitor) override;
55
56 protected:
58 QString m_evalName;
60 std::vector<double> m_psmEvalValues;
61
62 std::vector<double>::iterator value_it;
63};
64} // namespace pappso::cbor::psm
PsmFileScanProcessAndCopy(std::size_t buffer_scan_size, CborStreamWriter *cbor_output_p, const QString &operation)
void parameterMapReady(pappso::UiMonitorInterface &monitor) override
std::vector< double >::iterator value_it
Definition psmneweval.h:62
void addEvalDoubleVector(const QString &eval_key_value_name, std::vector< double > arr_values)
pappso::cbor::psm::CborScanMapBase * newCborScanMap() override
std::vector< double > m_psmEvalValues
Definition psmneweval.h:60
PsmNewEval(std::size_t buffer_scan_size, CborStreamWriter *cbor_output_p, const QString &eval_name, const QJsonObject &parameters)