Changeset 100 for trunk/lib/Node.h


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.h

    r91 r100  
    2626
    2727#include "Stats.h"
     28#include "utility.h"
    2829
    2930#include <ostream>
     
    5758    /// @brief Constructor
    5859    ///
    59     Node(const std::string& path, const std::string& output="")
    60       : path_(path), stats_(path)
    61       { output_name_ = output + name(); }
     60    Node(const std::string&, const std::string&);
    6261
    6362    ///
     
    6968    /// @return A properly formatted html link to this node.
    7069    ///
    71     inline std::string html_link(void) const
    72     { return "<a href=\"" + output_name() + ".html\">" + name() + "</a>"; }
     70    virtual std::string html_link(void) const=0;
    7371
    7472    inline std::string html_tablerow(void) const
     
    8078    }
    8179
     80    ///
     81    /// @return
     82    ///
    8283    inline const std::string& output_name(void) const { return output_name_; }
    8384
     
    100101    /// @return name of node (not full path)
    101102    ///
    102     std::string name(void) const;
     103    inline std::string name(void) const { return file_name(path_); }
    103104
    104105    ///
Note: See TracChangeset for help on using the changeset viewer.