compiler/cpp/src/generate/t_html_generator.cc
/**
 * Emits the index.html file for the recursive set of Thrift programs
 */
Emits the index.html file for the recursive set of Thrift programs
Emits the index . html file for the recursive set of Thrift programs
void t_html_generator::generate_index() {
  string index_fname = get_out_dir() + "index.html";
  f_out_.open(index_fname.c_str());
  f_out_ << "<html><head>" << endl;
  f_out_ << "<link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\"/>"
   << endl;
  f_out_ << "<title>All Thrift declarations</title></head><body>"
   << endl << "<div class=\"container-fluid\">"
   << endl << "<h1>All Thrift declarations</h1>" << endl;
  f_out_ << "<table class=\"table-bordered table-striped table-condensed\"><thead><th>Module</th><th>Services</th><th>Data types</th>"
   << "<th>Constants</th></thead>" << endl;
  vector<t_program*> programs;
  generate_program_toc_rows(program_, programs);
  f_out_ << "</table>" << endl;
  f_out_ << "</div></body></html>" << endl;
  f_out_.close();
}
void t_html_generator :: generate_index ( ) { string index_fname = get_out_dir ( ) + " " ; f_out_ . open ( index_fname . c_str ( ) ) ; f_out_ << " " << endl ; f_out_ << " \" \" \" \" \" \" " << endl ; f_out_ << " " << endl << " \" \" " << endl << " " << endl ; f_out_ << " \" \" " << " " << endl ; vector < t_program * > programs ; generate_program_toc_rows ( program_ , programs ) ; f_out_ << " " << endl ; f_out_ << " " << endl ; f_out_ . close ( ) ; }
Emits the index.html file for the recursive set of Thrift programs
Emits the index . html file for the recursive set of Thrift programs