OpenMS
KroenikFile.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: Chris Bielow $
6 // $Authors: Chris Bielow $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
12 
14 
15 namespace OpenMS
16 {
17  class String;
18 
36  class OPENMS_DLLAPI KroenikFile
37  {
38 public:
42  virtual ~KroenikFile();
43 
52  void load(const String& filename, FeatureMap& feature_map);
53 
61  template <typename SpectrumType>
62  void store(const String& filename, const SpectrumType& spectrum) const
63  {
64  std::cerr << "Store() for KroenikFile not implemented. Filename was: " << filename << ", spec of size " << spectrum.size() << "\n";
65  throw Exception::NotImplemented(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION);
66  }
67 
68  };
69 } // namespace OpenMS
70 
Not implemented exception.
Definition: Exception.h:404
A container for features.
Definition: FeatureMap.h:80
File adapter for Kroenik (HardKloer sibling) files.
Definition: KroenikFile.h:37
void store(const String &filename, const SpectrumType &spectrum) const
Stores a featureXML as a Kroenik file.
Definition: KroenikFile.h:62
void load(const String &filename, FeatureMap &feature_map)
Loads a Kroenik file into a featureXML.
KroenikFile()
Default constructor.
virtual ~KroenikFile()
Destructor.
The representation of a 1D spectrum.
Definition: MSSpectrum.h:44
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22