Stream.h
上传用户:shenzhenrh
上传日期:2013-05-12
资源大小:2904k
文件大小:2k
源码类别:

信息检索与抽取

开发平台:

Unix_Linux

  1. #import <defobj/Create.h>
  2. #import <defobj.h>
  3. #import <collections.h>
  4. #import <collections/List_linked.h>
  5. @interface ArchiverKeyword_c: CreateDrop_s <ArchiverKeyword>
  6. {
  7.   const char *keywordName;
  8. }
  9. - setKeywordName: (const char *)name;
  10. - (const char *)getKeywordName;
  11. - (void)lispOutShallow: (id <OutputStream>)stream;
  12. - (void)lispOutDeep: (id <OutputStream>)stream;
  13. @end
  14. @interface ArchiverArray_c: CreateDrop_s <ArchiverArray>
  15. {
  16.   unsigned rank;
  17.   unsigned *dims;
  18.   size_t elementSize;
  19.   unsigned elementCount;
  20.   fcall_type_t type;
  21.   void *data;
  22. }
  23. - setArray: array;
  24. - (void *)getData;
  25. - (unsigned)getRank;
  26. - (unsigned *)getDims;
  27. - (size_t)getElementSize;
  28. - (unsigned)getElementCount;
  29. - (fcall_type_t)getArrayType;
  30. - convertToType: (fcall_type_t)destType dest: (void *)ptr;
  31. - (void)lispOutShallow: (id <OutputStream>)stream;
  32. - (void)lispOutDeep: (id <OutputStream>)stream;
  33. - (void)drop;
  34. @end
  35. @interface ArchiverValue_c: CreateDrop_s <ArchiverValue>
  36. {
  37.   fcall_type_t type;
  38.   union {
  39.     long double ld;
  40.     double d;
  41.     float f;
  42.     long long ll;
  43.     BOOL bool;
  44.     char ch;
  45.     id obj;
  46.     Class class;
  47.   } value;
  48. }
  49. - setFloat: (float)val;
  50. - setDouble: (double)val;
  51. - setLongDouble: (long double)val;
  52. - setLongLong: (long long)val;
  53. - setChar: (char)val;
  54. - setBoolean: (BOOL)val;
  55. - setNil;
  56. - setClass: (Class)class;
  57. - (long double)getLongDouble;
  58. - (double)getDouble;
  59. - (float)getFloat;
  60. - (long long)getLongLong;
  61. - (int)getInteger;
  62. - (unsigned)getUnsigned;
  63. - (char)getChar;
  64. - (BOOL)getBoolean;
  65. - getObject;
  66. - (Class)getClass;
  67. - (fcall_type_t)getValueType;
  68. - (void)lispOutShallow: (id <OutputStream>)stream;
  69. - (void)lispOutDeep: (id <OutputStream>)stream;
  70. @end
  71. @interface ArchiverPair_c: CreateDrop_s <ArchiverPair>
  72. {
  73.   id car;
  74.   id cdr;
  75.   BOOL consFormatFlag;
  76. }
  77. - setCar: car;
  78. - setCdr: cdr;
  79. - setConsFormatFlag: (BOOL)theConsFormatFlag;
  80. - (BOOL)getConsFormatFlag;
  81. - getCar;
  82. - getCdr;
  83. - (void)lispOutShallow: (id <OutputStream>)stream;
  84. - (void)lispOutDeep: (id <OutputStream>)stream;
  85. @end
  86. @interface ArchiverList_c: List_linked <ArchiverList>
  87. {
  88. }
  89. - (void)lispOutShallow: (id <OutputStream>)stream;
  90. - (void)lispOutDeep: (id <OutputStream>)stream;
  91. @end
  92. @interface ArchiverQuoted_c: CreateDrop_s <ArchiverQuoted>
  93. {
  94.   id value;
  95. }
  96. - setQuotedObject: value;
  97. - getQuotedObject;
  98. - (void)lispOutDeep: stream;
  99. @end