Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes

CVMappingFile Class Reference
[File IO]

Used to load CvMapping files. More...

#include <OpenMS/FORMAT/CVMappingFile.h>

Inheritance diagram for CVMappingFile:
XMLHandler XMLFile DefaultHandler

List of all members.

Public Member Functions

 CVMappingFile ()
 Default constructor.
virtual ~CVMappingFile ()
 Destructor.
void load (const String &filename, CVMappings &cv_mappings, bool strip_namespaces=false)
 loads CvMappings from the given file

Protected Member Functions

void startElement (const XMLCh *const , const XMLCh *const , const XMLCh *const qname, const xercesc::Attributes &attributes)
void endElement (const XMLCh *const , const XMLCh *const , const XMLCh *const qname)
void characters (const XMLCh *const chars, const XMLSize_t)

Private Member Functions

 CVMappingFile (const CVMappingFile &rhs)
 Not implemented.
CVMappingFileoperator= (const CVMappingFile &rhs)
 Not implemented.

Private Attributes

String tag_
bool strip_namespaces_
CVMappingRule actual_rule_
std::vector< CVMappingRulerules_
std::vector< CVReferencecv_references_

Detailed Description

Used to load CvMapping files.

This file contains the mapping of CV terms to the schema, which is used by PSI standard formats to semantically validate files.


Constructor & Destructor Documentation

CVMappingFile (  ) 

Default constructor.

virtual ~CVMappingFile (  )  [virtual]

Destructor.

CVMappingFile ( const CVMappingFile rhs  )  [private]

Not implemented.


Member Function Documentation

void characters ( const XMLCh *const   chars,
const   XMLSize_t 
) [protected]
void endElement ( const XMLCh *  const,
const XMLCh *  const,
const XMLCh *const   qname 
) [protected]
void load ( const String filename,
CVMappings cv_mappings,
bool  strip_namespaces = false 
)

loads CvMappings from the given file

Exceptions:
Exception::FileNotFound is thrown if the file could not be opened
Exception::ParseError is thrown if an error occurs during parsing
Parameters:
strip_namespaces if enable, namespace definitions of the paths are eliminated, e.g. 'pf:cvParam' -> 'cvParam'
cv_mappings The CVMappings instance in which the rules, cvs and other content from the file should be stored
filename The filename to read from
CVMappingFile& operator= ( const CVMappingFile rhs  )  [private]

Not implemented.

void startElement ( const XMLCh *  const,
const XMLCh *  const,
const XMLCh *const   qname,
const xercesc::Attributes &  attributes 
) [protected]

Member Data Documentation

std::vector<CVReference> cv_references_ [private]
std::vector<CVMappingRule> rules_ [private]
bool strip_namespaces_ [private]
String tag_ [private]

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