OpenMS
Loading...
Searching...
No Matches
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
16namespace OpenMS
17{
23 class OPENMS_DLLAPI MetaInfoDescription :
25 {
26public:
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
66protected:
68 std::vector<DataProcessingPtr> data_processing_;
69 };
70} // namespace OpenMS
71
Description of the meta data arrays of MSSpectrum.
Definition MetaInfoDescription.h:25
std::vector< DataProcessingPtr > & getDataProcessing()
returns a mutable reference to the description of the applied processing
String name_
Definition MetaInfoDescription.h:67
MetaInfoDescription & operator=(const MetaInfoDescription &)=default
Assignment operator.
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
MetaInfoDescription & operator=(MetaInfoDescription &&) &=default
Move assignment operator.
MetaInfoDescription(MetaInfoDescription &&)=default
Move constructor.
const String & getName() const
returns the name of the peak annotations
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.
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.
const std::vector< ConstDataProcessingPtr > & getDataProcessing() const
returns a const 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:36
A more convenient string class.
Definition String.h:34
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19