Changeset 29 for trunk/lib/Node.h


Ignore:
Timestamp:
Jan 9, 2006, 10:35:50 AM (16 years ago)
Author:
Peter Johansson
Message:

modified output file names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.h

    r23 r29  
    66#include "Stats.h"
    77
     8#include <ostream>
    89#include <string>
    910
     
    2021    /// @brief Constructor
    2122    ///
    22     inline Node(const std::string& path) : path_(path) {}
     23    Node(const std::string& path, const std::string& output="");
    2324
    2425    ///
     
    4041    /// Prints a html link.
    4142    ///
    42     virtual void print_link(std::ostream&) const=0;
    43 
     43    inline void print_link(std::ostream& os) const
     44    { os << "<a href=\"" << output_name_ << ".html\">" << name() << "</a>"; }
     45 
    4446    ///
    4547    ///
    4648    ///
    47     // Peter to Jari, inlining virtual functions?
    4849    inline virtual void purge(void) { /* Nothing to be done */ };
    4950
     
    7475    void print_header(std::ostream&) const;
    7576
     77    std::string output_name_; //without suffix
    7678    std::string path_;
    7779    Stats stats_;
     
    8284    ///
    8385    Node(const Node&);
     86
    8487  };
    8588
Note: See TracChangeset for help on using the changeset viewer.