#include <attrmgr.h>
Inheritance diagram for CommonAttributeItem:
Public Member Functions | |
CommonAttributeItem (CCRuntimeClass *AtrType, NodeAttribute *pAttrib=NULL, Range::CommonAttribResult status=Range::ATTR_NONE) | |
~CommonAttributeItem () | |
CommonAttributeItem destructor. | |
BOOL | InitSafeAttrItem (CCRuntimeClass *AtrType, NodeAttribute *pAttrib=NULL, Range::CommonAttribResult status=Range::ATTR_NONE) |
Initialises a CommonAttributeItem. If pAttrib is non NULL then a copy of the item is stored. This makes the function useful for caching 'safe' attribute details. | |
void | ClearResults () |
Public Attributes | |
CCRuntimeClass * | AttrType |
NodeAttribute * | pAttr |
Range::CommonAttribResult | Status |
Private Attributes | |
BOOL | pAttrIsCopy |
CommonAttributeSet
Definition at line 459 of file attrmgr.h.
|
Definition at line 463 of file attrmgr.h. 00465 { AttrType = AtrType; pAttr = pAttrib; Status = status; pAttrIsCopy = FALSE; };
|
|
CommonAttributeItem destructor.
Definition at line 4115 of file attrmgr.cpp. 04116 { 04117 if (pAttrIsCopy && pAttr) 04118 delete pAttr; 04119 };
|
|
Definition at line 476 of file attrmgr.h. 00476 { if (pAttrIsCopy && pAttr) 00477 delete pAttr; 00478 pAttr = NULL; 00479 Status = Range::ATTR_NONE; };
|
|
Initialises a CommonAttributeItem. If pAttrib is non NULL then a copy of the item is stored. This makes the function useful for caching 'safe' attribute details.
Definition at line 4085 of file attrmgr.cpp. 04087 { 04088 if (pAttrib) 04089 { 04090 // Try to make a copy of the attribute 04091 NodeAttribute* pAttrCopy = (NodeAttribute*) (pAttrib->SimpleCopy()); 04092 if (!pAttrCopy) 04093 return FALSE; 04094 pAttr = pAttrCopy; 04095 } 04096 else 04097 pAttr = NULL; 04098 04099 AttrType = AtrType; 04100 Status = status; 04101 pAttrIsCopy = TRUE; // Indicate that a copy of the attribute is stored 04102 return TRUE; 04103 }
|
|
|
|
|
|
|
|
|