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(OBJECTOUTSTREAM_OL_GUARD)
00044 #define OBJECTOUTSTREAM_OL_GUARD
00045 
00046 #include <ObjectiveLib/LayeredOutStream.h>
00047 
00048 @class OLPointerRefTable;
00049 @class OLObjectReplaceTable;
00050 
00067 @interface OLObjectOutStream : OLLayeredOutStream
00068 {
00069 @protected
00074     OLPointerRefTable*      pointerMap;
00075 
00079     OLObjectReplaceTable*   replacementMap;
00080 }
00081 
00092 + (id) streamWithOutStream: (OLOutStream*)underStream;
00093 
00097 
00105 - (id) initWithOutStream: (OLOutStream*)underStream;
00106 
00107 #if !defined(OL_NO_OPENSTEP)
00108 - (void) dealloc;
00109 #endif
00110 
00111 
00112 #if defined(OL_NO_OPENSTEP)
00113 - (void) freeStreamResources;
00114 #endif
00115 
00122 - (void) replaceObject: (id)obj withObject: (id)rep;
00123 - (void) writeBool: (BOOL)value;
00124 
00132 - (void) writeClass: (Class)cls;
00133 - (void) writeDouble: (double)value;
00134 - (void) writeFloat: (float)value;
00135 
00146 - (void) writeHeader;
00147 - (void) writeInt: (unsigned)value;
00148 - (void) writeInt16: (uint16_t)value;
00149 - (void) writeInt32: (uint32_t)value;
00150 - (void) writeInt64: (uint64_t)value;
00151 
00163 - (void) writeObject: (id)object;
00164 #if !defined(OL_NO_OPENSTEP)
00165 
00170 
00171 - (void) encodeBytes: (const void*)address length: (unsigned)numBytes;
00172 - (void) encodeDataObject: (NSData*)data;
00173 
00183 - (void) encodeObject: (id)object;
00184 
00204 - (void) encodeValueOfObjCType: (const char*)valueType at: (const void*)address;
00205 
00212 - (unsigned) systemVersion;
00213 
00224 - (unsigned) versionForClassName: (NSString*)className;
00225 
00226 #endif
00227 
00228 @end
00229 
00230 #endif