home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / store / IXStoreFile.h < prev    next >
Text File  |  1992-03-22  |  758b  |  33 lines

  1. /*
  2. IXStoreFile.h
  3. Copyright 1991, NeXT Computer, Inc.
  4. */
  5.  
  6. #import    "IXStore.h"
  7.  
  8. @interface IXStoreFile: IXStore
  9. {
  10.     int            descriptor;
  11.     const char        *filename;
  12.     struct        {
  13.     unsigned    needsClose:1;
  14.     unsigned    isCreating:1;
  15.     }            fileStatus;
  16. }
  17.  
  18. - free; // releases lock and closes file descriptor
  19. - init; // creates a temporary file
  20.  
  21. - (int)descriptor; // descriptor is closed on free
  22. - (const char *)filename;
  23.  
  24. - initWithFile:(const char *)filename; // for w&ng; creates if necessary
  25. - initFromFile:(const char *)filename // returns nil if file does not exist
  26.     forWriting:(BOOL)writingFlag;
  27.  
  28. - setSizeLimit:(vm_size_t)limit; // sets resident size limit; zero unlimits
  29. - (vm_size_t)sizeLimit; // returns current size limit, or zero if no limit
  30.  
  31. @end
  32.  
  33.