CMXGroupRecord Class Reference

#include <cmxexdc.h>

Inheritance diagram for CMXGroupRecord:

ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 CMXGroupRecord (CMXExportDC *pDC)
 initialises the group record
BOOL Write (CMXExportDC *pDC)
 writes the info in the start of the group command

Protected Attributes

INT32 Offset
INT32 TallyAtStart
INT32 GroupCountAtStart

Private Member Functions

 CC_DECLARE_DYNAMIC (CMXGroupRecord)

Detailed Description

Definition at line 814 of file cmxexdc.h.


Constructor & Destructor Documentation

CMXGroupRecord::CMXGroupRecord CMXExportDC pDC  ) 
 

initialises the group record

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/06/96
Parameters:
a CMXExportDC [INPUTS]
Returns:
none
See also:

Definition at line 2236 of file cmxexdc.cpp.

02237 {
02238     Offset = pDC->GetFilePosition();
02239     TallyAtStart = pDC->GetInstructionTally();
02240     GroupCountAtStart = pDC->GetGroupCount();
02241 }


Member Function Documentation

CMXGroupRecord::CC_DECLARE_DYNAMIC CMXGroupRecord   )  [private]
 

BOOL CMXGroupRecord::Write CMXExportDC pDC  ) 
 

writes the info in the start of the group command

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/06/96
Parameters:
a CMXExportDC [INPUTS]
Returns:
sucess
See also:

Definition at line 2257 of file cmxexdc.cpp.

02258 {
02259     // write the group count
02260     if(!pDC->WriteNumber(Offset, sizeof(WORD), pDC->GetGroupCount() - GroupCountAtStart))
02261         return FALSE;
02262     // write the instruction count
02263     if(!pDC->WriteNumber(Offset + sizeof(WORD), sizeof(DWORD), pDC->GetInstructionTally() - TallyAtStart))
02264         return FALSE;
02265     // write the group end location
02266     if(!pDC->WriteNumber(Offset + sizeof(WORD) + sizeof(DWORD), sizeof(DWORD), pDC->GetFilePosition()))
02267         return FALSE;
02268 
02269     return TRUE;
02270 }


Member Data Documentation

INT32 CMXGroupRecord::GroupCountAtStart [protected]
 

Definition at line 825 of file cmxexdc.h.

INT32 CMXGroupRecord::Offset [protected]
 

Definition at line 823 of file cmxexdc.h.

INT32 CMXGroupRecord::TallyAtStart [protected]
 

Definition at line 824 of file cmxexdc.h.


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