MCPcopy Create free account
hub / github.com/davisking/dlib / write_as_xml

Function write_as_xml

tools/htmlify/to_xml.cpp:1400–1412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1398// ----------------------------------------------------------------------------------------
1399
1400void write_as_xml (
1401 const function_record& rec,
1402 ostream& fout
1403)
1404{
1405 fout << " <function>\n";
1406 fout << " <name>" << add_entity_ref(rec.name) << "</name>\n";
1407 fout << " <scope>" << add_entity_ref(rec.scope) << "</scope>\n";
1408 fout << " <declaration>" << add_entity_ref(rec.declaration) << "</declaration>\n";
1409 fout << " <file>" << flip_slashes(add_entity_ref(rec.file)) << "</file>\n";
1410 fout << " <comment>" << add_entity_ref(rec.comment) << "</comment>\n";
1411 fout << " </function>\n";
1412}
1413
1414// ----------------------------------------------------------------------------------------
1415

Callers 1

save_to_xml_fileFunction · 0.85

Calls 3

add_entity_refFunction · 0.85
flip_slashesFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected