Changeset 201 for trunk/lib/File.cc


Ignore:
Timestamp:
Sep 9, 2006, 7:36:34 PM (16 years ago)
Author:
Peter Johansson
Message:

fixes #76 and refs #87 new output file structure and draft to new main page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.cc

    r199 r201  
    5656
    5757
    58   void File::print(const bool verbose) const
     58  void File::print(const std::string& out_path, const bool verbose) const
    5959  {
    6060    // no output page for binary files
    6161    if (ignore())
    6262      return;
    63     std::string output(output_name() + ".html");
     63    std::string output(out_path + ".html");
    6464    if (verbose)
    6565      std::cout << "Printing output for " << path_ << std::endl;
    6666    std::ofstream os(output.c_str());
    67     print_header(os, name(), level_);
     67    print_header(os, name(), level_+2);
    6868    path_anchor(os);
    6969    os << "<p align=center>\n<img src='"
    70        << file_name(stats_.plot(output_name()+".png",output_name()))
     70       << file_name(stats_.plot(out_path+".png",local_path()))
    7171       << "' alt='[plot]' border=0>\n</p>";
    7272
     
    126126    if (ignore())
    127127      return;
    128     std::cout << "\nCOPYRIGHT " << output_name() << std::endl;
     128    std::cout << "\nCOPYRIGHT " << local_path() << std::endl;
    129129    // last rev and 4-chars string for each year
    130130    std::vector<std::pair<size_t,std::string> > years;
Note: See TracChangeset for help on using the changeset viewer.