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 00025 #ifndef _SVNCPP_LOG_ENTRY_H_ 00026 #define _SVNCPP_LOG_ENTRY_H_ 00027 00028 // stl 00029 #include "svncpp/string_wrapper.hpp" 00030 #include <list> 00031 00032 // apr 00033 #include "apr_time.h" 00034 00035 // subversion api 00036 #include "svn_types.h" 00037 00038 namespace svn 00039 { 00040 00041 struct LogChangePathEntry 00042 { 00043 LogChangePathEntry(const char *path_, 00044 char action_, 00045 const char *copyFromPath_, 00046 const svn_revnum_t copyFromRevision_); 00047 00048 std::string path; 00049 char action; 00050 std::string copyFromPath; 00051 svn_revnum_t copyFromRevision; 00052 }; 00053 00054 00055 struct LogEntry 00056 { 00057 public: 00058 LogEntry(); 00059 00060 LogEntry(const svn_revnum_t revision, 00061 const char * author, 00062 const char * date, 00063 const char * message); 00064 00065 svn_revnum_t revision; 00066 std::string author; 00067 std::string message; 00068 std::list<LogChangePathEntry> changedPaths; 00069 apr_time_t date; 00070 }; 00071 } 00072 00073 #endif 00074 /* ----------------------------------------------------------------- 00075 * local variables: 00076 * eval: (load-file "../../rapidsvn-dev.el") 00077 * end: 00078 */ 00079