| | |
The MassDataCborBaseHandler class provides features to handle mass spectrometric data using the CBOR (Concise Binary Object Representation) container streaming classes. More...
| Header: | #include <MassDataCborBaseHandler.hpp> |
| Inherits: | QObject |
| Inherited By: |
| MassDataCborBaseHandler(QObject *parent_p) | |
| virtual | ~MassDataCborBaseHandler() |
| MsXpS::libXpertMassCore::Enums::MassDataType | getMassDataType() const |
| QString | getTitle() const |
| virtual bool | readByteArray(const QByteArray &byte_array) |
| virtual bool | readFile(const QString &input_file_name = QString()) |
| void | setInputFileName(const QString &file_name) |
| void | setMassDataType(MsXpS::libXpertMassCore::Enums::MassDataType mass_data_type) |
| void | setOutputFileName(const QString &file_name) |
| void | setTitle(const QString &title) |
| virtual void | writeByteArray(QByteArray &byte_array) |
| virtual bool | writeFile(const QString &output_file_name = QString()) |
| MsXpS::libXpertMassCore::Enums::MassDataType | readMassDataType(MsXpS::libXpertMassCore::QCborStreamReaderSPtr &reader_sp) |
| MsXpS::libXpertMassCore::Enums::MassDataType | readMassDataType(const QByteArray &byte_array) |
| MsXpS::libXpertMassCore::Enums::MassDataType | readMassDataType(const QString &input_file_name) |
| virtual bool | decodeStream(MsXpS::libXpertMassCore::QCborStreamReaderSPtr &reader_sp) |
The data transported using CBOR is first qualified using the Enums::MassDataType enum. The data are packed following that mass data type specification.
Constructs a MassDataCborBaseHandler instance setting parent to parent_p.
[virtual noexcept] MassDataCborBaseHandler::~MassDataCborBaseHandler()Destructs the MassDataCborBaseHandler instance.
[virtual protected] bool MassDataCborBaseHandler::decodeStream(MsXpS::libXpertMassCore::QCborStreamReaderSPtr &reader_sp)Decodes the data stream from reader_sp.
Note: The base class does nothing and always returns false.
Returns the mass data type.
Returns the title of the mass data entity carried by the CBOR container.
[virtual] bool MassDataCborBaseHandler::readByteArray(const QByteArray &byte_array)Reads the data in byte array byte_array by decoding the data stream read from it.
Note: The base class does nothing and always returns false.
[virtual] bool MassDataCborBaseHandler::readFile(const QString &input_file_name = QString())Reads the data in file input_file_name by decoding the data stream read from it.
Note: The base class does nothing and always returns false.
[static] MsXpS::libXpertMassCore::Enums::MassDataType MassDataCborBaseHandler::readMassDataType(MsXpS::libXpertMassCore::QCborStreamReaderSPtr &reader_sp)Decodes enough of the data streamed by reader_sp to determine and return the mass data type of the streamed data.
Note: Failure to decode the mass data type is fatal.
[static] MsXpS::libXpertMassCore::Enums::MassDataType MassDataCborBaseHandler::readMassDataType(const QByteArray &byte_array)This is an overloaded function.
Decodes enough of the data contained in byte_array to determine and return the mass data type of the streamed data.
Note: Failure to decode the mass data type is fatal.
See also readMassDataType() and overloads.
[static] MsXpS::libXpertMassCore::Enums::MassDataType MassDataCborBaseHandler::readMassDataType(const QString &input_file_name)This is an overloaded function.
Decodes enough of the data contained in file input_file_name to determine and return the mass data type of the streamed data.
Note: Failure to decode the mass data type is fatal.
See also readMassDataType() and overloads.
Sets the input file name to file_name.
Sets the mass data type to mass_data_type.
Sets the output file name to file_name.
Sets the title of the mass data entity carried by the CBOR container.
[virtual] void MassDataCborBaseHandler::writeByteArray(QByteArray &byte_array)Writes member data to byte array byte_array.
Note: The base class does nothing and always returns false.
[virtual] bool MassDataCborBaseHandler::writeFile(const QString &output_file_name = QString())Writes member data to file output_file_name.
Note: The base class does nothing and always returns false.