- Timestamp:
- Sep 15, 2006, 1:19:40 PM (17 years ago)
- Location:
- trunk/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Directory.cc
r210 r211 146 146 std::ofstream os(html_name.c_str()); 147 147 assert(os.good()); 148 print_header(os, name(), level_+2 );148 print_header(os, name(), level_+2, line_type, local_path()+"/index.html"); 149 149 path_anchor(os); 150 150 os << "<p align=center>\n<img src='" -
trunk/lib/File.cc
r209 r211 62 62 std::string html_name(outpath + ".html"); 63 63 std::ofstream os(html_name.c_str()); 64 print_header(os, name(), level_+2 );64 print_header(os, name(), level_+2, line_type, local_path()+".html"); 65 65 path_anchor(os); 66 66 os << "<p align=center>\n<img src='" -
trunk/lib/html_utility.cc
r209 r211 190 190 std::string filename="index.html"; 191 191 std::ofstream os(filename.c_str()); 192 print_header(os, dir, 0 );192 print_header(os, dir, 0, "", "../index.html"); 193 193 time_t now; 194 194 time (&now); … … 236 236 237 237 238 void print_header(std::ostream& os, const std::string& title, u_int level) 238 void print_header(std::ostream& os, const std::string& title, u_int level, 239 const std::string& line_type, const std::string& path) 239 240 { 240 241 os << "<!DOCTYPE html\n" … … 258 259 os << "</li>" 259 260 << "<li>"; 260 anchor(os, "all/total/ index.html", "Total", level,261 anchor(os, "all/total/"+path, "Total", level, 261 262 "View statistics of all lines"); 262 263 os << "</li>" 263 264 << "<li>"; 264 anchor(os, "all/code/ index.html", "Code", level,265 anchor(os, "all/code/"+path, "Code", level, 265 266 "View statistics of code lines"); 266 267 os << "</li>" 267 268 << "<li>"; 268 anchor(os, "all/comments/ index.html", "Comment", level,269 anchor(os, "all/comments/"+path, "Comment", level, 269 270 "View statistics of comment lines"); 270 271 os << "</li>" 271 272 << "<li>"; 272 anchor(os, "all/empty/ index.html", "Empty", level,273 anchor(os, "all/empty/", "Empty", level, 273 274 "View statistics of empty lines"); 274 275 os << "</li>" -
trunk/lib/html_utility.h
r201 r211 70 70 /// @brief print html header of page 71 71 /// 72 void print_header(std::ostream&, const std::string& name, u_int level); 72 void print_header(std::ostream&, const std::string& name, u_int level, 73 const std::string&, const std::string&); 73 74 74 75
Note: See TracChangeset
for help on using the changeset viewer.