libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
psmcbor2json.h
Go to the documentation of this file.
1
/**
2
* \file pappsomspp/processing/cbor/psm/psmcbor2json.h
3
* \date 19/07/2025
4
* \author Olivier Langella
5
* \brief convert CBOR PSM to JSON
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
28
29
#pragma once
30
31
32
#include "
psmfilereaderbase.h
"
33
#include "
pappsomspp/core/processing/cbor/jsonstreamwriter.h
"
34
#include "
pappsomspp/export-import-config.h
"
35
36
namespace
pappso::cbor::psm
37
{
38
/**
39
* @todo write docs
40
*/
41
class
PMSPP_LIB_DECL
PsmCbor2Json
:
public
PsmFileReaderBase
42
{
43
public
:
44
/**
45
* Default constructor
46
*/
47
PsmCbor2Json
(
pappso::cbor::JsonStreamWriter
*json_output_p);
48
49
/**
50
* Destructor
51
*/
52
virtual
~PsmCbor2Json
();
53
54
55
void
close()
override
;
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 readSample(pappso::UiMonitorInterface &monitor) override;
63
void
sampleStarted(
pappso::UiMonitorInterface
&monitor)
override
;
64
void
sampleFinished(
pappso::UiMonitorInterface
&monitor)
override
;
65
void
sampleListStarted(
pappso::UiMonitorInterface
&monitor)
override
;
66
void
sampleListFinished(
pappso::UiMonitorInterface
&monitor)
override
;
67
void
scanStarted(
pappso::UiMonitorInterface
&monitor)
override
;
68
void
scanFinished(
pappso::UiMonitorInterface
&monitor)
override
;
69
70
71
void
psmReady(
pappso::UiMonitorInterface
&monitor)
override
;
72
// void readScan(pappso::UiMonitorInterface &monitor) override;
73
// void readPsm(pappso::UiMonitorInterface &monitor) override;
74
void
readProteinMap(
pappso::UiMonitorInterface
&monitor)
override
;
75
76
77
protected
:
78
pappso::cbor::JsonStreamWriter
*
mp_jsonOutput
;
79
};
80
}
// namespace pappso::cbor::psm
pappso::UiMonitorInterface
Definition
uimonitorinterface.h:50
pappso::cbor::JsonStreamWriter
helper class to write json text using CBOR data structures
Definition
jsonstreamwriter.h:43
pappso::cbor::psm::PsmCbor2Json
Definition
psmcbor2json.h:42
pappso::cbor::psm::PsmCbor2Json::mp_jsonOutput
pappso::cbor::JsonStreamWriter * mp_jsonOutput
Definition
psmcbor2json.h:78
pappso::cbor::psm::PsmFileReaderBase
Definition
psmfilereaderbase.h:56
export-import-config.h
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition
export-import-config.h:14
jsonstreamwriter.h
pappso::cbor::psm
Definition
cborscanmapbase.h:40
psmfilereaderbase.h
pappsomspp
core
processing
cbor
psm
psmcbor2json.h
Generated on Tue May 19 2026 12:52:14 for libpappsomspp by
1.9.8