ASCIIFilter.h

Go to the documentation of this file.
00001 //***************************************************************************************
00002 // File supervisor: Crosswalk team
00012 //***************************************************************************************
00013 
00014 #ifndef _ASCIIFILTER_H_
00015 #define _ASCIIFILTER_H_
00016 
00017 #include <SIBCUtil.h>
00018 #include <SIBCString.h>
00019 
00020 #include "CXSIFilter.h"
00021 
00022 #define ASCII_FILTER_NAME   "Text"
00023 #define ASCII_FILTER_ID     "txt"
00024 
00030 class CASCIIFilter : public CXSIFilter
00031 {
00032 public:
00035     CASCIIFilter();
00038     virtual ~CASCIIFilter();
00039 
00045     int Open ( CSIBCString in_szFilename,  _SI_FILE_MODE in_Mode );
00049     int Close ();
00050 
00056     int Read ( SI_Char * out_pBuffer, SI_Long in_lSize );
00062     int Write( SI_Char * in_pBuffer,  SI_Long in_lSize );
00063 
00064 
00069     int Eof();
00073     int Tell();
00074 
00075 
00076 private:
00077 #ifdef  _PSX2
00078     bool    m_bEof;
00079 #endif
00080 
00081 };
00082 
00083 #endif