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

Function save_to_xml_file

tools/htmlify/to_xml.cpp:1531–1559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1529// ----------------------------------------------------------------------------------------
1530
1531void save_to_xml_file (
1532 const std::vector<function_record>& functions,
1533 const std::vector<class_record>& classes
1534)
1535{
1536 ofstream fout("output.xml");
1537
1538 fout << "<!-- This XML file was generated using the htmlify tool available from http://dlib.net. -->" << endl;
1539 fout << "<code>" << endl;
1540
1541 fout << " <classes>" << endl;
1542 for (unsigned long i = 0; i < classes.size(); ++i)
1543 {
1544 write_as_xml(classes[i], fout, 4);
1545 fout << "\n";
1546 }
1547 fout << " </classes>\n\n" << endl;
1548
1549
1550 fout << " <global_functions>" << endl;
1551 for (unsigned long i = 0; i < functions.size(); ++i)
1552 {
1553 write_as_xml(functions[i], fout);
1554 fout << "\n";
1555 }
1556 fout << " </global_functions>" << endl;
1557
1558 fout << "</code>" << endl;
1559}
1560
1561// ----------------------------------------------------------------------------------------
1562

Callers 1

generate_xml_markupFunction · 0.85

Calls 2

write_as_xmlFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected