Changeset 100 for trunk/lib/Node.cc


Ignore:
Timestamp:
Jun 19, 2006, 11:53:16 AM (15 years ago)
Author:
Peter Johansson
Message:

closes #9 and move create function from svnstat.cc to lib/utility and also move rmdirhier to lib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.cc

    r91 r100  
    2424#include "Node.h"
    2525#include "utility.h"
     26#include <config.h> // this header file is created by configure
    2627
    2728#include <ctime>
     
    3334namespace svnstat{
    3435
    35 
    36   std::string Node::name(void) const
    37   {
    38     std::stringstream ss(path_);
    39     std::string name;
    40     while (getline(ss,name,'/')) {}
    41     return name;
     36  Node::Node(const std::string& path, const std::string& output="")
     37      : path_(path), stats_(path)
     38  {
     39    output_name_ = output+file_name(path_);
    4240  }
    43 
    4441
    4542  void Node::print_footer(std::ostream& os) const
     
    5148    os << "<p align=center><font size=-2>Generated on "
    5249       << asctime (timeinfo)
    53        << "by <a href=http://lev.thep.lu.se/trac/svnstat/>svnstat</a>"
     50       << "by <a href=http://lev.thep.lu.se/trac/svnstat/>"
     51       << PACKAGE_STRING << "</a>"
    5452       << "</font></p></body>\n</html>\n";
    5553  }
Note: See TracChangeset for help on using the changeset viewer.