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

Method toXMLString

src/openms/source/FORMAT/QcMLFile.cpp:73–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 }
72
73 String QcMLFile::QualityParameter::toXMLString(UInt indentation_level) const
74 {
75 String indent = String(indentation_level, '\t');
76 String s = indent;
77 s += "<qualityParameter";
78 s += " name=\"" + name + "\"" + " ID=\"" + id + "\"" + " cvRef=\"" + cvRef + "\"" + " accession=\"" + cvAcc + "\"";
79 if (!value.empty())
80 {
81 s += " value=\"" + value + "\"";
82 }
83 if (!unitRef.empty())
84 {
85 s += " unitRef=\"" + unitRef + "\"";
86 }
87 if (!unitAcc.empty())
88 {
89 s += " unitAcc=\"" + unitAcc + "\"";
90 }
91 if (!flag.empty())
92 {
93 s += " flag=\"true\"";
94 }
95
96 s += "/>\n";
97
98 return s;
99 }
100
101 QcMLFile::Attachment::Attachment() :
102 name(),

Callers 9

storeMethod · 0.45
writeToMethod · 0.45
writeMetaInfos_Method · 0.45
writeEnzyme_Method · 0.45
writeModParam_Method · 0.45
writePeptideHitMethod · 0.45
writeXLMSPeptideHitMethod · 0.45
START_SECTIONFunction · 0.45

Calls 5

concatenateFunction · 0.85
StringClass · 0.50
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 1

START_SECTIONFunction · 0.36