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