63 accession(p_accession),
95 return !(*
this == rhs);
Representation of controlled vocabulary term.
Definition: CVTerm.h:53
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:182
String name_
Definition: CVTerm.h:178
DataValue value_
Definition: CVTerm.h:184
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:176
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:180
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:59
A more convenient string class.
Definition: String.h:61
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
bool operator!=(const Unit &rhs) const
Definition: CVTerm.h:93
Unit()=default
Default constructor.
String cv_ref
Definition: CVTerm.h:100
Unit & operator=(Unit &&) &=default
Move assignment operator.
virtual ~Unit()
Destructor.
Definition: CVTerm.h:76
String name
Definition: CVTerm.h:99
String accession
Definition: CVTerm.h:98
Unit(const String &p_accession, const String &p_name, const String &p_cv_ref)
Definition: CVTerm.h:62
Unit(Unit &&)=default
Move constructor.
Unit & operator=(const Unit &)=default
Assignment operator.
bool operator==(const Unit &rhs) const
Definition: CVTerm.h:86
Unit(const Unit &)=default
Copy constructor.