Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions

CVMappingTerm Class Reference
[Datastructures]

Representation of controlled vocabulary term. More...

#include <OpenMS/DATASTRUCTURES/CVMappingTerm.h>

List of all members.

Public Member Functions

 CVMappingTerm ()
 Defaults constructor.
 CVMappingTerm (const CVMappingTerm &rhs)
 Copy constructor.
virtual ~CVMappingTerm ()
 Destructor.
CVMappingTermoperator= (const CVMappingTerm &rhs)
 Assignment operator.
Accessors

void setAccession (const String &accession)
 sets the accession string of the term
const StringgetAccession () const
 returns the accession string of the term
void setUseTermName (bool use_term_name)
 sets whether the term name should be used, instead of the accession
bool getUseTermName () const
 returns whether the term name should be used, instead of the accession
void setUseTerm (bool use_term)
 sets whether the term itself can be used (or only its children)
bool getUseTerm () const
 returns true if the term can be used, false if only children are allowed
void setTermName (const String &term_name)
 sets the name of the term
const StringgetTermName () const
 returns the name of the term
void setIsRepeatable (bool is_repeatable)
 sets whether this term can be repeated
bool getIsRepeatable () const
 returns true if this term can be repeated, false otherwise
void setAllowChildren (bool allow_children)
 sets whether children of this term are allowed
bool getAllowChildren () const
 returns true if the children of this term are allowed to be used
void setCVIdentifierRef (const String &cv_identifier_ref)
 sets the cv identifier reference string, e.g. UO for unit obo
const StringgetCVIdentifierRef () const
 returns the cv identifier reference string

Predicates



String accession_
bool use_term_name_
bool use_term_
String term_name_
bool is_repeatable_
bool allow_children_
String cv_identifier_ref_
bool operator== (const CVMappingTerm &rhs) const
 equality operator
bool operator!= (const CVMappingTerm &rhs) const
 inequality operator

Detailed Description

Representation of controlled vocabulary term.

This class simply stores CV terms read from e.g. an OBO-fileRepresenation of a CV term used by CVMappings


Constructor & Destructor Documentation

CVMappingTerm (  ) 

Defaults constructor.

CVMappingTerm ( const CVMappingTerm rhs  ) 

Copy constructor.

virtual ~CVMappingTerm (  )  [virtual]

Destructor.


Member Function Documentation

const String& getAccession (  )  const

returns the accession string of the term

bool getAllowChildren (  )  const

returns true if the children of this term are allowed to be used

const String& getCVIdentifierRef (  )  const

returns the cv identifier reference string

bool getIsRepeatable (  )  const

returns true if this term can be repeated, false otherwise

const String& getTermName (  )  const

returns the name of the term

bool getUseTerm (  )  const

returns true if the term can be used, false if only children are allowed

bool getUseTermName (  )  const

returns whether the term name should be used, instead of the accession

bool operator!= ( const CVMappingTerm rhs  )  const

inequality operator

CVMappingTerm& operator= ( const CVMappingTerm rhs  ) 

Assignment operator.

bool operator== ( const CVMappingTerm rhs  )  const

equality operator

void setAccession ( const String accession  ) 

sets the accession string of the term

void setAllowChildren ( bool  allow_children  ) 

sets whether children of this term are allowed

void setCVIdentifierRef ( const String cv_identifier_ref  ) 

sets the cv identifier reference string, e.g. UO for unit obo

void setIsRepeatable ( bool  is_repeatable  ) 

sets whether this term can be repeated

void setTermName ( const String term_name  ) 

sets the name of the term

void setUseTerm ( bool  use_term  ) 

sets whether the term itself can be used (or only its children)

void setUseTermName ( bool  use_term_name  ) 

sets whether the term name should be used, instead of the accession


Member Data Documentation

String accession_ [protected]
bool allow_children_ [protected]
bool is_repeatable_ [protected]
String term_name_ [protected]
bool use_term_ [protected]
bool use_term_name_ [protected]

OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:51 using doxygen 1.7.1