OpenMS
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 
14 
15 namespace OpenMS
16 {
22  class OPENMS_DLLAPI MetaInfoDescription :
23  public MetaInfoInterface
24  {
25 public:
27  MetaInfoDescription() = default;
34 
39 
41  bool operator==(const MetaInfoDescription & rhs) const;
42 
44  const String & getName() const;
46  void setName(const String & name);
47 
49  const std::vector<ConstDataProcessingPtr> & getDataProcessing() const;
51  std::vector<DataProcessingPtr> & getDataProcessing();
53  void setDataProcessing(const std::vector<DataProcessingPtr> & data_processing);
54 
55 protected:
58  std::vector<DataProcessingPtr> data_processing_;
59  };
60 } // namespace OpenMS
61 
Description of the meta data arrays of MSSpectrum.
Definition: MetaInfoDescription.h:24
String comment_
Definition: MetaInfoDescription.h:56
MetaInfoDescription & operator=(const MetaInfoDescription &)=default
Assignment operator.
MetaInfoDescription & operator=(MetaInfoDescription &&) &=default
Move assignment operator.
String name_
Definition: MetaInfoDescription.h:57
bool operator==(const MetaInfoDescription &rhs) const
Equality 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
const String & getName() const
returns the name of the peak annotations
MetaInfoDescription()=default
Constructor.
std::vector< DataProcessingPtr > data_processing_
Definition: MetaInfoDescription.h:58
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