mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-11 08:40:44 +00:00
Declare new methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@820 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e288bb5407
commit
dd2ecb6dbe
2 changed files with 72 additions and 26 deletions
|
@ -48,28 +48,51 @@
|
|||
int interconnected_stack_height; /* number of nested root objects */
|
||||
}
|
||||
|
||||
+ coderReadingFromStream: (id <Streaming>)stream;
|
||||
+ coderReadingFromFile: (id <String>) filename;
|
||||
/* Encoding */
|
||||
|
||||
+ coderWritingToStream: (id <Streaming>)stream;
|
||||
+ coderWritingToFile: (id <String>)filename;
|
||||
- initForWritingToFile: (id <String>) filename;
|
||||
- initForWritingToFile: (id <String>) filename
|
||||
withCStreamClass: (Class) cStreamClass;
|
||||
- initForWritingToFile: (id <String>) filename
|
||||
withFormatVersion: (int) version
|
||||
cStreamClass: (Class)scc
|
||||
cStreamFormatVersion: (int) cStreamFormatVersion;
|
||||
|
||||
+ decodeObjectFromStream: (id <Streaming>)stream;
|
||||
+ decodeObjectFromFile: (id <String>) filename;
|
||||
|
||||
- initForReadingFromStream: (id <Streaming>) stream
|
||||
formatVersion: (int)version;
|
||||
- initForReadingFromStream: (id <Streaming>) stream;
|
||||
|
||||
- initForWritingToStream: (id <Streaming>) s
|
||||
formatVersion: (int) version;
|
||||
- initForWritingToStream: (id <Streaming>) s;
|
||||
- initForWritingToStream: (id <Streaming>) s
|
||||
withCStreamClass: (Class) cStreamClass;
|
||||
- initForWritingToStream: (id <Streaming>) s
|
||||
withFormatVersion: (int) version
|
||||
cStreamClass: (Class) cStreamClass
|
||||
cStreamFormatVersion: (int) cStreamFormatVersion;
|
||||
|
||||
+ (BOOL) encodeRootObject: anObject
|
||||
withName: (id <String>) name
|
||||
toFile: (id <String>) filename;
|
||||
+ (BOOL) encodeRootObject: anObject
|
||||
withName: (id <String>) name
|
||||
toStream: (id <Streaming>)stream;
|
||||
|
||||
/* Decoding */
|
||||
/* These are class methods because the header of the file or stream
|
||||
determines which (sub)class of Coder is created. */
|
||||
|
||||
+ coderReadingFromFile: (id <String>) filename;
|
||||
+ coderReadingFromStream: (id <Streaming>)stream;
|
||||
|
||||
+ decodeObjectWithName: (id <String> *) name
|
||||
fromFile: (id <String>) filename;
|
||||
+ decodeObjectWithName: (id <String> *) name
|
||||
fromStream: (id <Streaming>)stream;
|
||||
|
||||
|
||||
/* Querying */
|
||||
|
||||
+ (void) setDefaultStreamClass: sc;
|
||||
+ defaultStreamClass;
|
||||
+ (int) defaultFormatVersion;
|
||||
|
||||
|
||||
+ setDebugging: (BOOL)f;
|
||||
|
||||
@end
|
||||
|
|
|
@ -48,28 +48,51 @@
|
|||
int interconnected_stack_height; /* number of nested root objects */
|
||||
}
|
||||
|
||||
+ coderReadingFromStream: (id <Streaming>)stream;
|
||||
+ coderReadingFromFile: (id <String>) filename;
|
||||
/* Encoding */
|
||||
|
||||
+ coderWritingToStream: (id <Streaming>)stream;
|
||||
+ coderWritingToFile: (id <String>)filename;
|
||||
- initForWritingToFile: (id <String>) filename;
|
||||
- initForWritingToFile: (id <String>) filename
|
||||
withCStreamClass: (Class) cStreamClass;
|
||||
- initForWritingToFile: (id <String>) filename
|
||||
withFormatVersion: (int) version
|
||||
cStreamClass: (Class)scc
|
||||
cStreamFormatVersion: (int) cStreamFormatVersion;
|
||||
|
||||
+ decodeObjectFromStream: (id <Streaming>)stream;
|
||||
+ decodeObjectFromFile: (id <String>) filename;
|
||||
|
||||
- initForReadingFromStream: (id <Streaming>) stream
|
||||
formatVersion: (int)version;
|
||||
- initForReadingFromStream: (id <Streaming>) stream;
|
||||
|
||||
- initForWritingToStream: (id <Streaming>) s
|
||||
formatVersion: (int) version;
|
||||
- initForWritingToStream: (id <Streaming>) s;
|
||||
- initForWritingToStream: (id <Streaming>) s
|
||||
withCStreamClass: (Class) cStreamClass;
|
||||
- initForWritingToStream: (id <Streaming>) s
|
||||
withFormatVersion: (int) version
|
||||
cStreamClass: (Class) cStreamClass
|
||||
cStreamFormatVersion: (int) cStreamFormatVersion;
|
||||
|
||||
+ (BOOL) encodeRootObject: anObject
|
||||
withName: (id <String>) name
|
||||
toFile: (id <String>) filename;
|
||||
+ (BOOL) encodeRootObject: anObject
|
||||
withName: (id <String>) name
|
||||
toStream: (id <Streaming>)stream;
|
||||
|
||||
/* Decoding */
|
||||
/* These are class methods because the header of the file or stream
|
||||
determines which (sub)class of Coder is created. */
|
||||
|
||||
+ coderReadingFromFile: (id <String>) filename;
|
||||
+ coderReadingFromStream: (id <Streaming>)stream;
|
||||
|
||||
+ decodeObjectWithName: (id <String> *) name
|
||||
fromFile: (id <String>) filename;
|
||||
+ decodeObjectWithName: (id <String> *) name
|
||||
fromStream: (id <Streaming>)stream;
|
||||
|
||||
|
||||
/* Querying */
|
||||
|
||||
+ (void) setDefaultStreamClass: sc;
|
||||
+ defaultStreamClass;
|
||||
+ (int) defaultFormatVersion;
|
||||
|
||||
|
||||
+ setDebugging: (BOOL)f;
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue