From c269d7d123179c87752f6aaffcdc23b7671305ac Mon Sep 17 00:00:00 2001 From: mccallum Date: Tue, 23 Jan 1996 23:01:24 +0000 Subject: [PATCH] Declare new methods. (cstream): New ivar, replacing "stream". (classname_map): New ivar, but not yet used properly. (concrete_format_version): ivar removed, this is now in the CStream classes. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@775 72102866-910b-0410-8b05-ffd578937521 --- Headers/gnustep/base/Coder.h | 21 ++++++++++++++------- Source/objects/Coder.h | 21 ++++++++++++++------- 2 files changed, 28 insertions(+), 14 deletions(-) diff --git a/Headers/gnustep/base/Coder.h b/Headers/gnustep/base/Coder.h index a656f2fe2..d3f00f869 100644 --- a/Headers/gnustep/base/Coder.h +++ b/Headers/gnustep/base/Coder.h @@ -26,31 +26,38 @@ #include #include +#include +#include -@class Stream; +@class CStream; @class Dictionary; @class Stack; -@class Array; +@class Array; /* xxx Change this to "Set" */ @interface Coder : NSObject { int format_version; - int concrete_format_version; - Stream *stream; + CStream *cstream; BOOL is_decoding; + Dictionary *classname_map; /* for changing class names on r/w */ Dictionary *object_table; /* read/written objects */ Dictionary *const_ptr_table; /* read/written const *'s */ Dictionary *root_object_table; /* table of interconnected objects */ Dictionary *forward_object_table; /* table of forward references */ Array *in_progress_table; /* objects started r/w, but !finished */ int interconnected_stack_height; /* number of nested root objects */ - - /* Not all these ivars are really necessary. I fixed a bug with - a quick fix; now I need to go back and clean it up. -mccallum */ } ++ coderReadingFromStream: (id )stream; ++ coderReadingFromFile: (id ) filename; + ++ decodeObjectFromStream: (id )stream; ++ decodeObjectFromFile: (id ) filename; + + (void) setDefaultStreamClass: sc; + defaultStreamClass; ++ (int) defaultFormatVersion; + + setDebugging: (BOOL)f; @end diff --git a/Source/objects/Coder.h b/Source/objects/Coder.h index a656f2fe2..d3f00f869 100644 --- a/Source/objects/Coder.h +++ b/Source/objects/Coder.h @@ -26,31 +26,38 @@ #include #include +#include +#include -@class Stream; +@class CStream; @class Dictionary; @class Stack; -@class Array; +@class Array; /* xxx Change this to "Set" */ @interface Coder : NSObject { int format_version; - int concrete_format_version; - Stream *stream; + CStream *cstream; BOOL is_decoding; + Dictionary *classname_map; /* for changing class names on r/w */ Dictionary *object_table; /* read/written objects */ Dictionary *const_ptr_table; /* read/written const *'s */ Dictionary *root_object_table; /* table of interconnected objects */ Dictionary *forward_object_table; /* table of forward references */ Array *in_progress_table; /* objects started r/w, but !finished */ int interconnected_stack_height; /* number of nested root objects */ - - /* Not all these ivars are really necessary. I fixed a bug with - a quick fix; now I need to go back and clean it up. -mccallum */ } ++ coderReadingFromStream: (id )stream; ++ coderReadingFromFile: (id ) filename; + ++ decodeObjectFromStream: (id )stream; ++ decodeObjectFromFile: (id ) filename; + + (void) setDefaultStreamClass: sc; + defaultStreamClass; ++ (int) defaultFormatVersion; + + setDebugging: (BOOL)f; @end