Changeset 100 for trunk/lib/Node.cc
- Timestamp:
- Jun 19, 2006, 11:53:16 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Node.cc
r91 r100 24 24 #include "Node.h" 25 25 #include "utility.h" 26 #include <config.h> // this header file is created by configure 26 27 27 28 #include <ctime> … … 33 34 namespace svnstat{ 34 35 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_); 42 40 } 43 44 41 45 42 void Node::print_footer(std::ostream& os) const … … 51 48 os << "<p align=center><font size=-2>Generated on " 52 49 << 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>" 54 52 << "</font></p></body>\n</html>\n"; 55 53 }
Note: See TracChangeset
for help on using the changeset viewer.