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