|
OpenMS
2.6.0
|
Go to the documentation of this file.
79 void load(
const String& filename,
CVMappings& cv_mappings,
bool strip_namespaces =
false);
84 void startElement(
const XMLCh*
const ,
const XMLCh*
const ,
const XMLCh*
const qname,
const xercesc::Attributes& attributes)
override;
87 void endElement(
const XMLCh*
const ,
const XMLCh*
const ,
const XMLCh*
const qname)
override;
90 void characters(
const XMLCh*
const chars,
const XMLSize_t )
override;
Base class for TOPP applications.
Definition: TOPPBase.h:144
void addLine(const StringType &line)
Definition: TextFile.h:112
Used to load CvMapping files.
Definition: CVMappingFile.h:58
Representation of a controlled vocabulary.
Definition: ControlledVocabulary.h:54
Base class for XML handlers.
Definition: XMLHandler.h:151
CVMappingRule actual_rule_
Definition: CVMappingFile.h:104
bool obsolete
Flag that indicates of the term is obsolete.
Definition: ControlledVocabulary.h:86
void load(const String &filename, CVMappings &cv_mappings, bool strip_namespaces=false)
loads CvMappings from the given file
A more convenient string class.
Definition: String.h:59
Definition: CVMappingRule.h:61
This class provides some basic file handling methods for text files.
Definition: TextFile.h:46
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
const std::vector< CVMappingRule > & getMappingRules() const
returns the mapping rules
static String getXRefTypeName(XRefType type)
Definition: ControlledVocabulary.h:75
void getAllChildTerms(std::set< String > &terms, const String &parent) const
Writes all child terms recursively into terms.
Definition: CVMappingRule.h:62
Representation of controlled vocabulary mapping rules (for PSI formats)
Definition: CVMappings.h:56
XRefType xref_type
xref value-type for the CV-term
Definition: ControlledVocabulary.h:90
static String concatenate(const std::vector< T > &container, const String &glue="")
Concatenates all elements of the container and puts the glue string between elements.
Definition: ListUtils.h:193
void loadFromOBO(const String &name, const String &filename)
Loads the CV from an OBO file.
String id
Identifier.
Definition: ControlledVocabulary.h:83
String name
if it is a score type, lookup has_order
Definition: ControlledVocabulary.h:82
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
Definition: CVMappingRule.h:60
StringList synonyms
List of synonyms.
Definition: ControlledVocabulary.h:88
Definition: CVMappingRule.h:68
const Map< String, CVTerm > & getTerms() const
returns all the terms stored in the CV
Representation of a CV Mapping rule used by CVMappings.
Definition: CVMappingRule.h:53
const CVTerm & getTerm(const String &id) const
Returns a term specified by ID.
std::vector< CVMappingRule > rules_
Definition: CVMappingFile.h:106
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
Definition: CVMappingRule.h:69
Base::const_iterator ConstIterator
Definition: Map.h:81
Representation of a CV term.
Definition: ControlledVocabulary.h:60
std::set< String > units
unit accession ids, defined by relationship has units
Definition: ControlledVocabulary.h:92
String tag_
Definition: CVMappingFile.h:100
Base class for loading/storing XML files that have a handler derived from XMLHandler.
Definition: XMLFile.h:48
bool strip_namespaces_
Definition: CVMappingFile.h:102
String description
Term description.
Definition: ControlledVocabulary.h:87
Definition: CVMappingRule.h:70
void store(const String &filename)
Writes the data to a file.
Map class based on the STL map (containing several convenience functions)
Definition: Map.h:50
std::vector< CVReference > cv_references_
Definition: CVMappingFile.h:108
StringList xref_binary
xref binary-data-type for the CV-term (list of all allowed data value types for the current binary da...
Definition: ControlledVocabulary.h:91
bool exists(const String &id) const
Returns true if the term is in the CV. Returns false otherwise.
std::set< String > children
The child IDs.
Definition: ControlledVocabulary.h:85