AutoDeleteCCObject Class Reference

Simplifies cleanup of temporary CCObject derived objects. More...

#include <ccobject.h>

List of all members.

Public Member Functions

 AutoDeleteCCObject (CCObject *pObj)
 ~AutoDeleteCCObject ()
void Attach (CCObject *pObj)
void Detach ()

Protected Attributes

CCObjectm_pObj


Detailed Description

Simplifies cleanup of temporary CCObject derived objects.

Author:
Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/02/05
See also:
-

Definition at line 421 of file ccobject.h.


Constructor & Destructor Documentation

AutoDeleteCCObject::AutoDeleteCCObject CCObject pObj  )  [inline]
 

Definition at line 424 of file ccobject.h.

00424 : m_pObj(pObj) {}

AutoDeleteCCObject::~AutoDeleteCCObject  )  [inline]
 

Definition at line 425 of file ccobject.h.

00426     {
00427         if (m_pObj)
00428             delete m_pObj;
00429     }


Member Function Documentation

void AutoDeleteCCObject::Attach CCObject pObj  )  [inline]
 

Definition at line 430 of file ccobject.h.

00431     {
00432         m_pObj = pObj;
00433     }

void AutoDeleteCCObject::Detach  )  [inline]
 

Definition at line 434 of file ccobject.h.

00435     {
00436         m_pObj = NULL;
00437     }


Member Data Documentation

CCObject* AutoDeleteCCObject::m_pObj [protected]
 

Definition at line 440 of file ccobject.h.


The documentation for this class was generated from the following file:
Generated on Sat Nov 10 03:50:46 2007 for Camelot by  doxygen 1.4.4