OpenMS
FidHandler Class Reference

Read-only fid File handler for XMass Analysis. More...

#include <OpenMS/FORMAT/HANDLERS/FidHandler.h>

Inheritance diagram for FidHandler:
[legend]
Collaboration diagram for FidHandler:
[legend]

Public Member Functions

 FidHandler (const String &filename)
 Constructor with filename. More...
 
 ~FidHandler () override
 Destructor. More...
 
Size getIndex () const
 Get index of current position (without position moving). More...
 
Size getIntensity ()
 Get intensity of current position and move to next position. More...
 

Private Member Functions

 FidHandler ()
 Private default constructor. More...
 

Private Attributes

Size index_
 Index of position. More...
 

Detailed Description

Read-only fid File handler for XMass Analysis.

fid File contains intensity array. Intensity for each point are coded in 4 bytes integer.

Note
Do not use this class directly. It is only needed for XMassFile.

Constructor & Destructor Documentation

◆ FidHandler() [1/2]

FidHandler ( const String filename)
explicit

Constructor with filename.

Open fid File as stream and initialize index.

Parameters
filenameto fid File.

◆ ~FidHandler()

~FidHandler ( )
override

Destructor.

◆ FidHandler() [2/2]

FidHandler ( )
private

Private default constructor.

Member Function Documentation

◆ getIndex()

Size getIndex ( ) const

Get index of current position (without position moving).

Referenced by XMassFile::load().

◆ getIntensity()

Size getIntensity ( )

Get intensity of current position and move to next position.

Referenced by XMassFile::load().

Member Data Documentation

◆ index_

Size index_
private

Index of position.