qafHgeInputStream.h

00001 /* 
00002 ** Qaf Framework 1.2
00003 ** June 2006
00004 ** 
00005 ** Pedro Luchini de Moraes, Public Domain - Free Lunch Code
00006 */
00007 
00008 #ifndef QAF_UTIL_HGEINPUTSTREAM_H
00009 #define QAF_UTIL_HGEINPUTSTREAM_H
00010 
00011 #include <stdio.h>
00012 
00013 namespace qaf {
00014 
00018     class HgeInputStream { 
00019         public:
00026             HgeInputStream ( const char * filename );
00027             
00032             bool canRead ();
00033             
00037             int getSize ();
00038             
00054             int seek ( long offset, int whence );
00055             
00059             long tell ();
00060             
00065             int getC ();
00066             
00079             int read ( void * buffer, long itemSize, long itemCount );
00080             
00088             int skipWhiteSpace ();
00089             
00094             virtual ~HgeInputStream ();
00095             
00096             
00097         private:
00098             unsigned char * data;
00099             long size;
00100             long filePointer;
00101     };
00102     
00103 }
00104 
00105 
00106 
00107 #endif

Generated on Sun Mar 25 12:32:12 2007 for Qaf Framework by  doxygen 1.5.1-p1