OpenMS
FidHandler.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Timo Sachsenberg $
6 // $Authors: Guillaume Belz $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
12 #include <fstream>
13 
14 namespace OpenMS
15 {
16  namespace Internal
17  {
25  class OPENMS_DLLAPI FidHandler :
26  public std::ifstream
27  {
28 public:
36  explicit FidHandler(const String & filename);
37 
39  ~FidHandler() override;
40 
42  Size getIndex() const;
43 
46 
47 private:
50 
53  };
54 
55  } // namespace Internal
56 } // namespace OpenMS
57 
Read-only fid File handler for XMass Analysis.
Definition: FidHandler.h:27
FidHandler(const String &filename)
Constructor with filename.
Size getIndex() const
Get index of current position (without position moving).
FidHandler()
Private default constructor.
Size getIntensity()
Get intensity of current position and move to next position.
~FidHandler() override
Destructor.
Size index_
Index of position.
Definition: FidHandler.h:52
A more convenient string class.
Definition: String.h:34
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:101
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22