home *** CD-ROM | disk | FTP | other *** search
/ Informática Multimedia: Special Games / INFESPGAMES.mdf / os2 / ribble / support / cbr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-26  |  710 b   |  37 lines

  1. #include <CSupport.h>
  2. #include <CAssert.h>
  3.  
  4. #ifndef _CBuffRead_h
  5. #define _CBuffRead_h
  6.  
  7. class CSExport CBufferedRead
  8. {
  9. public:
  10.   CBufferedRead(const char* _filename, int _mode);
  11.   CBufferedRead(int _fd);
  12.   ~CBufferedRead();
  13.  
  14.   long opened(void);
  15.   long rewind(void);
  16.   long seek(long _position);
  17.   void close(void);
  18.   void flush(void);
  19.   long read(char* _buffer, unsigned int _length);
  20.   char* getline(void); 
  21.  
  22. private:
  23.   int         fd;
  24.   int         fdOpened;
  25.   char CSHuge* buffer;
  26.   long        bufferSeekPos;
  27.   long        bufferOff;
  28.   long        bufferSize;
  29.   char*       lineBuffer;
  30.   long        lineBufferLen;
  31.  
  32.   enum Constants { BufferSize = 32000 };
  33. };
  34.  
  35.  
  36. #endif
  37.