37 accession(p_accession),
69 return !(*
this == rhs);
Representation of controlled vocabulary term.
Definition: CVTerm.h:27
bool operator==(const CVTerm &rhs) const
equality operator
const String & getCVIdentifierRef() const
returns the cv identifier reference string
virtual ~CVTerm()
Destructor.
void setUnit(const Unit &unit)
sets the unit of the term
Unit unit_
Definition: CVTerm.h:156
String name_
Definition: CVTerm.h:152
DataValue value_
Definition: CVTerm.h:158
CVTerm(const CVTerm &)=default
Copy constructor.
CVTerm(CVTerm &&)=default
Move constructor.
CVTerm & operator=(CVTerm &&) &=default
Move assignment operator.
void setCVIdentifierRef(const String &cv_identifier_ref)
sets the cv identifier reference string, e.g. UO for unit obo
void setName(const String &name)
sets the name of the term
const Unit & getUnit() const
returns the unit
void setValue(const DataValue &value)
set the value of the term
const String & getAccession() const
returns the accession string of the term
String accession_
Definition: CVTerm.h:150
const String & getName() const
returns the name of the term
void setAccession(const String &accession)
sets the accession string of the term
bool hasUnit() const
checks whether the term has a unit
const DataValue & getValue() const
returns the value of the term
bool operator!=(const CVTerm &rhs) const
inequality operator
String cv_identifier_ref_
Definition: CVTerm.h:154
CVTerm & operator=(const CVTerm &)=default
Assignment operator.
bool hasValue() const
checks whether the term has a value
CVTerm()=default
Default constructor.
CVTerm(const String &accession, const String &name="", const String &cv_identifier_ref="", const String &value="", const Unit &unit=Unit())
Detailed constructor.
Class to hold strings, numeric values, lists of strings and lists of numeric values.
Definition: DataValue.h:33
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
bool operator!=(const Unit &rhs) const
Definition: CVTerm.h:67
Unit()=default
Default constructor.
String cv_ref
Definition: CVTerm.h:74
Unit & operator=(Unit &&) &=default
Move assignment operator.
virtual ~Unit()
Destructor.
Definition: CVTerm.h:50
String name
Definition: CVTerm.h:73
String accession
Definition: CVTerm.h:72
Unit(const String &p_accession, const String &p_name, const String &p_cv_ref)
Definition: CVTerm.h:36
Unit(Unit &&)=default
Move constructor.
Unit & operator=(const Unit &)=default
Assignment operator.
bool operator==(const Unit &rhs) const
Definition: CVTerm.h:60
Unit(const Unit &)=default
Copy constructor.