Main Page   Namespace List   Class Hierarchy   Data Structures   File List   Namespace Members   Data Fields   Globals  

pool.hpp

Go to the documentation of this file.
00001 /*
00002  * ====================================================================
00003  * Copyright (c) 2002, 2003 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 
00023 namespace svn
00024 {
00028   class Pool
00029   {
00030   public:
00036     Pool (apr_pool_t * = (apr_pool_t *)0);
00037 
00038     virtual ~ Pool ();
00039 
00043     apr_pool_t * 
00044     pool () const;
00045 
00049     operator apr_pool_t * () const 
00050     {
00051       return m_pool;
00052     }
00053 
00057     void renew ();
00058   private:
00059     apr_pool_t * m_parent;
00060     apr_pool_t * m_pool;
00061 
00062     Pool& operator=(const Pool&);
00063 
00064     Pool (const Pool &);
00065 
00066 
00067   };
00068 }
00069 
00070 #endif
00071 
00072 /* -----------------------------------------------------------------
00073  * local variables:
00074  * eval: (load-file "../../rapidsvn-dev.el")
00075  * end:
00076  */

Generated on Thu Aug 28 13:22:36 2003 for SvnCpp by doxygen1.2.15