CDRAttributeStoredItem Class Reference

A list item object for attributes from a CDR file import. More...

#include <cdrfiltr.h>

Inheritance diagram for CDRAttributeStoredItem:

ListItem CCObject SimpleCCObject CDRArrowheadStoredItem CDRBitmapStoredItem CDRFontnameStoredItem List of all members.

Public Member Functions

 CDRAttributeStoredItem (void)
 Constructor.
 ~CDRAttributeStoredItem ()
 Destructor.
BOOL Aquire (RIFFFile *RIFF)
 Destructor.

Protected Attributes

INT32 Size
ADDR Block

Private Member Functions

 CC_DECLARE_MEMDUMP (CDRAttributeStoredItem)

Friends

class CDRAttributeStore
class CDRArrowheadStore
class CDRArrowheadStoredItem
class CDRFontnameStore

Detailed Description

A list item object for attributes from a CDR file import.

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
22 03 95

Definition at line 162 of file cdrfiltr.h.


Constructor & Destructor Documentation

CDRAttributeStoredItem::CDRAttributeStoredItem void   ) 
 

Constructor.

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
22 03 95
Parameters:
[INPUTS] 
Returns:
See also:
CDRAttributeStore

Definition at line 4902 of file cdrfiltr.cpp.

04903 {
04904     Block = 0;
04905 }

CDRAttributeStoredItem::~CDRAttributeStoredItem void   ) 
 

Destructor.

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
22 03 95
Parameters:
[INPUTS] 
Returns:
See also:
CDRAttributeStore

Definition at line 4921 of file cdrfiltr.cpp.

04922 {
04923     CCFree(Block);
04924 }


Member Function Documentation

BOOL CDRAttributeStoredItem::Aquire RIFFFile RIFF  ) 
 

Destructor.

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
22 03 95
Parameters:
[INPUTS] 
Returns:
See also:
CDRAttributeStore

Definition at line 4940 of file cdrfiltr.cpp.

04941 {
04942     ERROR3IF(Block != 0, "CDRAttributeStoredItem already has data");
04943 
04944     Size = RIFF->GetObjSize();
04945     
04946     // get a block of memory
04947     if((Block = (ADDR)CCMalloc(Size)) == 0)
04948         return FALSE;
04949 
04950     // get the data of the object into it
04951     if(!RIFF->GetChunkData(Block, Size))
04952         return FALSE;
04953 
04954     // bye
04955     return TRUE;
04956 }

CDRAttributeStoredItem::CC_DECLARE_MEMDUMP CDRAttributeStoredItem   )  [private]
 


Friends And Related Function Documentation

friend class CDRArrowheadStore [friend]
 

Reimplemented in CDRArrowheadStoredItem.

Definition at line 165 of file cdrfiltr.h.

friend class CDRArrowheadStoredItem [friend]
 

Definition at line 166 of file cdrfiltr.h.

friend class CDRAttributeStore [friend]
 

Reimplemented in CDRFontnameStoredItem, CDRArrowheadStoredItem, and CDRBitmapStoredItem.

Definition at line 164 of file cdrfiltr.h.

friend class CDRFontnameStore [friend]
 

Reimplemented in CDRFontnameStoredItem.

Definition at line 167 of file cdrfiltr.h.


Member Data Documentation

ADDR CDRAttributeStoredItem::Block [protected]
 

Definition at line 179 of file cdrfiltr.h.

INT32 CDRAttributeStoredItem::Size [protected]
 

Definition at line 178 of file cdrfiltr.h.


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