API  0.9.7
 All Classes Files Functions Variables Macros Groups Pages
CPCoder Class Reference

Defines methods for use when archiving & restoring (enc/decoding). More...

#import <CPCoder.h>

+ Inheritance diagram for CPCoder:

Instance Methods

(BOOL) - allowsKeyedCoding
 
(void) - encodeBycopyObject:
 
(void) - encodeConditionalObject:
 
(void) - encodeDataObject:
 
(void) - encodeObject:
 
(void) - encodePoint:
 
(void) - encodePropertyList:
 
(void) - encodeRect:
 
(void) - encodeRootObject:
 
(void) - encodeSize:
 
(void) - encodeValueOfObjCType:at:
 

Detailed Description

Defines methods for use when archiving & restoring (enc/decoding).

Top-level class defining methods for use when archiving (encoding) objects to a byte array or file, and when restoring (decoding) objects.

Definition at line 2 of file CPCoder.h.

Method Documentation

- (BOOL) allowsKeyedCoding
implementation

Returns a flag indicating whether the receiver supports keyed coding. The default implementation returns NO. Subclasses supporting keyed coding must override this to return YES.

Reimplemented in CPKeyedArchiver, and CPKeyedUnarchiver.

Definition at line 43 of file CPCoder.j.

- (void) encodeBycopyObject: (id)  anObject
implementation

Encodes an object.

Parameters
anObjectthe object to be encoded.

Definition at line 130 of file CPCoder.j.

- (void) encodeConditionalObject: (id)  anObject
implementation

Encodes an object.

Parameters
anObjectthe object to be encoded.

Definition at line 139 of file CPCoder.j.

- (void) encodeDataObject: (CPData aData
implementation

Encodes a data object. Subclasses must override this method.

Parameters
aDatathe object to be encoded.

Definition at line 64 of file CPCoder.j.

- (void) encodeObject: (id)  anObject
implementation

Encodes an object. Subclasses must override this method.

Parameters
anObjectthe object to be encoded

Definition at line 73 of file CPCoder.j.

- (void) encodePoint: (CGPoint)  aPoint
implementation

Encodes a point

Parameters
aPointthe point to be encoded.

Definition at line 82 of file CPCoder.j.

- (void) encodePropertyList: (id)  aPropertyList
implementation

Encodes a property list. Not yet implemented.

Parameters
aPropertyListthe property list to be encoded

Definition at line 112 of file CPCoder.j.

- (void) encodeRect: (CGRect)  aRect
implementation

Encodes a CGRect

Parameters
aRectthe rectangle to be encoded.

Definition at line 92 of file CPCoder.j.

- (void) encodeRootObject: (id)  anObject
implementation

Encodes the root object of a group of Obj-J objects.

Parameters
rootObjectthe root object to be encoded.

Definition at line 121 of file CPCoder.j.

- (void) encodeSize: (CGSize)  aSize
implementation

Encodes a CGSize

Parameters
aSizethe size to be encoded

Definition at line 102 of file CPCoder.j.

- (void) encodeValueOfObjCType: (CPString aType
at: (id)  anObject 
implementation

Encodes a structure or object of a specified type. Usually this is used for primitives though it can be used for objects as well. Subclasses must override this method.

Parameters
aTypethe structure or object type
anObjectthe object to be encoded

Definition at line 55 of file CPCoder.j.


The documentation for this class was generated from the following files: