SvnCpp
annotate_line.hpp
Go to the documentation of this file.
1/*
2 * ====================================================================
3 * Copyright (c) 2002-2018 The RapidSVN Group. All rights reserved.
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as
7 * published by the Free Software Foundation, either version 3 of the
8 * License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this program (in the file LGPL.txt).
17 * If not, see <http://www.gnu.org/licenses/>.
18 *
19 * This software consists of voluntary contributions made by many
20 * individuals. For exact contribution history, see the revision
21 * history and logs, available at http://rapidsvn.tigris.org/.
22 * ====================================================================
23 */
24#ifndef _SVNCPP_ANNOTATE_LINE_HPP_
25#define _SVNCPP_ANNOTATE_LINE_HPP_
26
27// subversion api
28#include "svn_types.h"
29
30
31namespace svn
32{
37 {
38 public:
39 AnnotateLine(apr_int64_t line_no,
40 svn_revnum_t revision,
41 const char *author,
42 const char *date,
43 const char *line)
44 : m_line_no(line_no), m_revision(revision),
45 m_author(author), m_date(date), m_line(line)
46 {
47 }
48
50 : m_line_no(other.m_line_no), m_revision(other.m_revision),
51 m_author(other.m_author), m_date(other.m_date),
52 m_line(other.m_line)
53 {
54 }
55
59 virtual ~AnnotateLine()
60 {
61 }
62
63 apr_int64_t
64 lineNumber() const
65 {
66 return m_line_no;
67 }
68 svn_revnum_t
69 revision() const
70 {
71 return m_revision;
72 }
73
74
75 const std::string &
76 author() const
77 {
78 return m_author;
79 }
80
81
82 const std::string &
83 date() const
84 {
85 return m_date;
86 }
87
88
89 const std::string &
90 line() const
91 {
92 return m_line;
93 }
94
95 private:
96 apr_int64_t m_line_no;
97 svn_revnum_t m_revision;
98 std::string m_author;
99 std::string m_date;
100 std::string m_line;
101 };
102}
103
104#endif
105/* -----------------------------------------------------------------
106 * local variables:
107 * eval: (load-file "../../rapidsvn-dev.el")
108 * end:
109 */
Definition annotate_line.hpp:37
AnnotateLine(apr_int64_t line_no, svn_revnum_t revision, const char *author, const char *date, const char *line)
Definition annotate_line.hpp:39
svn_revnum_t revision() const
Definition annotate_line.hpp:69
const std::string & date() const
Definition annotate_line.hpp:83
AnnotateLine(const AnnotateLine &other)
Definition annotate_line.hpp:49
apr_int64_t lineNumber() const
Definition annotate_line.hpp:64
virtual ~AnnotateLine()
Definition annotate_line.hpp:59
const std::string & line() const
Definition annotate_line.hpp:90
const std::string & author() const
Definition annotate_line.hpp:76
Definition annotate_line.hpp:32