OpenMS
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 <boost/shared_ptr.hpp>
17 
18 namespace OpenMS
19 {
23  class OPENMS_DLLAPI SimpleOpenMSSpectraFactory
24  {
25  public:
26 
28  static OpenSwath::SpectrumAccessPtr getSpectrumAccessOpenMSPtr(const boost::shared_ptr<OpenMS::PeakMap>& exp);
29 
30  private:
31 
32  static bool isExperimentCached(const boost::shared_ptr<OpenMS::PeakMap>& exp);
33  };
34 }
35 
36 
A factory method that returns two ISpectrumAccess implementations.
Definition: SimpleOpenMSSpectraAccessFactory.h:24
static bool isExperimentCached(const boost::shared_ptr< OpenMS::PeakMap > &exp)
static OpenSwath::SpectrumAccessPtr getSpectrumAccessOpenMSPtr(const boost::shared_ptr< OpenMS::PeakMap > &exp)
Simple Factory method to get a SpectrumAccess Ptr from an MSExperiment.
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
boost::shared_ptr< ISpectrumAccess > SpectrumAccessPtr
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:131