Changeset 23 for trunk/lib/Node.h


Ignore:
Timestamp:
Jan 2, 2006, 9:14:57 AM (16 years ago)
Author:
Peter Johansson
Message:

added print functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.h

    r20 r23  
    2727    virtual inline ~Node(void) {};
    2828
    29     ///
    30     /// Extracts information from 'svn info <node>'
    31     ///
    32     /// @note <node> must be in subversion control.
    33     ///
    34     void info(void);
    35 
    3629    ///
    3730    /// @brief parsing file using svn blame.
     
    4235    /// Function printing HTML in directory path
    4336    ///
    44     virtual void print(void)=0;
     37    virtual void print(const std::string& path) const=0;
    4538
     39    ///
     40    /// Prints a html link.
     41    ///
     42    virtual void print_link(std::ostream&) const=0;
     43
     44    ///
     45    ///
     46    ///
     47    // Peter to Jari, inlining virtual functions?
    4648    inline virtual void purge(void) { /* Nothing to be done */ };
    4749
     
    5557
    5658  protected:
    57     std::string author_;
     59    ///
     60    /// Function returning everything after the last '/'
     61    ///
     62    /// @return name of node (not full path)
     63    ///
     64    std::string name(void) const;
     65
     66    ///
     67    /// @brief print html footer of page
     68    ///
     69    void print_footer(std::ostream&) const;
     70   
     71    ///
     72    /// @brief print html header of page
     73    ///
     74    void print_header(std::ostream&) const;
     75
    5876    std::string path_;
    59     u_int revision_;
    6077    Stats stats_;
    61     std::string uuid_;
    6278
    6379  private:
Note: See TracChangeset for help on using the changeset viewer.