OpenMS
Loading...
Searching...
No Matches
KroenikFile.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- 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
15namespace OpenMS
16{
17
35 class OPENMS_DLLAPI KroenikFile
36 {
37public:
41 virtual ~KroenikFile();
42
51 void load(const std::string& filename, FeatureMap& feature_map);
52
60 template <typename SpectrumType>
61 void store(const std::string& filename, const SpectrumType& spectrum) const
62 {
63 std::cerr << "Store() for KroenikFile not implemented. Filename was: " << filename << ", spec of size " << spectrum.size() << "\n";
64 throw Exception::NotImplemented(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION);
65 }
66
67 };
68} // namespace OpenMS
69
Not implemented exception.
Definition Exception.h:400
A container for features.
Definition FeatureMap.h:78
File adapter for Kroenik (HardKloer sibling) files.
Definition KroenikFile.h:36
void store(const std::string &filename, const SpectrumType &spectrum) const
Stores a featureXML as a Kroenik file.
Definition KroenikFile.h:61
void load(const std::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
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19