#include <cxfile.h>
Inheritance diagram for NULLXaraFile:
Public Member Functions | |
NULLXaraFile () | |
virtual BOOL | OpenToWrite (CCLexFile *pThisCCFile) |
Writes out the 8 byte header. | |
virtual BOOL | Close () |
Doesn't do anything. | |
virtual BOOL | Write (BYTE b) |
This version doesn't actually write anything out. It just counts those bytes. | |
virtual FilePos | GetFilePos () |
Always returns 0. | |
virtual BOOL | IsCompressionOn () |
Function to see if compression is on. As this is the null filter used to count objects, it always returns FALSE. | |
virtual BOOL | StartCompression () |
Function to turn Compression on when we are writing to the file. As this is the null filter used to count objects, do nothing. | |
virtual BOOL | StopCompression () |
Function to turn Compression off when we are writing to the file. As this is the null filter used to count objects, do nothing. | |
virtual CCLexFile * | GetCCFile () const |
Function to give public access to the underlying CCLexFile that is being used to save out the data. Note: only people who have a genuine reason need to access this - e.g. bitmap savers As this is the null filter used to count objects, do nothing. | |
Protected Member Functions | |
virtual BOOL | FixStreamedRecordHeader (UINT32 *RecordSize) |
Fixes up the previously saved record header for a streamed record. | |
Private Member Functions | |
CC_DECLARE_DYNAMIC (NULLXaraFile) |
Definition at line 363 of file cxfile.h.
|
Definition at line 369 of file cxfile.h.
|
|
|
|
Doesn't do anything.
Reimplemented from CXaraFile. Definition at line 2302 of file cxfile.cpp. 02303 { 02304 return TRUE; 02305 }
|
|
Fixes up the previously saved record header for a streamed record.
Reimplemented from CXaraFile. Definition at line 2425 of file cxfile.cpp. 02426 { 02427 return TRUE; 02428 }
|
|
Function to give public access to the underlying CCLexFile that is being used to save out the data. Note: only people who have a genuine reason need to access this - e.g. bitmap savers As this is the null filter used to count objects, do nothing.
Reimplemented from CXaraFile. Definition at line 2405 of file cxfile.cpp. 02406 { 02407 return NULL; 02408 }
|
|
Always returns 0.
Reimplemented from CXaraFile. Definition at line 2321 of file cxfile.cpp.
|
|
Function to see if compression is on. As this is the null filter used to count objects, it always returns FALSE.
Reimplemented from CXaraFile. Definition at line 2341 of file cxfile.cpp. 02342 { 02343 return FALSE; 02344 }
|
|
Writes out the 8 byte header.
Reimplemented from CXaraFile. Definition at line 2277 of file cxfile.cpp. 02278 { 02279 BOOL ok = TRUE; 02280 02281 // The first 8 bytes should be our unique ID sequence 02282 if (ok) ok = CXaraFile::Write((UINT32)CXF_IDWORD1); 02283 if (ok) ok = CXaraFile::Write((UINT32)CXF_IDWORD2); 02284 02285 return ok; 02286 }
|
|
Function to turn Compression on when we are writing to the file. As this is the null filter used to count objects, do nothing.
Reimplemented from CXaraFile. Definition at line 2362 of file cxfile.cpp. 02363 { 02364 return TRUE; 02365 }
|
|
Function to turn Compression off when we are writing to the file. As this is the null filter used to count objects, do nothing.
Reimplemented from CXaraFile. Definition at line 2383 of file cxfile.cpp. 02384 { 02385 return TRUE; 02386 }
|
|
This version doesn't actually write anything out. It just counts those bytes.
Reimplemented from CXaraFile. Definition at line 2251 of file cxfile.cpp. 02252 { 02253 BOOL ok = TRUE; 02254 02255 if (WriteToRecord && pRecord != NULL) 02256 ok = pRecord->WriteBYTE(b); 02257 else 02258 IncNumBytesWritten(1); 02259 02260 return ok; 02261 }
|