#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 () |
| 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 | Filename | |
| in_Mode | mode |
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
Reimplemented from CXSIFilter.
| int Tell | ( | ) | [virtual] |
Returns the current position in the file.
Reimplemented from CXSIFilter.
| void WriteHeader | ( | ) | [virtual] |
Writes out the header, this is 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 header to be used for the file ("xsi 0360txt") for example
| in_szHeader | header |
Reimplemented from CXSIFilter.
| CSIBCString GetHeader | ( | ) | [inline] |
returns the current header
Reimplemented from CXSIFilter.