OpenMS
CVReference.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, 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: Andreas Bertsch $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 #include <OpenMS/OpenMSConfig.h>
13 
14 #include <vector>
15 
16 namespace OpenMS
17 {
26  class OPENMS_DLLAPI CVReference
27  {
28 public:
29 
32 
34  CVReference(const CVReference& rhs);
35 
37  virtual ~CVReference();
38 
41 
46  void setName(const String& name);
47 
49  const String& getName() const;
50 
52  void setIdentifier(const String& identifier);
53 
55  const String& getIdentifier() const;
57 
62  bool operator==(const CVReference& rhs) const;
63 
65  bool operator!=(const CVReference& rhs) const;
67 
68 
69 protected:
70 
72 
74  };
75 
76 
77 } // namespace OpenMS
78 
Controlled Vocabulary Reference.
Definition: CVReference.h:27
const String & getIdentifier() const
returns the CV identifier which is referenced
bool operator==(const CVReference &rhs) const
equality operator
virtual ~CVReference()
Destructor.
void setIdentifier(const String &identifier)
sets the CV identifier which is referenced
String name_
Definition: CVReference.h:71
CVReference()
Default constructor.
void setName(const String &name)
sets the name of the CV reference
CVReference & operator=(const CVReference &rhs)
Assignment operator.
const String & getName() const
returns the name of the CV reference
bool operator!=(const CVReference &rhs) const
inequality operator
CVReference(const CVReference &rhs)
Copy constructor.
String identifier_
Definition: CVReference.h:73
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19