home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Mobile / Chip_Mobile_2001.iso / palm / business / printcar / printcar.exe / src / Util / InputStream.h < prev    next >
C/C++ Source or Header  |  2000-06-07  |  561b  |  28 lines

  1. //
  2. //  $Id: InputStream.h,v 1.2 2000/06/07 06:53:19 sergey Exp $
  3. //
  4.  
  5. #ifndef _InputStream_h_
  6. #define _InputStream_h_
  7.  
  8. namespace Util
  9. {
  10.     //
  11.     // Input stream interface class
  12.     //
  13.     class InputStream
  14.     {
  15.     protected:
  16.         InputStream() {}
  17.         virtual ~InputStream() {}
  18.  
  19.     public:
  20.         // Reads data from string. Returns amount of bytes read from the stream
  21.         virtual int readData(void* data, int size) const = 0;
  22.         virtual bool eof() const = 0;
  23.     };
  24. }
  25. // namespace Util
  26.  
  27. #endif // _InputStream_h_
  28.