Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | Protected Attributes | List of all members
CVMappings Class Reference

Representation of controlled vocabulary mapping rules (for PSI formats) More...

#include <OpenMS/DATASTRUCTURES/CVMappings.h>

Public Member Functions

 CVMappings ()
 Default constructor. More...
 
 CVMappings (const CVMappings &rhs)
 Copy constructor. More...
 
virtual ~CVMappings ()
 Destructor. More...
 
CVMappingsoperator= (const CVMappings &rhs)
 Assignment operator. More...
 
Accessors
void setMappingRules (const std::vector< CVMappingRule > &cv_mapping_rules)
 sets the mapping rules of the mapping file More...
 
const std::vector< CVMappingRule > & getMappingRules () const
 returns the mapping rules More...
 
void addMappingRule (const CVMappingRule &cv_mapping_rule)
 adds a mapping rule More...
 
void setCVReferences (const std::vector< CVReference > &cv_references)
 sets the CV references More...
 
const std::vector< CVReference > & getCVReferences () const
 returns the CV references More...
 
void addCVReference (const CVReference &cv_reference)
 adds a CV reference More...
 
Predicates
bool hasCVReference (const String &identifier)
 returns true if a CV reference is given More...
 
bool operator== (const CVMappings &rhs) const
 equality operator More...
 
bool operator!= (const CVMappings &rhs) const
 inequality operator More...
 

Protected Attributes

std::vector< CVMappingRulemapping_rules_
 
std::map< String, CVReferencecv_references_
 
std::vector< CVReferencecv_references_vector_
 

Detailed Description

Representation of controlled vocabulary mapping rules (for PSI formats)

This file serves as object for the controlled vocabulary term usage definitions used in CV-Mapping files. All the supported attributes supported in the mapping file are supported by this class.

Constructor & Destructor Documentation

Default constructor.

CVMappings ( const CVMappings rhs)

Copy constructor.

virtual ~CVMappings ( )
virtual

Destructor.

Member Function Documentation

void addCVReference ( const CVReference cv_reference)

adds a CV reference

void addMappingRule ( const CVMappingRule cv_mapping_rule)

adds a mapping rule

const std::vector<CVReference>& getCVReferences ( ) const

returns the CV references

const std::vector<CVMappingRule>& getMappingRules ( ) const

returns the mapping rules

bool hasCVReference ( const String identifier)

returns true if a CV reference is given

bool operator!= ( const CVMappings rhs) const

inequality operator

CVMappings& operator= ( const CVMappings rhs)

Assignment operator.

bool operator== ( const CVMappings rhs) const

equality operator

void setCVReferences ( const std::vector< CVReference > &  cv_references)

sets the CV references

void setMappingRules ( const std::vector< CVMappingRule > &  cv_mapping_rules)

sets the mapping rules of the mapping file

Member Data Documentation

std::map<String, CVReference> cv_references_
protected
std::vector<CVReference> cv_references_vector_
protected
std::vector<CVMappingRule> mapping_rules_
protected

OpenMS / TOPP release 2.0.0 Documentation generated on Wed Mar 30 2016 12:49:27 using doxygen 1.8.11