Main Page | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals | Related Pages

pool.hpp

Go to the documentation of this file.
00001 /*
00002  * ====================================================================
00003  * Copyright (c) 2002-2004 The RapidSvn Group.  All rights reserved.
00004  *
00005  * This software is licensed as described in the file LICENSE.txt,
00006  * which you should have received as part of this distribution.
00007  *
00008  * This software consists of voluntary contributions made by many
00009  * individuals.  For exact contribution history, see the revision
00010  * history and logs, available at http://rapidsvn.tigris.org/.
00011  * ====================================================================
00012  */
00013 
00014 #ifndef _SVNCPP_POOL_H_
00015 #define _SVNCPP_POOL_H_
00016 
00017 // subversion api
00018 #include "svn_pools.h"
00019 
00020 
00021 namespace svn
00022 {
00026   class Pool
00027   {
00028   public:
00034     Pool (apr_pool_t * parent = (apr_pool_t *)0);
00035 
00036     virtual ~ Pool ();
00037 
00041     apr_pool_t * 
00042     pool () const;
00043 
00047     operator apr_pool_t * () const 
00048     {
00049       return m_pool;
00050     }
00051 
00055     void renew ();
00056   private:
00057     apr_pool_t * m_parent;
00058     apr_pool_t * m_pool;
00059 
00060     Pool& operator=(const Pool&);
00061 
00062     Pool (const Pool &);
00063 
00064 
00065   };
00066 }
00067 
00068 #endif
00069 
00070 /* -----------------------------------------------------------------
00071  * local variables:
00072  * eval: (load-file "../../rapidsvn-dev.el")
00073  * end:
00074  */

Generated on Thu Sep 15 20:11:45 2005 for SvnCpp by  doxygen 1.4.4