#include <CXSIFilter.h>
Inheritance diagram for CXSIFilter:

Public Member Functions |
|
| CXSIFilter () | |
| virtual | ~CXSIFilter () |
| void | SetName (const CSIBCString &in_szName) |
| CSIBCString | GetName () |
| void | SetID (const CSIBCString &in_szID) |
| CSIBCString & | GetID () |
| virtual void | SetHeader (CSIBCString in_szHeader) |
| CSIBCString | GetHeader () |
| virtual void | WriteHeader () |
| virtual int | Open (CSIBCString in_szFilename, _SI_FILE_MODE in_Mode) |
| virtual int | Close () |
| virtual int | Read (SI_Char *out_pBuffer, SI_Long in_lSize) |
| virtual int | Write (SI_Char *in_pBuffer, SI_Long in_lSize) |
| virtual int | Eof () |
| virtual int | Tell () |
| void | SetSubFilter (CXSIFilter *in_pSub) |
| CXSIFilter * | GetSubFilter () |
This base class defines the basis for all filters in the system. A filter will be used both for reading and writing to/from a file. Filters can be chained so we can create constructs like, BUFFERING | ASCII or COMPRESS for example.
| CXSIFilter | ( | ) |
Constructor
| virtual ~CXSIFilter | ( | ) | [virtual] |
Destructor
| void SetName | ( | const CSIBCString & | in_szName | ) |
Sets the name of the file to be used, needed because the FTK receives the name, but it is the last filter that will open the file, so it has to be passed down from filter to filter.
| in_szName | Name of the filter. |
| CSIBCString GetName | ( | ) |
Returns the name of the file used
| void SetID | ( | const CSIBCString & | in_szID | ) |
Sets the ID for the filter. This ID will appear inside the dotXSI header
| in_szID | String ID ("txt" or "bin") |
| CSIBCString& GetID | ( | ) |
returns the current ID
| virtual void SetHeader | ( | CSIBCString | in_szHeader | ) | [virtual] |
Sets the header to be used for the file ("xsi 0360txt") for example
| in_szHeader | header |
Reimplemented in CMemoryFilter.
| CSIBCString GetHeader | ( | ) |
returns the current header
Reimplemented in CMemoryFilter.
| virtual 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 in CMemoryFilter.
| virtual 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 in CASCIIFilter, CBINFilter, CBufferFilter, CLegacyFilter, and CMemoryFilter.
| virtual int Close | ( | ) | [virtual] |
Closes the file when finished
Reimplemented in CASCIIFilter, CBINFilter, CBufferFilter, CLegacyFilter, and CMemoryFilter.
| virtual 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 in CASCIIFilter, CBINFilter, CBufferFilter, CLegacyFilter, and CMemoryFilter.
| virtual 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 in CASCIIFilter, CBINFilter, CBufferFilter, CLegacyFilter, and CMemoryFilter.
| virtual int Eof | ( | ) | [virtual] |
Tests whether we have reached the end of file
Reimplemented in CASCIIFilter, CBINFilter, CBufferFilter, CLegacyFilter, and CMemoryFilter.
| virtual int Tell | ( | ) | [virtual] |
Returns the current position in the file.
Reimplemented in CASCIIFilter, CBINFilter, CBufferFilter, CLegacyFilter, and CMemoryFilter.
| void SetSubFilter | ( | CXSIFilter * | in_pSub | ) | [inline] |
Sets sub filter, used during construction.
| in_pSub | sub filter to use. |
| CXSIFilter* GetSubFilter | ( | ) | [inline] |
Returns the current subfilter