MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / load

Method load

src/openms/source/FORMAT/CVMappingFile.cpp:30–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 CVMappingFile::~CVMappingFile() = default;
29
30 void CVMappingFile::load(const String& filename, CVMappings& cv_mappings, bool strip_namespaces)
31 {
32 //File name for error messages in XMLHandler
33 file_ = filename;
34
35 strip_namespaces_ = strip_namespaces;
36
37 parse_(filename, this);
38
39 cv_mappings.setCVReferences(cv_references_);
40 cv_mappings.setMappingRules(rules_);
41
42 cv_references_.clear();
43 rules_.clear();
44
45 return;
46 }
47
48 void CVMappingFile::startElement(const XMLCh* const /*uri*/, const XMLCh* const /*local_name*/, const XMLCh* const qname, const Attributes& attributes)
49 {

Callers

nothing calls this directly

Calls 3

setCVReferencesMethod · 0.80
setMappingRulesMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected