00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef _SVNCPP_POOL_H_
00015 #define _SVNCPP_POOL_H_
00016
00017
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
00074
00075
00076