timsbindec.h
Go to the documentation of this file.
/**
* \file pappsomspp/vendors/tims/timsbindec.h
* \date 23/08/2019
* \author Olivier Langella
* \brief binary file handler of Bruker's TimsTof raw data
*/
/*******************************************************************************
* Copyright (c) 2019 Olivier Langella <Olivier.Langella@u-psud.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 <QFileInfo>
#include "timsframe.h"
namespace pappso
{
/**
* @todo write docs
*/
class TimsBinDec
{
public:
/**
* Default constructor
*/
TimsBinDec(const QFileInfo &timsBinFile, int timsCompressionType);
/**
* Copy constructor
*
* @param other TODO
*/
TimsBinDec(const TimsBinDec &other);
/**
* Destructor
*/
~TimsBinDec();
// TimsFrameCstSPtr getTimsFrameCstSPtr(std::size_t timsId);
TimsFrameSPtr getTimsFrameSPtrByOffset(std::size_t timsId,
std::size_t timsOffset);
private:
void indexingFile();
private:
int m_timsCompressionType;
QString m_timsBinFile;
char *mpa_memoryBuffer = nullptr;
qint64 m_memoryBufferSize = 0;
// QMutex m_mutex;
// std::vector<quint64> m_indexArray;
char *mpa_decompressMemoryBuffer = nullptr;
std::size_t m_decompressMemoryBufferSize = 0;
};
} // namespace pappso
pappso::TimsBinDec
Definition: timsbindec.h:41
pappso::TimsBinDec::m_decompressMemoryBufferSize
std::size_t m_decompressMemoryBufferSize
Definition: timsbindec.h:77
pappso::TimsBinDec::indexingFile
void indexingFile()
Definition: timsbindec.cpp:84
pappso::TimsBinDec::mpa_memoryBuffer
char * mpa_memoryBuffer
Definition: timsbindec.h:72
pappso::TimsBinDec::m_timsCompressionType
int m_timsCompressionType
Definition: timsbindec.h:69
pappso::TimsBinDec::TimsBinDec
TimsBinDec(const QFileInfo &timsBinFile, int timsCompressionType)
Definition: timsbindec.cpp:37
pappso::TimsBinDec::~TimsBinDec
~TimsBinDec()
Definition: timsbindec.cpp:67
pappso::TimsBinDec::m_memoryBufferSize
qint64 m_memoryBufferSize
Definition: timsbindec.h:73
pappso::TimsBinDec::m_timsBinFile
QString m_timsBinFile
Definition: timsbindec.h:70
pappso::TimsBinDec::mpa_decompressMemoryBuffer
char * mpa_decompressMemoryBuffer
Definition: timsbindec.h:76
pappso::TimsBinDec::getTimsFrameSPtrByOffset
TimsFrameSPtr getTimsFrameSPtrByOffset(std::size_t timsId, std::size_t timsOffset)
Definition: timsbindec.cpp:155
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition: aa.cpp:39
pappso::TimsFrameSPtr
std::shared_ptr< TimsFrame > TimsFrameSPtr
Definition: timsframe.h:41
timsframe.h
handle a single Bruker's TimsTof frame