home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / EODEV.Z / FlatFileColumn.h < prev    next >
Encoding:
Text File  |  1996-08-23  |  1.2 KB  |  62 lines

  1. /*
  2.         Copyright (c) 1996, NeXT Software, Inc.
  3.         All rights reserved.
  4.  
  5.         You may freely copy, distribute and reuse the code in this example.
  6.         NeXT disclaims any warranty of any kind, expressed or implied,
  7.         as to its fitness for any particular use.
  8. */
  9. #import "FlatFileAdaptor.h"
  10. #import "FlatFileChannel.h"
  11.  
  12. @class EOAttribute;
  13.  
  14. @interface FlatFileColumn:NSObject
  15. {
  16.     EOAttribute *attribute;
  17.     int bindingIndex;
  18. }
  19.  
  20. + (Class)columnClassForAttribute:(EOAttribute *)attr;
  21. + columnForAttribute:(EOAttribute *)attr;
  22.  
  23. - initWithAttribute:(EOAttribute*)attr;
  24. - (void)bindAtIndex:(int)index;
  25. - (int)bindingIndex;
  26. - (id)newValueForBytes:(void *)bytes length:(int)length;
  27.  
  28. @end
  29.  
  30. @interface FlatFileNumberColumn:FlatFileColumn
  31. {
  32.     BOOL useIntValue;
  33. }
  34.  
  35. - (id)newValueForBytes:(void *)bytes length:(int)length;
  36.  
  37. @end
  38.  
  39. @interface FlatFileStringColumn:FlatFileColumn
  40. {
  41.     NSStringEncoding encoding;
  42. }
  43.  
  44. - initWithAttribute:(EOAttribute *)attr;
  45. - (id)newValueForBytes:(void *)bytes length:(int)length;
  46.  
  47. @end
  48.  
  49. @interface FlatFileDataColumn:FlatFileColumn
  50.  
  51. - (id)newValueForBytes:(void *)bytes length:(int)length;
  52.  
  53. @end
  54.  
  55. @interface FlatFileDateColumn:FlatFileColumn
  56. {
  57. }
  58.  
  59. - (id)newValueForBytes:(void *)bytes length:(int)length;
  60.  
  61. @end
  62.