Changeset 101 for trunk/lib/Node.h


Ignore:
Timestamp:
Jun 22, 2006, 11:00:06 AM (15 years ago)
Author:
Peter Johansson
Message:

closes #28 #18 and added some lippstick to the node daughters table output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.h

    r100 r101  
    6666
    6767    ///
     68    /// @return true if directory
     69    ///
     70    virtual bool dir(void) const;
     71
     72    ///
    6873    /// @return A properly formatted html link to this node.
    6974    ///
    7075    virtual std::string html_link(void) const=0;
    7176
    72     inline std::string html_tablerow(void) const
    73     {
    74       std::stringstream ss;
    75       ss << "<tr><td>" << html_link() << "</td><td align=right>" << stats_.rows()
    76          << "</td></tr>\n";
    77       return ss.str();
    78     }
     77    ///
     78    ///
     79    ///
     80    std::string html_tablerow(const std::string&) const;
    7981
    8082    ///
     
    125127  };
    126128
     129  struct NodePtrLess
     130  {
     131    inline bool operator()(const Node* first, const Node* second) const
     132    {   
     133      if (first->dir()==second->dir())
     134        return first->output_name()<second->output_name();
     135      return first->dir();
     136    }
     137  };
     138
    127139}} // end of namespace svnstat and namespace theplu
    128140
Note: See TracChangeset for help on using the changeset viewer.