home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_11_07 / file.h < prev    next >
Text File  |  1993-01-07  |  578b  |  21 lines

  1. /*** File Class Interface: file.h ***/
  2. #include "objects.h"
  3.  
  4. DCL_METHODS(File,Object,(void))
  5.     DCL_ABSTRACT(Seek,(long offset, int whence), long);
  6.     DCL_ABSTRACT(Read,(void *buffer, int nbytes), int);
  7.     DCL_ABSTRACT(Write,(void *buffer, int nbytes), int);
  8. END_METHODS
  9.  
  10. DCL_MEMBERS(File,Object)
  11. END_MEMBERS
  12.  
  13. #define FileSeek(file,offset,whence) \
  14.     SEND(file,File,Seek,(offset,whence))
  15.  
  16. #define FileRead(file,buffer,nbytes) \
  17.     SEND(file,File,Read,(buffer,nbytes))
  18.  
  19. #define FileWrite(file,buffer,nbytes) \
  20.     SEND(file,File,Write,(buffer,nbytes))
  21.