Changeset 100 for trunk/lib/Directory.cc
- Timestamp:
- Jun 19, 2006, 11:53:16 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Directory.cc
r91 r100 26 26 #include "Node.h" 27 27 #include "SVN.h" 28 #include "utility.h" 28 29 29 30 #include <algorithm> … … 68 69 lstat(fullpath.c_str(),&nodestat); // C api from sys/stat.h 69 70 if (S_ISDIR(nodestat.st_mode)) // C api from sys/stat.h 70 daughters_.push_back(new Directory(fullpath, output_name()+" _"));71 daughters_.push_back(new Directory(fullpath, output_name()+"/")); 71 72 else 72 daughters_.push_back(new File(fullpath,output_name()+" _"));73 daughters_.push_back(new File(fullpath,output_name()+"/")); 73 74 break; 74 75 case SVN::unresolved: … … 86 87 } 87 88 89 std::string Directory::html_link(void) const 90 { 91 return "<a href=\"" + name() + "/index.html\">" + name() + "</a>"; 92 } 88 93 89 94 const Stats& Directory::parse(const bool verbose) … … 100 105 void Directory::print(const bool verbose) const 101 106 { 102 std::string output(output_name() + ".html"); 107 createdir(output_name()); 108 std::string output(output_name() + "/index.html"); 103 109 if (verbose) 104 110 std::cout << "Printing output for " << path_ << std::endl; 105 111 std::ofstream os(output.c_str()); 106 112 print_header(os); 107 os << "<p align=center>\n<img src='" << stats_.plot(output_name()+".png") 113 os << "<p align=center>\n<img src='" 114 << file_name(stats_.plot(output_name()+"/index.png")) 108 115 << "' alt='[plot]' border=0><br>\n"; 109 116 os << "<table>\n";
Note: See TracChangeset
for help on using the changeset viewer.