Changeset 200


Ignore:
Timestamp:
Sep 9, 2006, 12:55:52 PM (13 years ago)
Author:
Peter Johansson
Message:

refs #87 moved print_footer to html_utility.

Location:
trunk/lib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.cc

    r199 r200  
    2626#include "SVNproperty.h"
    2727#include "utility.h"
    28 #include <config.h> // this header file is created by configure
    2928
    3029#include <ctime>
     
    9291
    9392
    94   void Node::print_footer(std::ostream& os) const
    95   {
    96     time_t rawtime;
    97     struct tm * timeinfo;
    98     time ( &rawtime );
    99     timeinfo =  gmtime ( &rawtime );
    100     os << "<p align=center><font size=-2>\nGenerated on "
    101        << asctime (timeinfo) << " (UTC) by ";
    102     anchor(os, "http://lev.thep.lu.se/trac/svndigest/", PACKAGE_STRING);
    103     os << "</font>\n</p>\n</div>\n</body>\n</html>\n";
    104   }
    105 
    106 
    10793}} // end of namespace svndigest and namespace theplu
  • trunk/lib/Node.h

    r199 r200  
    160160    void path_anchor(std::ostream& os) const;
    161161
    162     ///
    163     /// @brief print html footer of page
    164     ///
    165     void print_footer(std::ostream&) const;
    166    
    167162    u_int level_;
    168163    std::string output_name_; //without suffix
  • trunk/lib/html_utility.cc

    r199 r200  
    2323
    2424#include "utility.h"
     25#include <config.h> // this header file is created by configure
    2526
    2627#include <fstream>
    27 #include <iostream> // remove this when 'blame' is removed
     28#include <iostream>
    2829#include <sstream>
    2930#include <stdexcept>
     
    177178
    178179
     180  void print_footer(std::ostream& os)
     181  {
     182    time_t rawtime;
     183    struct tm * timeinfo;
     184    time ( &rawtime );
     185    timeinfo =  gmtime ( &rawtime );
     186    os << "<p align=center><font size=-2>\nGenerated on "
     187       << asctime (timeinfo) << " (UTC) by ";
     188    anchor(os, "http://lev.thep.lu.se/trac/svndigest/", PACKAGE_STRING, 0, "");
     189    os << "</font>\n</p>\n</div>\n</body>\n</html>\n";
     190  }
     191
     192
    179193  void print_header(std::ostream& os, const std::string& title, u_int level)
    180194  {
  • trunk/lib/html_utility.h

    r199 r200  
    5757
    5858  ///
     59  /// @brief print html footer of page
     60  ///
     61  void print_footer(std::ostream&);
     62   
     63  ///
    5964  /// @brief print html header of page
    6065  ///
Note: See TracChangeset for help on using the changeset viewer.