00001 #ifndef _CGI_REFCOUNT_H 00002 #define _CGI_REFCOUNT_H 00003 00004 00005 namespace Cgi 00006 { 00007 00008 00009 class RefCount 00010 { 00011 public: 00012 RefCount(); 00013 ~RefCount(); 00014 00015 int Increase(); 00016 int Decrease(); 00017 00018 private: 00019 RefCount(const RefCount& ) {} // copy constructor 00020 RefCount& operator=(const RefCount& ) { return *this; } // assignment operator 00021 // 00022 int m_count; 00023 }; 00024 00025 00026 } // namespace Cgi 00027 00028 00029 #endif // _CGI_REFCOUNT_H