libpappsomspp
Library for mass spectrometry
timsbindec.h
Go to the documentation of this file.
1 /**
2  * \file pappsomspp/vendors/tims/timsbindec.h
3  * \date 23/08/2019
4  * \author Olivier Langella
5  * \brief binary file handler of Bruker's TimsTof raw data
6  */
7 
8 /*******************************************************************************
9  * Copyright (c) 2019 Olivier Langella <Olivier.Langella@u-psud.fr>.
10  *
11  * This file is part of the PAPPSOms++ library.
12  *
13  * PAPPSOms++ 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++ 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++. If not, see <http://www.gnu.org/licenses/>.
25  *
26  ******************************************************************************/
27 
28 #pragma once
29 
30 #include <QFile>
31 #include <QFileInfo>
32 #include "timsframe.h"
33 
34 namespace pappso
35 {
36 
37 /**
38  * @todo write docs
39  */
40 class TimsBinDec
41 {
42  public:
43  /**
44  * Default constructor
45  */
46  TimsBinDec(const QFileInfo &timsBinFile, int timsCompressionType);
47 
48  /**
49  * Copy constructor
50  *
51  * @param other TODO
52  */
53  TimsBinDec(const TimsBinDec &other);
54 
55  /**
56  * Destructor
57  */
59 
60  // TimsFrameCstSPtr getTimsFrameCstSPtr(std::size_t timsId);
61 
62  TimsFrameSPtr getTimsFrameSPtrByOffset(std::size_t timsId,
63  std::size_t timsOffset) const;
64 
65  private:
66  void indexingFile();
67 
68  private:
69  QString m_timsBinFile;
70  // QMutex m_mutex;
71  // std::vector<quint64> m_indexArray;
72 };
73 } // namespace pappso
pappso::TimsBinDec::~TimsBinDec
~TimsBinDec()
Definition: timsbindec.cpp:65
pappso::TimsFrameSPtr
std::shared_ptr< TimsFrame > TimsFrameSPtr
Definition: timsframe.h:58
pappso::TimsBinDec::getTimsFrameSPtrByOffset
TimsFrameSPtr getTimsFrameSPtrByOffset(std::size_t timsId, std::size_t timsOffset) const
Definition: timsbindec.cpp:143
timsframe.h
handle a single Bruker's TimsTof frame
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition: aa.cpp:39
pappso::TimsBinDec::m_timsBinFile
QString m_timsBinFile
Definition: timsbindec.h:105
pappso::TimsBinDec::indexingFile
void indexingFile()
Definition: timsbindec.cpp:71
pappso::TimsBinDec::TimsBinDec
TimsBinDec(const QFileInfo &timsBinFile, int timsCompressionType)
Definition: timsbindec.cpp:35