Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes

ControlledVocabulary::CVTerm Struct Reference

Representation of a CV term. More...

#include <OpenMS/FORMAT/ControlledVocabulary.h>

List of all members.

Public Types

enum  XRefType {
  XSD_STRING = 0, XSD_INTEGER, XSD_DECIMAL, XSD_NEGATIVE_INTEGER,
  XSD_POSITIVE_INTEGER, XSD_NON_NEGATIVE_INTEGER, XSD_NON_POSITIVE_INTEGER, XSD_BOOLEAN,
  XSD_DATE, XSD_ANYURI, NONE
}
 

define xsd types allowed in cv term to specify their value-type

More...

Public Member Functions

 CVTerm ()
 Default constructor.
 CVTerm (const CVTerm &rhs)
CVTermoperator= (const CVTerm &rhs)
String toXMLString (const String &ref, const String &value=String("")) const
 get mzidentml formatted string. i.e. a cvparam xml element, ref should be the name of the ControlledVocabulary (i.e. cv.name()) containing the CVTerm (e.g. PSI-MS for the psi-ms.obo - gets loaded in all cases like that??), value can be empty if not available
String toXMLString (const String &ref, const DataValue &value) const
 get mzidentml formatted string. i.e. a cvparam xml element, ref should be the name of the ControlledVocabulary (i.e. cv.name()) containing the CVTerm (e.g. PSI-MS for the psi-ms.obo - gets loaded in all cases like that??), value can be empty if not available

Static Public Member Functions

static String getXRefTypeName (XRefType type)

Public Attributes

String name
 Text name.
String id
 Identifier.
std::set< Stringparents
 The parent IDs.
std::set< Stringchildren
 The child IDs.
bool obsolete
 Flag that indicates of the term is obsolete.
String description
 Term description.
StringList synonyms
 List of synonyms.
StringList unparsed
 Unparsed lines from the definition file.
XRefType xref_type
 xref value-type for the CV-term
StringList xref_binary
 xref binary-data-type for the CV-term (list of all allowed data value types for the current binary data array)
std::set< Stringunits
 unit accession ids, defined by relationship has units

Detailed Description

Representation of a CV term.


Member Enumeration Documentation

enum XRefType

define xsd types allowed in cv term to specify their value-type

Enumerator:
XSD_STRING 
XSD_INTEGER 
XSD_DECIMAL 
XSD_NEGATIVE_INTEGER 
XSD_POSITIVE_INTEGER 
XSD_NON_NEGATIVE_INTEGER 
XSD_NON_POSITIVE_INTEGER 
XSD_BOOLEAN 
XSD_DATE 
XSD_ANYURI 
NONE 

Constructor & Destructor Documentation

CVTerm (  ) 

Default constructor.

CVTerm ( const CVTerm rhs  ) 

Member Function Documentation

static String getXRefTypeName ( XRefType  type  )  [static]
CVTerm& operator= ( const CVTerm rhs  ) 
String toXMLString ( const String ref,
const String value = String("") 
) const

get mzidentml formatted string. i.e. a cvparam xml element, ref should be the name of the ControlledVocabulary (i.e. cv.name()) containing the CVTerm (e.g. PSI-MS for the psi-ms.obo - gets loaded in all cases like that??), value can be empty if not available

String toXMLString ( const String ref,
const DataValue value 
) const

get mzidentml formatted string. i.e. a cvparam xml element, ref should be the name of the ControlledVocabulary (i.e. cv.name()) containing the CVTerm (e.g. PSI-MS for the psi-ms.obo - gets loaded in all cases like that??), value can be empty if not available


Member Data Documentation

std::set<String> children

The child IDs.

Term description.

bool obsolete

Flag that indicates of the term is obsolete.

Referenced by MzMLHandler< MapType >::handleCVParam_().

std::set<String> parents

The parent IDs.

List of synonyms.

std::set<String> units

unit accession ids, defined by relationship has units

Unparsed lines from the definition file.

xref binary-data-type for the CV-term (list of all allowed data value types for the current binary data array)

xref value-type for the CV-term

Referenced by MzMLHandler< MapType >::handleCVParam_().


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