libpappsomspp
Library for mass spectrometry
psmfilescanprocessandcopy.h
Go to the documentation of this file.
1/**
2 * \file pappsomspp/processing/cbor/psm/psmfilescanprocessandcopy.h
3 * \date 15/07/2025
4 * \author Olivier Langella
5 * \brief PSM file reader designed to parallelize scan process and then copy the results in PSM cbor
6 * output stream
7 */
8
9/*******************************************************************************
10 * Copyright (c) 2025 Olivier Langella <Olivier.Langella@universite-paris-saclay.fr>.
11 *
12 * This file is part of PAPPSOms-tools.
13 *
14 * PAPPSOms-tools is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * PAPPSOms-tools is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with PAPPSOms-tools. If not, see <http://www.gnu.org/licenses/>.
26 *
27 ******************************************************************************/
28#pragma once
29
30#include "psmfilescanprocess.h"
31#include "../cborstreamwriter.h"
32
33namespace pappso::cbor::psm
34{
35/**
36 * @brief Basic PSM file reader to process scan (parallelized scan processing) and write a new
37 * resulting PSM file
38 */
40{
41 public:
42 /**
43 * Default constructor
44 */
45 PsmFileScanProcessAndCopy(std::size_t buffer_scan_size,
46 CborStreamWriter *cbor_output_p,
47 const QString &operation);
48
49 /**
50 * Destructor
51 */
53
54 void close() override;
55
56
57 protected:
58 void informationsReady(pappso::UiMonitorInterface &monitor) override;
59 void logReady(pappso::UiMonitorInterface &monitor) override;
60 void parameterMapReady(pappso::UiMonitorInterface &monitor) override;
61 void fastaFilesReady(pappso::UiMonitorInterface &monitor) override;
62 void proteinMapReady(pappso::UiMonitorInterface &monitor) override;
63
65
66 void sampleStarted(pappso::UiMonitorInterface &monitor) override;
67
68 void sampleFinished(pappso::UiMonitorInterface &monitor) override;
69
70
71 void sampleListStarted(pappso::UiMonitorInterface &monitor) override;
72 void sampleListFinished(pappso::UiMonitorInterface &monitor) override;
73
74 protected:
76 QString m_operation;
77};
78} // namespace pappso::cbor::psm
Basic PSM file reader to process scan (parallelized scan processing) and write a new resulting PSM fi...
void sampleStarted(pappso::UiMonitorInterface &monitor) override
void fastaFilesReady(pappso::UiMonitorInterface &monitor) override
void sampleFinished(pappso::UiMonitorInterface &monitor) override
PsmFileScanProcessAndCopy(std::size_t buffer_scan_size, CborStreamWriter *cbor_output_p, const QString &operation)
void sampleListStarted(pappso::UiMonitorInterface &monitor) override
void sampleListFinished(pappso::UiMonitorInterface &monitor) override
void proteinMapReady(pappso::UiMonitorInterface &monitor) override
void informationsReady(pappso::UiMonitorInterface &monitor) override
void processBufferScanDone(pappso::UiMonitorInterface &monitor) override
void parameterMapReady(pappso::UiMonitorInterface &monitor) override
void logReady(pappso::UiMonitorInterface &monitor) override
Basic PSM file reader to process scan (parallelized scan processing)
PSM file reader designed to parallelize scan process.