mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
Move NSUnarchiver declaration here from NSUnarchiver.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@857 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
65b89ee4fa
commit
a448359f66
1 changed files with 41 additions and 12 deletions
|
@ -30,31 +30,60 @@
|
||||||
|
|
||||||
@interface NSArchiver : NSCoder
|
@interface NSArchiver : NSCoder
|
||||||
|
|
||||||
// Initializing an archiver
|
/* Initializing an archiver */
|
||||||
|
|
||||||
- (id) initForWritingWithMutableData: (NSMutableData*)mdata;
|
- (id) initForWritingWithMutableData: (NSMutableData*)mdata;
|
||||||
|
|
||||||
// Archiving Data
|
/* Archiving Data */
|
||||||
|
|
||||||
+ (NSData*) archivedDataWithRootObject: (id)rootObject;
|
+ (NSData*) archivedDataWithRootObject: (id)rootObject;
|
||||||
+ (BOOL) archiveRootObject: (id)rootObject toFile: (NSString*)path;
|
+ (BOOL) archiveRootObject: (id)rootObject toFile: (NSString*)path;
|
||||||
|
|
||||||
// Getting data from the archiver
|
/* Getting data from the archiver */
|
||||||
|
|
||||||
+ unarchiveObjectWithData: (NSData*) data;
|
+ unarchiveObjectWithData: (NSData*) data;
|
||||||
+ unarchiveObjectWithFile: (NSString*) path;
|
+ unarchiveObjectWithFile: (NSString*) path;
|
||||||
|
|
||||||
- (NSMutableData*) archiverData;
|
- (NSMutableData*) archiverData;
|
||||||
|
|
||||||
// Substituting Classes
|
/* Substituting Classes */
|
||||||
|
|
||||||
+ (NSString*) classNameEncodedForTrueClassName: (NSString*) trueName;
|
+ (NSString*) classNameEncodedForTrueClassName: (NSString*) trueName;
|
||||||
- (void) enocdeClassName: (NSString*)trueName
|
- (void) enocdeClassName: (NSString*)trueName
|
||||||
intoClassName: (NSString*)inArchiveName;
|
intoClassName: (NSString*)inArchiveName;
|
||||||
+ (NSString*) classNameDecodedForArchiveClassName: (NSString*) inArchiveName;
|
|
||||||
+ (void) decodeClassName: (NSString*) inArchiveName
|
|
||||||
asClassName:(NSString *)trueName;
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
||||||
|
@interface NSUnarchiver : NSCoder
|
||||||
|
|
||||||
|
/* Initializing an unarchiver */
|
||||||
|
- (id) initForReadingWithData: (NSData*)data;
|
||||||
|
|
||||||
|
/* Decoding objects */
|
||||||
|
+ (id) unarchiveObjectWithData: (NSData*)data;
|
||||||
|
+ (id) unarchiveObjectWithFile: (NSString*)path;
|
||||||
|
|
||||||
|
/* Managing */
|
||||||
|
- (BOOL) isAtEnd;
|
||||||
|
- (NSZone*) objectZone;
|
||||||
|
- (void) setObjectZone: (NSZone*)zone;
|
||||||
|
- (unsigned int) systermVersion;
|
||||||
|
|
||||||
|
/* Substituting Classes */
|
||||||
|
+ (NSString*) classNameDecodedForArchiveClassName: (NSString*)nameInArchive;
|
||||||
|
+ (void) decodeClassName: (NSString*)nameInArchive
|
||||||
|
asClassName: (NSString*)trueName;
|
||||||
|
- (NSString*) classNameDecodedForArchiveClassName: (NSString*)nameInArchive;
|
||||||
|
- (void) decodeClassName: (NSString*)nameInArchive
|
||||||
|
asClassName: (NSString*)trueName;
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
|
||||||
|
/* Exceptions */
|
||||||
|
extern NSString *NSInconsistentArchiveException;
|
||||||
|
|
||||||
|
|
||||||
|
/* NSObject extensions for archiving */
|
||||||
|
@interface NSObject (NSArchiver)
|
||||||
|
- (Class) classForArchiver;
|
||||||
|
- replacementObjectForArchiver: (NSArchiver*) archiver;
|
||||||
|
@end
|
||||||
|
|
||||||
#endif /* __NSArchiver_h_OBJECTS_INCLUDE */
|
#endif /* __NSArchiver_h_OBJECTS_INCLUDE */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue