Loading...
Searching...
No Matches
timsframerawdatachunck.h
Go to the documentation of this file.
/**
* \file pappsomspp/vendors/tims/timsframerawdatachunck.h
* \date 18/6/2022
* \author Olivier Langella
* \brief stores raw binary tims frame
*/
/*******************************************************************************
* Copyright (c) 2022 Olivier Langella
*<Olivier.Langella@universite-paris-saclay.fr>.
*
* This file is part of the PAPPSOms++ library.
*
* PAPPSOms++ is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PAPPSOms++ is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#pragma once
#include <QFile>
#include "timsframerecord.h"
#include "pappsomspp/export-import-config.h"
namespace pappso
{
/**
* @todo write docs
*/
class PMSPP_LIB_DECL TimsFrameRawDataChunck
{
public:
/**
* Default constructor
*/
TimsFrameRawDataChunck();
/**
* Destructor
*/
virtual ~TimsFrameRawDataChunck();
bool
readTimsFrame(QFile *p_file,
std::size_t frameId,
const std::vector<pappso::TimsFrameRecord> &frame_record_list);
quint32 getFrameNumberOfScans() const;
quint32 getCompressedSize() const;
quint32 getFrameLength() const;
char *getMemoryBuffer() const;
std::size_t getFrameId() const;
private:
char *mpa_memoryBuffer = nullptr;
qint64 m_memoryBufferSize = 0;
std::size_t m_frameId = 0;
quint32 m_frameLength = 0;
quint32 m_frameNumberOfScans = 0;
};
} // 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