log_entry.hpp

Go to the documentation of this file.
00001 /*
00002  * ====================================================================
00003  * Copyright (c) 2002-2006 The RapidSvn Group.  All rights reserved.
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  * 
00010  * This library 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 GNU
00013  * Lesser General Public License for more details.
00014  * 
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library (in the file LGPL.txt); if not, 
00017  * write to the Free Software Foundation, Inc., 51 Franklin St, 
00018  * Fifth Floor, Boston, MA  02110-1301  USA
00019  *
00020  * This software consists of voluntary contributions made by many
00021  * individuals.  For exact contribution history, see the revision
00022  * history and logs, available at http://rapidsvn.tigris.org/.
00023  * ====================================================================
00024  */
00025 
00026 #ifndef _SVNCPP_LOG_ENTRY_H_
00027 #define _SVNCPP_LOG_ENTRY_H_
00028 
00029 // stl
00030 #include <string>
00031 #include <list>
00032 
00033 // apr
00034 #include "apr_time.h"
00035 
00036 // subversion api
00037 #include "svn_types.h"
00038 
00039 namespace svn
00040 {
00041 
00042   struct LogChangePathEntry
00043   {
00044     LogChangePathEntry (const char *path_,
00045                         char action_,
00046                         const char *copyFromPath_,
00047                         const svn_revnum_t copyFromRevision_);
00048 
00049     std::string path;
00050     char action;
00051     std::string copyFromPath;
00052     svn_revnum_t copyFromRevision;
00053   };
00054 
00055 
00056   struct LogEntry
00057   {
00058   public:
00059     LogEntry ();
00060 
00061     LogEntry (const svn_revnum_t revision,
00062               const char * author,
00063               const char * date,
00064               const char * message);
00065 
00066     svn_revnum_t revision;
00067     std::string author;
00068     std::string message;
00069     std::list<LogChangePathEntry> changedPaths;
00070     apr_time_t date;
00071   };
00072 }
00073 
00074 #endif
00075 /* -----------------------------------------------------------------
00076  * local variables:
00077  * eval: (load-file "../../rapidsvn-dev.el")
00078  * end:
00079  */
00080 

Generated on Fri Dec 8 18:57:44 2006 for SvnCpp by  doxygen 1.4.7