| OpenMS 2.5.0

Public Member Functions | Protected Attributes | List of all members
CVReference Class Reference
Datastructures

Controlled Vocabulary Reference. More...

`#include <OpenMS/DATASTRUCTURES/CVReference.h>`

## Public Member Functions

| CVReference ()
| Default constructor. More...
| CVReference (const CVReference &rhs)
| Copy constructor. More...
virtual | ~CVReference ()
| Destructor. More...
CVReference & | operator= (const CVReference &rhs)
| Assignment operator. More...
Accessors
void | setName (const String &name)
| sets the name of the CV reference More...
const String & | getName () const
| returns the name of the CV reference More...
void | setIdentifier (const String &identifier)
| sets the CV identifier which is referenced More...
const String & | getIdentifier () const
| returns the CV identifier which is referenced More...
Predicates
bool | operator== (const CVReference &rhs) const
| equality operator More...
bool | operator!= (const CVReference &rhs) const
| inequality operator More...

## Protected Attributes

String | name_
String | identifier_

## Detailed Description

Controlled Vocabulary Reference.

Reference to a controlled vocabulary, defined in the first section of a mapping file.

## Constructor & Destructor Documentation

## ◆ CVReference() [1/2]

CVReference | ( |  | ) |

Default constructor.

## ◆ CVReference() [2/2]

CVReference | ( | const CVReference & | rhs | ) |

Copy constructor.

## ◆ ~CVReference()

virtual ~CVReference | ( |  | ) |

virtual

Destructor.

## Member Function Documentation

## ◆ getIdentifier()

const String& getIdentifier | ( |  | ) | const

returns the CV identifier which is referenced

## ◆ getName()

const String& getName | ( |  | ) | const

returns the name of the CV reference

## ◆ operator!=()

bool operator!= | ( | const CVReference & | rhs | ) | const

inequality operator

## ◆ operator=()

CVReference& operator= | ( | const CVReference & | rhs | ) |

Assignment operator.

## ◆ operator==()

bool operator== | ( | const CVReference & | rhs | ) | const

equality operator

## ◆ setIdentifier()

void setIdentifier | ( | const String & | identifier | ) |

sets the CV identifier which is referenced

## ◆ setName()

void setName | ( | const String & | name | ) |

sets the name of the CV reference

## Member Data Documentation

## ◆ identifier_

String identifier_

protected

## ◆ name_

String name_

protected