#include <cmxexdc.h>
Inheritance diagram for CMXGroupRecord:
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) |
Definition at line 814 of file cmxexdc.h.
|
initialises the group record
Definition at line 2236 of file cmxexdc.cpp. 02237 { 02238 Offset = pDC->GetFilePosition(); 02239 TallyAtStart = pDC->GetInstructionTally(); 02240 GroupCountAtStart = pDC->GetGroupCount(); 02241 }
|
|
|
|
writes the info in the start of the group command
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 }
|
|
|
|
|
|
|