All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
MetaInfoDescription.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: Timo Sachsenberg $
6 // $Authors: Marc Sturm $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 #include <compare>
15 
16 namespace OpenMS
17 {
23  class OPENMS_DLLAPI MetaInfoDescription :
24  public MetaInfoInterface
25  {
26 public:
28  MetaInfoDescription() = default;
35 
40 
42  bool operator==(const MetaInfoDescription & rhs) const;
44  bool operator<(const MetaInfoDescription & rhs) const;
46  bool operator<=(const MetaInfoDescription & rhs) const;
48  bool operator>(const MetaInfoDescription & rhs) const;
50  bool operator>=(const MetaInfoDescription & rhs) const;
52  bool operator!=(const MetaInfoDescription & rhs) const;
53 
55  const String & getName() const;
57  void setName(const String & name);
58 
60  const std::vector<ConstDataProcessingPtr> & getDataProcessing() const;
62  std::vector<DataProcessingPtr> & getDataProcessing();
64  void setDataProcessing(const std::vector<DataProcessingPtr> & data_processing);
65 
66 protected:
68  std::vector<DataProcessingPtr> data_processing_;
69  };
70 } // namespace OpenMS
71 
Description of the meta data arrays of MSSpectrum.
Definition: MetaInfoDescription.h:25
MetaInfoDescription & operator=(const MetaInfoDescription &)=default
Assignment operator.
MetaInfoDescription & operator=(MetaInfoDescription &&) &=default
Move assignment operator.
String name_
Definition: MetaInfoDescription.h:67
bool operator==(const MetaInfoDescription &rhs) const
Equality operator.
bool operator<(const MetaInfoDescription &rhs) const
Less than operator.
bool operator!=(const MetaInfoDescription &rhs) const
Not equal operator.
~MetaInfoDescription()
Destructor.
void setName(const String &name)
sets the name of the peak annotations
const std::vector< ConstDataProcessingPtr > & getDataProcessing() const
returns a const reference to the description of the applied processing
MetaInfoDescription(MetaInfoDescription &&)=default
Move constructor.
void setDataProcessing(const std::vector< DataProcessingPtr > &data_processing)
sets the description of the applied processing
bool operator<=(const MetaInfoDescription &rhs) const
Less than or equal operator.
const String & getName() const
returns the name of the peak annotations
bool operator>=(const MetaInfoDescription &rhs) const
Greater than or equal operator.
MetaInfoDescription()=default
Constructor.
std::vector< DataProcessingPtr > data_processing_
Definition: MetaInfoDescription.h:68
bool operator>(const MetaInfoDescription &rhs) const
Greater than operator.
std::vector< DataProcessingPtr > & getDataProcessing()
returns a mutable reference to the description of the applied processing
MetaInfoDescription(const MetaInfoDescription &)=default
Copy constructor.
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: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19