107 unit_multiplier(1.0),
133 bool use_numpress =
false);
146 const std::vector< std::pair<std::string, Int64> > & spectra_offsets,
147 const std::vector< std::pair<std::string, Int64> > & chromatograms_offsets);
186 const String& unit_accession);
Helper for mzML file format.
Definition: MzMLHandlerHelper.h:56
static void computeDataProperties_(const std::vector< BinaryData > &data_, bool &precision_64, SignedSize &index, const String &index_name)
Identify a data array from a list.
static String getCompressionTerm_(const PeakFileOptions &opt, MSNumpressCoder::NumpressConfig np_compression, String indent="", bool use_numpress=false)
Returns the appropriate compression term given the PeakFileOptions and the NumpressConfig.
static void writeFooter_(std::ostream &os, const PeakFileOptions &options, const std::vector< std::pair< std::string, Int64 > > &spectra_offsets, const std::vector< std::pair< std::string, Int64 > > &chromatograms_offsets)
Write the indexed mzML footer the appropriate compression term given the PeakFileOptions and the Nump...
static void decodeBase64Arrays(std::vector< BinaryData > &data_, const bool skipXMLCheck=false)
Decode Base64 arrays and write into data_ array.
static void warning(int mode, const String &msg, UInt line=0, UInt column=0)
Also display some warning message when appropriate (see XMLHandler)
static bool handleBinaryDataArrayCVParam(std::vector< BinaryData > &data_, const String &accession, const String &value, const String &name, const String &unit_accession)
Handle a given CV parameter found in a binaryDataArray tag.
NumpressCompression
Names of compression schemes.
Definition: MSNumpressCoder.h:74
Options for loading files containing peak data.
Definition: PeakFileOptions.h:48
A more convenient string class.
Definition: String.h:60
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
ptrdiff_t SignedSize
Signed Size type e.g. used as pointer difference.
Definition: Types.h:134
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Representation for binary data in mzML.
Definition: MzMLHandlerHelper.h:70
double unit_multiplier
multiplier for unit (e.g. 60 for minutes)
Definition: MzMLHandlerHelper.h:89
BinaryData(const BinaryData &)=default
std::vector< Int32 > ints_32
Definition: MzMLHandlerHelper.h:95
@ PRE_32
32bit precision
Definition: MzMLHandlerHelper.h:75
@ PRE_NONE
unknown precision
Definition: MzMLHandlerHelper.h:74
std::vector< float > floats_32
Definition: MzMLHandlerHelper.h:93
BinaryData(BinaryData &&)=default
bool compression
zlib compression
Definition: MzMLHandlerHelper.h:88
Size size
Raw data length.
Definition: MzMLHandlerHelper.h:92
std::vector< String > decoded_char
Definition: MzMLHandlerHelper.h:97
String base64
Raw data in base64 encoding.
Definition: MzMLHandlerHelper.h:91
BinaryData()
Constructor.
Definition: MzMLHandlerHelper.h:102
MetaInfoDescription meta
Meta data description.
Definition: MzMLHandlerHelper.h:99
std::vector< Int64 > ints_64
Definition: MzMLHandlerHelper.h:96
std::vector< double > floats_64
Definition: MzMLHandlerHelper.h:94
BinaryData & operator=(BinaryData &&) &=default
@ DT_NONE
unknown data type
Definition: MzMLHandlerHelper.h:80
@ DT_FLOAT
float data type
Definition: MzMLHandlerHelper.h:81
@ DT_INT
integer data type
Definition: MzMLHandlerHelper.h:82
BinaryData & operator=(const BinaryData &) &=default
MSNumpressCoder::NumpressCompression np_compression
numpress options
Definition: MzMLHandlerHelper.h:86
Configuration class for MSNumpress.
Definition: MSNumpressCoder.h:89