libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
cborstreamreaderinterface.h
Go to the documentation of this file.
1/**
2 * \file pappsomspp/processing/cbor/cborstreamreaderinterface.h
3 * \date 11/02/2025
4 * \author Olivier Langella
5 * \brief common interface to read CBOR streams with convenient framework
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
29#include <QCborStreamReader>
30#include <QFile>
32#include "cborstreamreader.h"
33
34namespace pappso::cbor
35{
36/**
37 * @todo write docs
38 */
40{
41 public:
42 /**
43 * Default constructor
44 */
46
47 /**
48 * Destructor
49 */
51
52 protected:
53 bool getExpectedString();
54
55 void initCborReader(QFile *pcborfile);
56
57 protected:
60 QByteArray m_data;
61};
62} // namespace pappso::cbor
#define PMSPP_LIB_DECL