SvnCpp
|
00001 /* 00002 * ==================================================================== 00003 * Copyright (c) 2002-2009 The RapidSvn Group. All rights reserved. 00004 * 00005 * This program is free software: you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation, either version 3 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program (in the file GPL.txt. 00017 * If not, see <http://www.gnu.org/licenses/>. 00018 * 00019 * This software consists of voluntary contributions made by many 00020 * individuals. For exact contribution history, see the revision 00021 * history and logs, available at http://rapidsvn.tigris.org/. 00022 * ==================================================================== 00023 */ 00024 #ifndef _SVNCPP_ANNOTATE_LINE_HPP_ 00025 #define _SVNCPP_ANNOTATE_LINE_HPP_ 00026 00027 // subversion api 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 * local variables: 00107 * eval: (load-file "../../rapidsvn-dev.el") 00108 * end: 00109 */