OpenMS
AcquisitionInfo.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: Marc Sturm $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
13 
14 #include <vector>
15 
16 namespace OpenMS
17 {
26  class OPENMS_DLLAPI AcquisitionInfo :
27  private std::vector<Acquisition>,
28  public MetaInfoInterface
29  {
30 private:
31  typedef std::vector<Acquisition> ContainerType;
32 
33 public:
35  AcquisitionInfo() = default;
37  AcquisitionInfo(const AcquisitionInfo&) = default;
41  ~AcquisitionInfo() = default;
42 
47 
49  bool operator==(const AcquisitionInfo& rhs) const;
51  bool operator!=(const AcquisitionInfo& rhs) const;
52 
56  void setMethodOfCombination(const String& method_of_combination);
57 
59 
60  using ContainerType::operator[];
61  using ContainerType::begin;
62  using ContainerType::end;
63  using ContainerType::size;
64  using ContainerType::push_back;
65  using ContainerType::empty;
66  using ContainerType::back;
67  using ContainerType::insert;
68  using ContainerType::resize;
69 
70  using ContainerType::iterator;
71  using ContainerType::const_iterator;
73 
74 protected:
76 
77  };
78 } // namespace OpenMS
79 
Description of the combination of raw data to a single spectrum.
Definition: AcquisitionInfo.h:29
void setMethodOfCombination(const String &method_of_combination)
sets the method of combination
std::vector< Acquisition > ContainerType
Definition: AcquisitionInfo.h:31
AcquisitionInfo(AcquisitionInfo &&)=default
Move constructor.
const String & getMethodOfCombination() const
returns the method of combination
AcquisitionInfo & operator=(AcquisitionInfo &&) &=default
Move assignment operator.
AcquisitionInfo(const AcquisitionInfo &)=default
Copy constructor.
String method_of_combination_
Definition: AcquisitionInfo.h:75
AcquisitionInfo & operator=(const AcquisitionInfo &)=default
Assignment operator.
AcquisitionInfo()=default
Constructor.
bool operator==(const AcquisitionInfo &rhs) const
Equality operator.
bool operator!=(const AcquisitionInfo &rhs) const
Equality operator.
~AcquisitionInfo()=default
Destructor.
Interface for classes that can store arbitrary meta information (Type-Name-Value tuples).
Definition: MetaInfoInterface.h:35
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22