Changeset 201 for trunk/lib/Node.h


Ignore:
Timestamp:
Sep 9, 2006, 7:36:34 PM (15 years ago)
Author:
Peter Johansson
Message:

fixes #76 and refs #87 new output file structure and draft to new main page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.h

    r200 r201  
    115115    /// @return
    116116    ///
    117     inline const std::string& output_name(void) const { return output_name_; }
     117    inline const std::string& local_path(void) const { return local_path_; }
     118
     119    ///
     120    /// Function returning everything after the last '/'
     121    ///
     122    /// @return name of node (not full path)
     123    ///
     124    inline std::string name(void) const { return file_name(path_); }
    118125
    119126    ///
     
    130137    /// Function printing HTML in current working directory
    131138    ///
    132     virtual void print(const bool verbose=false) const=0;
     139    virtual void print(const std::string&, const bool verbose=false) const=0;
    133140
    134141    virtual void print_copyright(const std::vector<std::string>& dates) const=0;
     
    149156
    150157    ///
    151     /// Function returning everything after the last '/'
    152     ///
    153     /// @return name of node (not full path)
    154     ///
    155     inline std::string name(void) const { return file_name(path_); }
    156 
    157     ///
    158158    /// print path in html format (with anchors) to @a os
    159159    ///
     
    161161
    162162    u_int level_;
    163     std::string output_name_; //without suffix
    164     std::string path_;
     163    std::string local_path_; // path from root
     164    std::string path_; // absolute path from
    165165    Stats stats_;
    166166
     
    181181    {   
    182182      if (first->dir()==second->dir())
    183         return first->output_name()<second->output_name();
     183        return first->name()<second->name();
    184184      return first->dir();
    185185    }
Note: See TracChangeset for help on using the changeset viewer.