#include <MemoryFilter.h>
Inheritance diagram for CMemoryFilter:

Public Member Functions |
|
| CMemoryFilter () | |
| virtual | ~CMemoryFilter () |
| int | Open (CSIBCString in_szFilename, _SI_FILE_MODE in_Mode) |
| int | Close () |
| int | Read (SI_Char *out_pBuffer, SI_Long in_lSize) |
| int | Write (SI_Char *in_pBuffer, SI_Long in_lSize) |
| int | Eof () |
| int | Tell () |
| void | WriteHeader () |
| void | SetHeader (CSIBCString in_szHeader) |
| CSIBCString | GetHeader () |
This class will gather up to a certain size of data until it calls its subfilter to write or it will read up to a certain size in one go and answer to request until it has exhausted the data at which point it will ask its subfilter for more data.
| CMemoryFilter | ( | ) |
Constructor
| virtual ~CMemoryFilter | ( | ) | [virtual] |
Destructor
| int Open | ( | CSIBCString | in_szFilename, | |
| _SI_FILE_MODE | in_Mode | |||
| ) | [virtual] |
Opens the file for either reading or writing
| in_szFilename | file to open | |
| in_Mode | whether to read or write |
Reimplemented from CXSIFilter.
| int Close | ( | ) | [virtual] |
Closes the file when finished
Reimplemented from CXSIFilter.
| int Read | ( | SI_Char * | out_pBuffer, | |
| SI_Long | in_lSize | |||
| ) | [virtual] |
Reads a number of bytes into the buffer passed in.
| out_pBuffer | output buffer |
| in_lSize | number of bytes to read |
Reimplemented from CXSIFilter.
| int Write | ( | SI_Char * | in_pBuffer, | |
| SI_Long | in_lSize | |||
| ) | [virtual] |
Writes a number of bytes to the file
| in_pBuffer | input buffer | |
| in_lSize | number of bytes to write |
Reimplemented from CXSIFilter.
| int Eof | ( | ) | [virtual] |
Tests whether we have reached the end of file
1 if we are at the end of the file 0 otherwise
Reimplemented from CXSIFilter.
| int Tell | ( | ) | [virtual] |
Returns the current position in the file.
Reimplemented from CXSIFilter.
| void WriteHeader | ( | ) | [virtual] |
Writes out the file header, called when we are about to write the file, to make sure the header is the first thing written in the file.
Reimplemented from CXSIFilter.
| void SetHeader | ( | CSIBCString | in_szHeader | ) | [virtual] |
Sets the file header to be used (for example, "xsi 0360txt")
| in_szHeader | string to use for the file header |
Reimplemented from CXSIFilter.
| CSIBCString GetHeader | ( | ) | [inline] |
Returns the current file header
Reimplemented from CXSIFilter.