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

Function generate_xml_markup

tools/htmlify/to_xml.cpp:1563–1596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1561// ----------------------------------------------------------------------------------------
1562
1563void generate_xml_markup(
1564 const cmd_line_parser<char>::check_1a_c& parser,
1565 const std::string& filter,
1566 const unsigned long search_depth,
1567 const unsigned long expand_tabs
1568)
1569{
1570
1571 // first figure out which files should be processed
1572 std::vector<std::pair<string,string> > files;
1573 obtain_list_of_files(parser, filter, search_depth, files);
1574
1575
1576 std::vector<tok_function_record> tok_functions;
1577 std::vector<tok_class_record> tok_classes;
1578
1579 for (unsigned long i = 0; i < files.size(); ++i)
1580 {
1581 ifstream fin(files[i].second.c_str());
1582 if (!fin)
1583 {
1584 cerr << "Error opening file: " << files[i].second << endl;
1585 return;
1586 }
1587 process_file(fin, files[i].first, tok_functions, tok_classes);
1588 }
1589
1590 std::vector<function_record> functions;
1591 std::vector<class_record> classes;
1592
1593 convert_to_normal_records(tok_functions, tok_classes, expand_tabs, functions, classes);
1594
1595 save_to_xml_file(functions, classes);
1596}
1597
1598// ----------------------------------------------------------------------------------------
1599

Callers 1

mainFunction · 0.85

Calls 5

obtain_list_of_filesFunction · 0.85
process_fileFunction · 0.85
save_to_xml_fileFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected