dirent.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_DIRENT_HPP_
00027 #define _SVNCPP_DIRENT_HPP_ 
00028 
00029 // subversion api
00030 #include "svn_client.h"
00031 
00032 namespace svn
00033 {
00034   class DirEntry
00035   {
00036   public:
00040     DirEntry ();
00041 
00045     DirEntry (const char * name, svn_dirent_t * dirEntry);
00046 
00050     DirEntry (const DirEntry & src);
00051 
00055     ~DirEntry ();
00056 
00060     DirEntry &
00061     operator = (const DirEntry &);
00062 
00063     const char *
00064     name () const;
00065 
00066     svn_node_kind_t 
00067     kind () const;
00068 
00069     svn_filesize_t
00070     size () const;
00071 
00072     bool
00073     hasProps () const;
00074 
00075     svn_revnum_t
00076     createdRev () const;
00077 
00078     apr_time_t
00079     time () const;
00080 
00081     const char *
00082     lastAuthor () const;
00083 
00084   private:
00085     struct Data;
00086     Data * m;
00087   };
00088 }
00089 #endif
00090 /* -----------------------------------------------------------------
00091  * local variables:
00092  * eval: (load-file "../../rapidsvn-dev.el")
00093  * end:
00094  */

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