Changeset 330 for trunk


Ignore:
Timestamp:
May 18, 2007, 5:16:02 PM (16 years ago)
Author:
Peter Johansson
Message:

Using internal SVNinfo in tree rather than creating a new object.
Also added some docs.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/svndigest.cc

    r318 r330  
    164164  SVNlog local_log(option->root());
    165165  print_main_page(tree->name(), local_log, stats,
    166                   SVNinfo(option->root()).url());
     166                  tree->url());
    167167  mkdir("all");
    168168  mkdir("images");
  • trunk/lib/File.h

    r307 r330  
    4343         const std::string& output="");
    4444
    45     ///
    46     /// @return href to this file
    47     ///
     45    /**
     46       For example 'File.h.html'
     47
     48       @return href to this file
     49    */
    4850    std::string href(void) const;
    4951
     
    5658    /// @brief Parsing out information from svn repository
    5759    ///
    58     /// @return true if succesful
     60    /// @return Stats object of the file
    5961    ///
    6062    const Stats& parse(const bool verbose=false);
  • trunk/lib/Node.cc

    r316 r330  
    245245  }
    246246
     247 
     248  std::string Node::url(void) const
     249  {
     250    return svninfo_.url();
     251  }
     252
    247253}} // end of namespace svndigest and namespace theplu
  • trunk/lib/Node.h

    r303 r330  
    161161    inline bool svndigest_ignore(void) const { return svndigest_ignore_; }
    162162
     163    /**
     164       \see SVNinfo::url(void)
     165    */
     166    std::string url(void) const;
     167   
    163168  protected:
    164169
     
    195200  };
    196201
     202  /**
     203     \brief Functor class to compare pointers of Nodes
     204  */
    197205  struct NodePtrLess
    198206  {
     207    /**
     208       @return true if first and second are of same type (Directory or
     209       File) and name of first is (alphabetically) less than name of
     210       second; or if first is a Directory and second is a File.
     211     */
    199212    inline bool operator()(const Node* first, const Node* second) const
    200213    {   
Note: See TracChangeset for help on using the changeset viewer.