00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
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
00092
00093
00094