libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
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 "
pappsomspp/export-import-config.h
"
34
35
namespace
pappso
36
{
37
/**
38
* @todo write docs
39
*/
40
class
PMSPP_LIB_DECL
TimsFrameRawDataChunck
41
{
42
public
:
43
/**
44
* Default constructor
45
*/
46
TimsFrameRawDataChunck
();
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
pappso::TimsFrameRawDataChunck::TimsFrameRawDataChunck
TimsFrameRawDataChunck()
Definition
timsframerawdatachunck.cpp:36
pappso::TimsFrameRawDataChunck::getFrameId
std::size_t getFrameId() const
Definition
timsframerawdatachunck.cpp:204
pappso::TimsFrameRawDataChunck::getCompressedSize
quint32 getCompressedSize() const
Definition
timsframerawdatachunck.cpp:186
pappso::TimsFrameRawDataChunck::m_frameLength
quint32 m_frameLength
Definition
timsframerawdatachunck.h:71
pappso::TimsFrameRawDataChunck::getFrameNumberOfScans
quint32 getFrameNumberOfScans() const
Definition
timsframerawdatachunck.cpp:192
pappso::TimsFrameRawDataChunck::readTimsFrame
bool readTimsFrame(QFile *p_file, std::size_t frameId, const std::vector< pappso::TimsFrameRecord > &frame_record_list)
Definition
timsframerawdatachunck.cpp:47
pappso::TimsFrameRawDataChunck::m_frameId
std::size_t m_frameId
Definition
timsframerawdatachunck.h:70
pappso::TimsFrameRawDataChunck::m_frameNumberOfScans
quint32 m_frameNumberOfScans
Definition
timsframerawdatachunck.h:72
pappso::TimsFrameRawDataChunck::m_memoryBufferSize
qint64 m_memoryBufferSize
Definition
timsframerawdatachunck.h:68
pappso::TimsFrameRawDataChunck::mpa_memoryBuffer
char * mpa_memoryBuffer
Definition
timsframerawdatachunck.h:67
pappso::TimsFrameRawDataChunck::getMemoryBuffer
char * getMemoryBuffer() const
Definition
timsframerawdatachunck.cpp:180
pappso::TimsFrameRawDataChunck::getFrameLength
quint32 getFrameLength() const
Definition
timsframerawdatachunck.cpp:198
export-import-config.h
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition
export-import-config.h:14
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
timsframerecord.h
pappsomspp
core
vendors
tims
timsframerawdatachunck.h
Generated on
for libpappsomspp by
1.17.0