Used to load CvMapping files. More...
#include <OpenMS/FORMAT/CVMappingFile.h>
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. | |
| CVMappingFile & | operator= (const CVMappingFile &rhs) |
| Not implemented. | |
Private Attributes | |
| String | tag_ |
| bool | strip_namespaces_ |
| CVMappingRule | actual_rule_ |
| std::vector< CVMappingRule > | rules_ |
| std::vector< CVReference > | cv_references_ |
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.
| CVMappingFile | ( | ) |
Default constructor.
| virtual ~CVMappingFile | ( | ) | [virtual] |
Destructor.
| CVMappingFile | ( | const CVMappingFile & | rhs | ) | [private] |
Not implemented.
| 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
| Exception::FileNotFound | is thrown if the file could not be opened | |
| Exception::ParseError | is thrown if an error occurs during parsing |
| 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] |
CVMappingRule actual_rule_ [private] |
std::vector<CVReference> cv_references_ [private] |
std::vector<CVMappingRule> rules_ [private] |
bool strip_namespaces_ [private] |
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:53 using doxygen 1.7.1 |