|
libpappsomspp
Library for mass spectrometry
|
base class to transform mzCBOR stream in a new mzCBOR output stream More...
#include <mzcborcopyreplacebase.h>
Public Member Functions | |
| MzcborCopyReplaceBase (CborStreamWriter *cbor_output_p, const QString &operation) | |
| virtual | ~MzcborCopyReplaceBase () |
| virtual void | readCbor (QFile *cborp, pappso::UiMonitorInterface &monitor) |
| read mzCBOR file | |
| virtual void | readCbor (QIODevice *cborp, pappso::UiMonitorInterface &monitor) |
| read mzCBOR from any device (memory buffer or else) | |
| virtual void | close () |
| convenient function to clean pointer before leaving | |
| Public Member Functions inherited from pappso::cbor::CborStreamReaderInterface | |
| CborStreamReaderInterface () | |
| virtual | ~CborStreamReaderInterface () |
Protected Member Functions | |
| void | readRoot (pappso::UiMonitorInterface &monitor) |
| void | readCbor (pappso::UiMonitorInterface &monitor) |
| void | readRun (pappso::UiMonitorInterface &monitor) |
| void | readSpectrumList (pappso::UiMonitorInterface &monitor) |
| virtual void | processQcborSpectrum (SpectrumTube &spectrum_tube, QcborSpectrum &cbor_spectrum) |
| Protected Member Functions inherited from pappso::cbor::CborStreamReaderInterface | |
| bool | getExpectedString () |
| void | initCborReader (QFile *pcborfile) |
| void | initCborReader (QIODevice *pcborfile) |
Protected Attributes | |
| bool | m_stopParsing = false |
| CborStreamWriter * | mp_cborOutput |
| QString | m_operation |
| Protected Attributes inherited from pappso::cbor::CborStreamReaderInterface | |
| CborStreamReader * | mpa_cborReader = nullptr |
| QString | m_expectedString |
| QByteArray | m_data |
Private Attributes | |
| bool | m_isMzcbor = false |
| QString | m_uuid |
base class to transform mzCBOR stream in a new mzCBOR output stream
ensures stream read on regular file or any readable device
Definition at line 46 of file mzcborcopyreplacebase.h.
| pappso::cbor::mzcbor::MzcborCopyReplaceBase::MzcborCopyReplaceBase | ( | CborStreamWriter * | cbor_output_p, |
| const QString & | operation ) |
Default constructor
Definition at line 43 of file mzcborcopyreplacebase.cpp.
References m_operation, and mp_cborOutput.
Referenced by pappso::cbor::mzcbor::MzcborPrecursorFinder::MzcborPrecursorFinder().
|
virtual |
|
virtual |
convenient function to clean pointer before leaving
Reimplemented from pappso::cbor::CborStreamReaderInterface.
Definition at line 55 of file mzcborcopyreplacebase.cpp.
|
protectedvirtual |
Reimplemented in pappso::cbor::mzcbor::MzcborPrecursorFinder.
Definition at line 337 of file mzcborcopyreplacebase.cpp.
References pappso::cbor::mzcbor::QcborSpectrum::getId(), pappso::cbor::mzcbor::QcborSpectrum::getMsLevel(), pappso::cbor::mzcbor::SpectrumTube::push_back(), and pappso::cbor::mzcbor::QcborSpectrum::setId().
Referenced by readSpectrumList().
|
protected |
Definition at line 158 of file mzcborcopyreplacebase.cpp.
References pappso::cbor::CborStreamReaderInterface::getExpectedString(), pappso::Utils::getVersion(), pappso::cbor::CborStreamReaderInterface::m_expectedString, m_operation, mp_cborOutput, and pappso::cbor::CborStreamReaderInterface::mpa_cborReader.
|
virtual |
read mzCBOR file
| cborp | file pointer |
| monitor | monitor read progress and messages |
Definition at line 60 of file mzcborcopyreplacebase.cpp.
References pappso::cbor::CborStreamReaderInterface::initCborReader(), pappso::cbor::CborStreamReaderInterface::mpa_cborReader, and readRoot().
Referenced by readRoot().
|
virtual |
read mzCBOR from any device (memory buffer or else)
| cborp | device pointer |
| monitor | monitor read progress and messages |
Definition at line 74 of file mzcborcopyreplacebase.cpp.
References pappso::cbor::CborStreamReaderInterface::initCborReader(), pappso::cbor::CborStreamReaderInterface::mpa_cborReader, and readRoot().
|
protected |
Definition at line 88 of file mzcborcopyreplacebase.cpp.
References pappso::cbor::CborStreamReaderInterface::getExpectedString(), pappso::cbor::CborStreamReaderInterface::m_expectedString, mp_cborOutput, pappso::cbor::CborStreamReaderInterface::mpa_cborReader, readCbor(), and readRun().
Referenced by readCbor(), and readCbor().
|
protected |
Definition at line 198 of file mzcborcopyreplacebase.cpp.
References pappso::cbor::CborStreamReaderInterface::getExpectedString(), pappso::cbor::CborStreamReaderInterface::m_expectedString, mp_cborOutput, pappso::cbor::CborStreamReaderInterface::mpa_cborReader, and readSpectrumList().
Referenced by readRoot().
|
protected |
Definition at line 257 of file mzcborcopyreplacebase.cpp.
References pappso::UiMonitorInterface::count(), pappso::cbor::mzcbor::SpectrumTube::flush(), pappso::cbor::CborStreamReaderInterface::getExpectedString(), pappso::cbor::CborStreamReaderInterface::m_expectedString, mp_cborOutput, pappso::cbor::CborStreamReaderInterface::mpa_cborReader, processQcborSpectrum(), pappso::UiMonitorInterface::setStatus(), pappso::UiMonitorInterface::setTotalSteps(), and pappso::cbor::mzcbor::SpectrumTube::size().
Referenced by readRun().
|
private |
Definition at line 91 of file mzcborcopyreplacebase.h.
|
protected |
Definition at line 88 of file mzcborcopyreplacebase.h.
Referenced by MzcborCopyReplaceBase(), and readCbor().
|
protected |
Definition at line 86 of file mzcborcopyreplacebase.h.
|
private |
Definition at line 92 of file mzcborcopyreplacebase.h.
|
protected |
Definition at line 87 of file mzcborcopyreplacebase.h.
Referenced by MzcborCopyReplaceBase(), readCbor(), readRoot(), readRun(), and readSpectrumList().