Changeset 1239 for trunk/lib/File.h


Ignore:
Timestamp:
Oct 24, 2010, 1:57:56 AM (12 years ago)
Author:
Peter Johansson
Message:

move 'update copyright' code from File class to CopyrightVisitor? class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.h

    r1238 r1239  
    7373
    7474    /**
    75        @throw std::runtime_error when a file error is encountered
    76        updating the copyrights.
    77     */
    78     void print_copyright(std::map<std::string, Alias>&, bool verbose,
    79                          const std::map<int, svn_revnum_t>&) const;
    80 
    81     /**
    8275       Let the visitor perform its mission via visitor(*this)
    8376     */
     
    10598
    10699    /**
    107        \return copyright block
    108      */
    109     std::string copyright_block(const std::map<int, std::set<Alias> >& map,
    110                                 const std::string& prefix) const;
    111 
    112     /**
    113        Create a map from year to set of authors.
    114      */
    115     std::map<int, std::set<Alias> >
    116     copyright_map(std::map<std::string, Alias>& alias,
    117                   const std::map<int, svn_revnum_t>&) const;
    118 
    119     /**
    120        Create a map from year to set of authors.
    121 
    122        \return true if Copyright block is found
    123      */
    124     bool detect_copyright(std::string& block, size_t& start_at_line,
    125                           size_t& end_at_line, std::string& prefix) const;
    126 
    127     /**
    128100       @brief Print blame output
    129101    */
     
    139111                    const std::string& line_type, const SVNlog&) const;
    140112
    141     /**
    142        Doing the actual print of copyright statement
    143 
    144        \param block new copyright block
    145        \param start_at_line line number of first line in old block
    146        \param end_at_line line number of first line after old block
    147      */
    148     void update_copyright(const std::string& block,
    149                           size_t start_at_line, size_t end_at_line) const;
    150113  };
    151114
Note: See TracChangeset for help on using the changeset viewer.