#include <attraggl.h>
Inheritance diagram for MultiCommonAttrItem:
Public Types | |
enum | CAResult { AA_INVALID = 0, AA_NONE = 1, AA_SINGLE, AA_COMMON, AA_MANY } |
Public Member Functions | |
MultiCommonAttrItem (AttributeIdentifier AttrType, NodeAttribute *const pAttr=NULL) | |
MultiCommonAttrItem constructor. | |
~MultiCommonAttrItem () | |
MultiCommonAttrItem destructor. | |
void | ClearResults () |
??? | |
AttributeIdentifier | GetAttrID () const |
const CAResult & | GetStatus () const |
NodeAttribute * | GetNode () const |
void | SetStatus (const CAResult &Status) |
void | SetNode (NodeAttribute *const pAttr) |
AppliedAttribute * | CreateVisibleAppliedAttribute () const |
This will be superseded (replace this class with the AppliedAttribute class). | |
Private Member Functions | |
CC_DECLARE_MEMDUMP (MultiCommonAttrItem) | |
Private Attributes | |
CAResult | m_Status |
AttributeIdentifier | m_AttrType |
NodeAttribute * | m_pAttr |
BOOL | m_AttrIsCopy |
Definition at line 466 of file attraggl.h.
|
Definition at line 477 of file attraggl.h. 00477 { AA_INVALID = 0, // indicates uninitialized data 00478 AA_NONE = 1, 00479 AA_SINGLE, 00480 AA_COMMON, 00481 AA_MANY 00482 };
|
|
MultiCommonAttrItem constructor.
Definition at line 451 of file attraggl.cpp. 00452 : 00453 m_AttrType(AttrType) 00454 { 00455 m_pAttr = pAttr; 00456 m_Status = (pAttr == NULL) ? AA_NONE : AA_SINGLE; 00457 m_AttrIsCopy = FALSE; 00458 }
|
|
MultiCommonAttrItem destructor.
Definition at line 470 of file attraggl.cpp. 00471 { 00472 if (m_AttrIsCopy && m_pAttr != NULL) 00473 { 00474 delete m_pAttr; 00475 m_pAttr = NULL; 00476 } 00477 }
|
|
|
|
???
Definition at line 490 of file attraggl.cpp. 00491 { 00492 if (m_AttrIsCopy && m_pAttr != NULL) 00493 { 00494 delete m_pAttr; 00495 m_pAttr = NULL; 00496 } 00497 m_pAttr = NULL; 00498 m_Status = AA_NONE; 00499 }
|
|
This will be superseded (replace this class with the AppliedAttribute class).
Definition at line 512 of file attraggl.cpp. 00513 { 00514 AppliedAttribute* pAppliedAttribute = NULL; 00515 00516 switch (GetStatus()) 00517 { 00518 case MultiCommonAttrItem::AA_NONE: 00519 TRACE( wxT("MultiCommonAttrItem::CreateVisibleAppliedAttribute() - MultiCommonAttrItem::AA_NONE\n") ); 00520 break; 00521 00522 case MultiCommonAttrItem::AA_SINGLE: 00523 { 00524 NodeAttribute* const pAttr = GetNode(); 00525 ENSURE_NOT_NULL(pAttr); 00526 pAppliedAttribute = new SingletonAppliedAttribute(*pAttr); 00527 break; 00528 } 00529 case MultiCommonAttrItem::AA_COMMON: 00530 { 00531 NodeAttribute* const pAttr = GetNode(); 00532 ENSURE_NOT_NULL(pAttr); 00533 pAppliedAttribute = new CommonAppliedAttribute(*pAttr); 00534 break; 00535 } 00536 case MultiCommonAttrItem::AA_MANY: 00537 { 00538 // There's more than one, they're all different, but we have one for the 00539 // description 00540 NodeAttribute* const pAttr = GetNode(); 00541 ENSURE_NOT_NULL(pAttr); 00542 pAppliedAttribute = new MultiAppliedAttribute(*pAttr); 00543 break; 00544 } 00545 case MultiCommonAttrItem::AA_INVALID: 00546 ERROR3("AA_INVALID received - why? Alex put this in to suppress compiler warning"); 00547 break; 00548 } 00549 00550 return pAppliedAttribute; 00551 }
|
|
Definition at line 484 of file attraggl.h. 00484 { return m_AttrType; }
|
|
Definition at line 486 of file attraggl.h. 00486 { return m_pAttr; }
|
|
Definition at line 485 of file attraggl.h. 00485 { return m_Status; }
|
|
Definition at line 489 of file attraggl.h. 00489 { m_pAttr = pAttr; }
|
|
Definition at line 488 of file attraggl.h. 00488 { m_Status = Status; }
|
|
Definition at line 498 of file attraggl.h. |
|
Definition at line 495 of file attraggl.h. |
|
Definition at line 496 of file attraggl.h. |
|
Definition at line 494 of file attraggl.h. |