00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 #if !defined(OUTSTREAM_OL_GUARD)
00044 #define OUTSTREAM_OL_GUARD
00045
00046 #include <ObjectiveLib/Config.h>
00047 #if defined(OL_NO_OPENSTEP)
00048 #include <ObjectiveLib/ReferenceCountedStream.h>
00049 #if defined(OL_HAVE_INTTYPES_H)
00050 #include <inttypes.h>
00051 #else
00052 #include <stdint.h>
00053 #endif
00054 #else
00055 #include <ObjectiveLib/ObjectBase.h>
00056 #if defined(OL_GENERATING_DOCUMENTATION)
00057 #include <Foundation/NSCoder.h>
00058 #else
00059 #import <Foundation/NSCoder.h>
00060 #endif
00061 #endif
00062
00063 #if !defined(OL_NO_OPENSTEP)
00064 @class NSData;
00065 #endif
00066
00067 @class OLText;
00068
00086 #if defined(OL_NO_OPENSTEP)
00087 @interface OLOutStream : OLReferenceCountedStream
00088 #else
00089 @interface OLOutStream : NSCoder
00090 #endif
00091 {
00092 }
00093
00100 - (void) close;
00101
00108 - (void) flush;
00109
00119 - (void) writeBool: (BOOL)value;
00120
00129 - (void) writeByte: (uint8_t)byte;
00130
00140 - (unsigned) writeBytes: (const uint8_t*)bytes count: (unsigned)count;
00141
00150 - (void) writeDouble: (double)value;
00151
00160 - (void) writeFloat: (float)value;
00161
00173 - (void) writeInt: (unsigned)value;
00174
00183 - (void) writeInt16: (uint16_t)value;
00184
00193 - (void) writeInt32: (uint32_t)value;
00194
00203 - (void) writeInt64: (uint64_t)value;
00204
00212 - (void) writeSelector: (SEL)sel;
00213
00214 #if !defined(OL_NO_OPENSTEP)
00215
00220
00227 - (BOOL) allowsKeyedCoding;
00228
00239 - (void) encodeBytes: (const void*)address length: (unsigned)numBytes;
00240
00250 - (void) encodeDataObject: (NSData*)data;
00251
00258 - (void) encodeObject: (id)object;
00259
00281 - (void) encodeValueOfObjCType: (const char*)valueType at: (const void*)address;
00282
00283 #endif
00284
00285 @end
00286
00287 #endif