| 1529 | // ---------------------------------------------------------------------------------------- |
| 1530 | |
| 1531 | void 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 |
no test coverage detected