| 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 | *<[email protected]>. |
| 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"cxx . . $ `<file>/src/pappsomspp/core/vendors/tims/timsframerecord.h`/ |
| 33 | #include "pappsomspp/export-import-config.h"cxx . . $ `<file>/src/pappsomspp/export-import-config.h`/ |
| 34 | |
| 35 | namespace pappsocxx . . $ pappso/ |
| 36 | { |
| 37 | /** |
| 38 | * @todo write docs |
| 39 | */ |
| 40 | class PMSPP_LIB_DECLcxx . . $ `src/pappsomspp/export-import-config.h:10:9`! TimsFrameRawDataChunckcxx . . $ pappso/TimsFrameRawDataChunck# |
| 41 | { |
| 42 | public: |
| 43 | /** |
| 44 | * Default constructor |
| 45 | */ |
| 46 | TimsFrameRawDataChunckcxx . . $ pappso/TimsFrameRawDataChunck#TimsFrameRawDataChunck(49f6e7a06ebc5aa8).(); |
| 47 | |
| 48 | /** |
| 49 | * Destructor |
| 50 | */ |
| 51 | virtual ~cxx . . $ pappso/TimsFrameRawDataChunck#`~TimsFrameRawDataChunck`(49f6e7a06ebc5aa8).TimsFrameRawDataChunckcxx . . $ pappso/TimsFrameRawDataChunck#(); |
| 52 | |
| 53 | |
| 54 | bool |
| 55 | readTimsFramecxx . . $ pappso/TimsFrameRawDataChunck#readTimsFrame(7d12ff05db844aec).(QFilecxx . . $ QFile# *p_file, |
| 56 | stdcxx . . $ std/::size_tcxx . . $ std/size_t# frameId, |
| 57 | const stdcxx . . $ std/::vectorcxx . . $ std/vector#<pappsocxx . . $ pappso/::TimsFrameRecordcxx . . $ pappso/TimsFrameRecord#> &frame_record_list); |
| 58 | |
| 59 | |
| 60 | quint32cxx . . $ quint32# getFrameNumberOfScanscxx . . $ pappso/TimsFrameRawDataChunck#getFrameNumberOfScans(ddd8539a2fcdd4ce).() const; |
| 61 | quint32cxx . . $ quint32# getCompressedSizecxx . . $ pappso/TimsFrameRawDataChunck#getCompressedSize(ddd8539a2fcdd4ce).() const; |
| 62 | quint32cxx . . $ quint32# getFrameLengthcxx . . $ pappso/TimsFrameRawDataChunck#getFrameLength(ddd8539a2fcdd4ce).() const; |
| 63 | char *getMemoryBuffercxx . . $ pappso/TimsFrameRawDataChunck#getMemoryBuffer(e7e5aa338b9d5147).() const; |
| 64 | stdcxx . . $ std/::size_tcxx . . $ std/size_t# getFrameIdcxx . . $ pappso/TimsFrameRawDataChunck#getFrameId(fe4d2d262d4164a8).() const; |
| 65 | |
| 66 | private: |
| 67 | char *mpa_memoryBuffercxx . . $ pappso/TimsFrameRawDataChunck#mpa_memoryBuffer. = nullptr; |
| 68 | qint64cxx . . $ qint64# m_memoryBufferSizecxx . . $ pappso/TimsFrameRawDataChunck#m_memoryBufferSize. = 0; |
| 69 | |
| 70 | stdcxx . . $ std/::size_tcxx . . $ std/size_t# m_frameIdcxx . . $ pappso/TimsFrameRawDataChunck#m_frameId. = 0; |
| 71 | quint32cxx . . $ quint32# m_frameLengthcxx . . $ pappso/TimsFrameRawDataChunck#m_frameLength. = 0; |
| 72 | quint32cxx . . $ quint32# m_frameNumberOfScanscxx . . $ pappso/TimsFrameRawDataChunck#m_frameNumberOfScans. = 0; |
| 73 | }; |
| 74 | |
| 75 | } // namespace pappso |