libpappsomspp
Library for mass spectrometry
timsframerawdatachunck.h
Go to the documentation of this file.
1 /**
2  * \file pappsomspp/vendors/tims/timsframerawdatachunck.h
3  * \date 18/6/2022
4  * \author Olivier Langella
5  * \brief stores raw binary tims frame
6  */
7 
8 /*******************************************************************************
9  * Copyright (c) 2022 Olivier Langella
10  *<Olivier.Langella@universite-paris-saclay.fr>.
11  *
12  * This file is part of the PAPPSOms++ library.
13  *
14  * PAPPSOms++ 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++ 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++. If not, see <http://www.gnu.org/licenses/>.
26  *
27  ******************************************************************************/
28 
29 #pragma once
30 
31 #include <QFile>
32 #include "timsframerecord.h"
33 #include "../../exportinmportconfig.h"
34 
35 namespace pappso
36 {
37 /**
38  * @todo write docs
39  */
41 {
42  public:
43  /**
44  * Default constructor
45  */
47 
48  /**
49  * Destructor
50  */
51  virtual ~TimsFrameRawDataChunck();
52 
53 
54  bool
55  readTimsFrame(QFile *p_file,
56  std::size_t frameId,
57  const std::vector<pappso::TimsFrameRecord> &frame_record_list);
58 
59 
60  quint32 getFrameNumberOfScans() const;
61  quint32 getCompressedSize() const;
62  quint32 getFrameLength() const;
63  char *getMemoryBuffer() const;
64  std::size_t getFrameId() const;
65 
66  private:
67  char *mpa_memoryBuffer = nullptr;
68  qint64 m_memoryBufferSize = 0;
69 
70  std::size_t m_frameId = 0;
71  quint32 m_frameLength = 0;
72  quint32 m_frameNumberOfScans = 0;
73 };
74 
75 } // namespace pappso
#define PMSPP_LIB_DECL
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition: aa.cpp:39
simple structure to store SQL lite frame records