CycloBranch
cPeakListSeries Class Reference

The class representing a series of peaklists. More...

#include <cPeakListSeries.h>

Public Member Functions

 cPeakListSeries ()
 The constructor.
 
 cPeakListSeries (const cPeakListSeries &peaklistseries)
 The copy constructor. More...
 
cPeakListSeriesoperator= (const cPeakListSeries &peaklistseries)
 Overloaded operator=. More...
 
cPeaksListoperator[] (int position)
 Overloaded operator []. More...
 
void clear ()
 Clear the peaklist series.
 
void resize (int size)
 Resize the peaklist series. More...
 
void addPeakList (cPeaksList &peaklist)
 Add a peaklist. More...
 
void loadFromPlainTextStream (ifstream &stream)
 Load the series of peaklists from a plain text stream. More...
 
void loadFromBAFStream (ifstream &stream)
 Load the series of peaklists from a .csv file converted from a .baf file by CompassXport. More...
 
int loadFromProfileApexStream (string &filename, ifstream &stream, ifstream &titlestream, double fwhm, cMainThread *os, bool &terminatecomputation)
 Load the series of peaklists from a .csv file converted from apex data by CompassXport. More...
 
int loadFromMZMLStream (string &mzmlfilename, ifstream &mzmlstream, double fwhm, eModeType mode, cMainThread *os, bool &terminatecomputation)
 Load the series of peaklists from .mzML file. More...
 
int loadFromIMZMLStream (string &imzmlfilename, ifstream &ibdstream, double fwhm, int &defaultmaxx, int &defaultmaxy, int &defaultpixelsizex, int &defaultpixelsizey, eVendorType &vendor, cMainThread *os, bool &terminatecomputation)
 Load the series of peaklists from .imzML file. More...
 
void loadSpotList (ifstream &stream)
 Load a spot list from a stream. More...
 
void loadFromMGFStream (ifstream &stream, int timeunit)
 Load the series of peaklists from a .mgf file. More...
 
int size ()
 The number of peaklists in the series. More...
 
void store (ofstream &os)
 Store the structure into an output stream. More...
 
void load (ifstream &is, int fileversionpart1, int fileversionpart2, int fileversionpart3)
 Load the structure from an input stream. More...
 

Detailed Description

The class representing a series of peaklists.

Constructor & Destructor Documentation

◆ cPeakListSeries()

cPeakListSeries::cPeakListSeries ( const cPeakListSeries peaklistseries)

The copy constructor.

Parameters
peaklistseriesreference to a cPeakListSeries

Member Function Documentation

◆ addPeakList()

void cPeakListSeries::addPeakList ( cPeaksList peaklist)

Add a peaklist.

Parameters
peaklistpeaklist which will be added

◆ load()

void cPeakListSeries::load ( ifstream &  is,
int  fileversionpart1,
int  fileversionpart2,
int  fileversionpart3 
)

Load the structure from an input stream.

Parameters
isan input stream
fileversionpart1first number of .res the file version
fileversionpart2second number of .res the file version
fileversionpart3third number of .res the file version

◆ loadFromBAFStream()

void cPeakListSeries::loadFromBAFStream ( ifstream &  stream)

Load the series of peaklists from a .csv file converted from a .baf file by CompassXport.

Parameters
streamsource stream

◆ loadFromIMZMLStream()

int cPeakListSeries::loadFromIMZMLStream ( string &  imzmlfilename,
ifstream &  ibdstream,
double  fwhm,
int &  defaultmaxx,
int &  defaultmaxy,
int &  defaultpixelsizex,
int &  defaultpixelsizey,
eVendorType vendor,
cMainThread os,
bool &  terminatecomputation 
)

Load the series of peaklists from .imzML file.

Parameters
imzmlfilenameimzML filename
ibdstreamibd binary file stream
fwhmFWHM
defaultmaxxmax count of pixel x - parsed from imzML file
defaultmaxymax count of pixel y - parsed from imzML file
defaultpixelsizexpixel size x - parsed from imzML file
defaultpixelsizeypixel size y - parsed from imzML file
vendorvendor type
ospointer to the main thread of the application (output stream)
terminatecomputationreference to a variable determining that the computation must be stopped
Return values
int0 = success; -1 = aborted by user, -2 = error

◆ loadFromMGFStream()

void cPeakListSeries::loadFromMGFStream ( ifstream &  stream,
int  timeunit 
)

Load the series of peaklists from a .mgf file.

Parameters
streamsource stream
timeunitrt unit

◆ loadFromMZMLStream()

int cPeakListSeries::loadFromMZMLStream ( string &  mzmlfilename,
ifstream &  mzmlstream,
double  fwhm,
eModeType  mode,
cMainThread os,
bool &  terminatecomputation 
)

Load the series of peaklists from .mzML file.

Parameters
mzmlfilenamemzML filename
mzmlstreammzML file stream
fwhmFWHM
modeprogram mode
ospointer to the main thread of the application (output stream)
terminatecomputationreference to a variable determining that the computation must be stopped
Return values
int0 = success; -1 = aborted by user, -2 = error

◆ loadFromPlainTextStream()

void cPeakListSeries::loadFromPlainTextStream ( ifstream &  stream)

Load the series of peaklists from a plain text stream.

Parameters
streamsource stream

◆ loadFromProfileApexStream()

int cPeakListSeries::loadFromProfileApexStream ( string &  filename,
ifstream &  stream,
ifstream &  titlestream,
double  fwhm,
cMainThread os,
bool &  terminatecomputation 
)

Load the series of peaklists from a .csv file converted from apex data by CompassXport.

Parameters
filenamefilename
streamsource stream
titlestreamtitle stream
fwhmFWHM
ospointer to the main thread of the application (output stream)
terminatecomputationreference to a variable determining that the computation must be stopped
Return values
int0 = success; -1 = aborted by user, -2 = error

◆ loadSpotList()

void cPeakListSeries::loadSpotList ( ifstream &  stream)

Load a spot list from a stream.

Parameters
streamsource stream

◆ operator=()

cPeakListSeries & cPeakListSeries::operator= ( const cPeakListSeries peaklistseries)

Overloaded operator=.

Parameters
peaklistseriesreference to a cPeakListSeries

◆ operator[]()

cPeaksList & cPeakListSeries::operator[] ( int  position)

Overloaded operator [].

Parameters
positionposition of a peaklist
Return values
cPeaksListreference to a peaklist

◆ resize()

void cPeakListSeries::resize ( int  size)

Resize the peaklist series.

Parameters
sizenew size

◆ size()

int cPeakListSeries::size ( )

The number of peaklists in the series.

Return values
intnumber of peaklists in the series

◆ store()

void cPeakListSeries::store ( ofstream &  os)

Store the structure into an output stream.

Parameters
osan output stream

The documentation for this class was generated from the following files: