00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef _SVNCPP_ANNOTATE_LINE_HPP_
00026 #define _SVNCPP_ANNOTATE_LINE_HPP_
00027
00028
00029 #include "svn_types.h"
00030
00031
00032 namespace svn
00033 {
00037 class AnnotateLine
00038 {
00039 public:
00040 AnnotateLine (apr_int64_t line_no,
00041 svn_revnum_t revision,
00042 const char *author,
00043 const char *date,
00044 const char *line)
00045 : m_line_no (line_no), m_revision (revision),
00046 m_author (author), m_date (date), m_line (line)
00047 {
00048 }
00049
00050 AnnotateLine ( const AnnotateLine &other)
00051 : m_line_no (other.m_line_no), m_revision (other.m_revision),
00052 m_author (other.m_author), m_date (other.m_date),
00053 m_line (other.m_line)
00054 {
00055 }
00056
00060 virtual ~AnnotateLine ()
00061 {
00062 }
00063
00064 apr_int64_t
00065 lineNumber () const
00066 {
00067 return m_line_no;
00068 }
00069 svn_revnum_t
00070 revision () const
00071 {
00072 return m_revision;
00073 }
00074
00075
00076 const std::string &
00077 author () const
00078 {
00079 return m_author;
00080 }
00081
00082
00083 const std::string &
00084 date () const
00085 {
00086 return m_date;
00087 }
00088
00089
00090 const std::string &
00091 line () const
00092 {
00093 return m_line;
00094 }
00095
00096 private:
00097 apr_int64_t m_line_no;
00098 svn_revnum_t m_revision;
00099 std::string m_author;
00100 std::string m_date;
00101 std::string m_line;
00102 };
00103 }
00104
00105 #endif
00106
00107
00108
00109
00110