AttrRecordList Class Reference

Used to store a stack of AttributeEntry states. Used by filters that need to keep an attribute state stack (eg the RTF filter). More...

#include <filters.h>

List of all members.

Public Member Functions

 AttrRecordList ()
 Constructor - initalises member variables.
 ~AttrRecordList ()
 Destructor - deletes any claimed memory.
BOOL SaveContext (AttributeEntry *CurrAttrs)
 Stores the current state of the attribute entry array.
BOOL RestoreContext (AttributeEntry *CurrAttrs)
 Returns the current attribute array back to the stored state.
ListGetList ()

Protected Attributes

List AttrRecord

Private Member Functions

 CC_DECLARE_MEMDUMP (AttrRecordList)


Detailed Description

Used to store a stack of AttributeEntry states. Used by filters that need to keep an attribute state stack (eg the RTF filter).

Author:
Peter_Arnold (Xara Group Ltd) <camelotdev@xara.com>
Date:
6/12/95

Definition at line 409 of file filters.h.


Constructor & Destructor Documentation

AttrRecordList::AttrRecordList  ) 
 

Constructor - initalises member variables.

Author:
Peter_Arnold (Xara Group Ltd) <camelotdev@xara.com>
Date:
1/12/95

Definition at line 6767 of file filters.cpp.

06768 {
06769 }

AttrRecordList::~AttrRecordList  ) 
 

Destructor - deletes any claimed memory.

Author:
Peter_Arnold (Xara Group Ltd) <camelotdev@xara.com>
Date:
1/12/95

Definition at line 6779 of file filters.cpp.

06780 {
06781 }


Member Function Documentation

AttrRecordList::CC_DECLARE_MEMDUMP AttrRecordList   )  [private]
 

List* AttrRecordList::GetList void   )  [inline]
 

Definition at line 419 of file filters.h.

00419 {return &AttrRecord;}

BOOL AttrRecordList::RestoreContext AttributeEntry pCurrAttrs  ) 
 

Returns the current attribute array back to the stored state.

Author:
Peter_Arnold (Xara Group Ltd) <camelotdev@xara.com>
Date:
1/12/95
Parameters:
pCurrAttrs - an AttributeEntry array [INPUTS]
- [OUTPUTS]
Returns:
TRUE/FALSE for success/failure

Definition at line 6825 of file filters.cpp.

06826 {
06827     AttrRecordItem* pItem = (AttrRecordItem*)AttrRecord.RemoveTail();
06828     ERROR2IF(pItem == NULL, FALSE, "Record list empty");
06829     pItem->Restore(pCurrAttrs);
06830     delete pItem;
06831 
06832     return TRUE;
06833 }

BOOL AttrRecordList::SaveContext AttributeEntry pCurrAttrs  ) 
 

Stores the current state of the attribute entry array.

Author:
Peter_Arnold (Xara Group Ltd) <camelotdev@xara.com>
Date:
1/12/95
Parameters:
pCurrAttrs - an AttributeEntry array [INPUTS]
- [OUTPUTS]
Returns:
TRUE/FALSE for success/failure

Definition at line 6794 of file filters.cpp.

06795 {
06796     // Create a new record
06797     AttrRecordItem* pItem = new AttrRecordItem;
06798     if (pItem==NULL)
06799         return FALSE;
06800 
06801     // Copy the attributes into it
06802     if (!pItem->Initialise(pCurrAttrs))
06803     {
06804         delete pItem;
06805         return FALSE;
06806     }
06807     else
06808     {
06809         AttrRecord.AddTail(pItem);
06810         return TRUE;
06811     }
06812 }


Member Data Documentation

List AttrRecordList::AttrRecord [protected]
 

Definition at line 422 of file filters.h.


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