Main Page | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals | Related Pages

annotate_line.hpp

Go to the documentation of this file.
00001 /*
00002  * ====================================================================
00003  * Copyright (c) 2002-2004 The RapidSvn Group.  All rights reserved.
00004  *
00005  * This software is licensed as described in the file LICENSE.txt,
00006  * which you should have received as part of this distribution.
00007  *
00008  * This software consists of voluntary contributions made by many
00009  * individuals.  For exact contribution history, see the revision
00010  * history and logs, available at http://rapidsvn.tigris.org/.
00011  * ====================================================================
00012  */
00013 #ifndef _SVNCPP_ANNOTATE_LINE_HPP_
00014 #define _SVNCPP_ANNOTATE_LINE_HPP_
00015 
00016 namespace svn
00017 {
00021   class AnnotateLine
00022   {
00023   public:
00024     AnnotateLine (apr_int64_t line_no,
00025                   svn_revnum_t revision,
00026                   const char *author,
00027                   const char *date,
00028                   const char *line)
00029     : m_line_no (line_no), m_revision (revision), 
00030       m_author (author), m_date (date), m_line (line)
00031     {
00032     }
00033 
00034     AnnotateLine ( const AnnotateLine &other)
00035     : m_line_no (other.m_line_no), m_revision (other.m_revision), 
00036       m_author (other.m_author), m_date (other.m_date), 
00037       m_line (other.m_line)
00038     {
00039     }
00040 
00044     virtual ~AnnotateLine ()
00045     {
00046     }
00047 
00048     apr_int64_t 
00049     lineNumber () const
00050     {
00051         return m_line_no;
00052     }
00053     svn_revnum_t 
00054     revision () const
00055     {
00056         return m_revision;
00057     }
00058 
00059 
00060     const std::string &
00061     author () const
00062     {
00063         return m_author;
00064     }
00065 
00066 
00067     const std::string &
00068     date () const
00069     {
00070         return m_date;
00071     }
00072 
00073 
00074     const std::string &
00075     line () const
00076     {
00077         return m_line;
00078     }
00079 
00080   private:
00081     apr_int64_t m_line_no;
00082     svn_revnum_t m_revision;
00083     std::string m_author;
00084     std::string m_date;
00085     std::string m_line;
00086   };
00087 }
00088 
00089 #endif
00090 /* -----------------------------------------------------------------
00091  * local variables:
00092  * eval: (load-file "../../rapidsvn-dev.el")
00093  * end:
00094  */

Generated on Wed May 4 00:05:22 2005 for SvnCpp by  doxygen 1.4.1