OpenMS
Loading...
Searching...
No Matches
SimpleOpenMSSpectraAccessFactory.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: Hannes Roest $
6// $Authors: Hannes Roest, Witold Wolski $
7// --------------------------------------------------------------------------
8
9#pragma once
10
11#include <fstream>
12
16#include <memory>
17
18namespace OpenMS
19{
23 class OPENMS_DLLAPI SimpleOpenMSSpectraFactory
24 {
25 public:
26
28 static OpenSwath::SpectrumAccessPtr getSpectrumAccessOpenMSPtr(const std::shared_ptr<OpenMS::PeakMap>& exp);
29
30 private:
31
32 static bool isExperimentCached(const std::shared_ptr<OpenMS::PeakMap>& exp);
33 };
34}
35
36
A factory method that returns two ISpectrumAccess implementations.
Definition SimpleOpenMSSpectraAccessFactory.h:24
static OpenSwath::SpectrumAccessPtr getSpectrumAccessOpenMSPtr(const std::shared_ptr< OpenMS::PeakMap > &exp)
Simple Factory method to get a SpectrumAccess Ptr from an MSExperiment.
static bool isExperimentCached(const std::shared_ptr< OpenMS::PeakMap > &exp)
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::shared_ptr< ISpectrumAccess > SpectrumAccessPtr
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:131