Changeset 185 for trunk/lib/Node.h


Ignore:
Timestamp:
Sep 6, 2006, 4:39:18 AM (15 years ago)
Author:
Jari Häkkinen
Message:

Fixes #65 and #60. Added support for svndigest:ignore. Uppdated documentation. Reworked binary file treatment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.h

    r182 r185  
    6767    { return svninfo_.last_changed_author(); }
    6868
     69    /**
     70       @brief Check whether node is binary.
     71
     72       @return True if node is binary.
     73    */
     74    inline bool binary(void) const { return binary_; }
     75
    6976    ///
    7077    /// @return true if directory
     
    7784    virtual std::string href(void) const=0;
    7885
    79     ///
    80     ///
    81     ///
    8286    void html_tablerow(std::ostream&, const std::string&) const;
     87
     88    /**
     89       @brief Check whether node should be ignored in statistics.
     90
     91       If a node is to be ignored the statistics implementer should
     92       respect this state. Currently binary files and items with
     93       property svndigest:ignore are to be ignored by svndigest. If
     94       the node is a directory then the direcotry and its siblings
     95       should be ignored by statistics.
     96
     97       @return True of node should be ignored by statistics.
     98
     99       @see SVNproperty::svndigest_ingorable
     100    */
     101    inline bool ignore(void) const { return binary_ || svndigest_ignore_; }
    83102
    84103    ///
     
    113132    virtual void print(const bool verbose=false) const=0;
    114133
     134    /**
     135       @brief Check if item used to create this object has been
     136       assigned property svndigest:ignore.
     137
     138       Currently files with property svndigest:ignore are to be
     139       ignored by svndigest. It is the responsibility of the
     140       statistics implementer to obey the ignore state.
     141
     142       @return True if item property svndigest:digest was set.
     143    */
     144    inline bool svndigest_ignore(void) const { return svndigest_ignore_; }
     145
    115146  protected:
    116 
    117     ///
    118     /// @note Directories are not consider binary.
    119     ///
    120     virtual bool binary(void) const=0;
    121147
    122148    ///
     
    153179    void path_anchor(std::ostream& os) const;
    154180
     181    bool binary_;
     182    bool svndigest_ignore_;
    155183    SVNinfo svninfo_;
    156184  };
Note: See TracChangeset for help on using the changeset viewer.