OpenMS
BaseGroupFinder.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: Timo Sachsenberg $
6 // $Authors: Clemens Groepl, Marc Sturm $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
14 
15 #include <utility>
16 #include <fstream>
17 
18 namespace OpenMS
19 {
20 
35  class OPENMS_DLLAPI BaseGroupFinder :
36  public DefaultParamHandler,
37  public ProgressLogger
38  {
39 public:
42 
44  ~BaseGroupFinder() override;
45 
51  virtual void run(const std::vector<ConsensusMap> & input, ConsensusMap & result) = 0;
52 
54  static void registerChildren();
55 
56 protected:
57 
63  void checkIds_(const std::vector<ConsensusMap> & maps) const;
64 
65 private:
66 
69 
72 
73  };
74 
75 } // namespace OpenMS
76 
The base class of all element group finding algorithms.
Definition: BaseGroupFinder.h:38
BaseGroupFinder()
Default constructor.
static void registerChildren()
Register all derived classes here.
void checkIds_(const std::vector< ConsensusMap > &maps) const
Checks if all file descriptions have disjoint map identifiers.
BaseGroupFinder(const BaseGroupFinder &)
Copy constructor intentionally not implemented.
virtual void run(const std::vector< ConsensusMap > &input, ConsensusMap &result)=0
Run the algorithm.
~BaseGroupFinder() override
Destructor.
BaseGroupFinder & operator=(const BaseGroupFinder &)
Assignment operator intentionally not implemented.
A container for consensus elements.
Definition: ConsensusMap.h:66
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:66
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:27
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22