OpenMS
ChromeleonFile.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Douglas McCloskey, Pasquale Domenico Colaianni $
6 // $Authors: Douglas McCloskey, Pasquale Domenico Colaianni $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 #include <OpenMS/config.h> // OPENMS_DLLAPI
14 
15 namespace OpenMS
16 {
27  class OPENMS_DLLAPI ChromeleonFile
28  {
29 public:
31  ChromeleonFile() = default;
33  virtual ~ChromeleonFile() = default;
34 
41  void load(const String& filename, MSExperiment& experiment) const;
42 
51  };
52 }
53 
Load Chromeleon HPLC text file and save it into a MSExperiment.
Definition: ChromeleonFile.h:28
void load(const String &filename, MSExperiment &experiment) const
Load the file's data and metadata, and save it into a MSExperiment.
double removeCommasAndParseDouble(String &number) const
Remove commas from the string (used as thousands separators) and parse its value.
ChromeleonFile()=default
Constructor.
virtual ~ChromeleonFile()=default
Destructor.
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:45
A more convenient string class.
Definition: String.h:34
static String number(double d, UInt n)
Definition: StringUtils.h:191
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19