API 0.9.5
CPCoder Class Reference

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

#import <CPCoder.h>

Inheritance diagram for CPCoder:

List of all members.

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

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 41 of file CPCoder.j.

- (void) encodeBycopyObject: (id)  anObject

Encodes an object.

Parameters:
anObjectthe object to be encoded.

Definition at line 128 of file CPCoder.j.

- (void) encodeConditionalObject: (id)  anObject

Encodes an object.

Parameters:
anObjectthe object to be encoded.

Definition at line 137 of file CPCoder.j.

- (void) encodeDataObject: (CPData aData

Encodes a data object. Subclasses must override this method.

Parameters:
aDatathe object to be encoded.

Definition at line 62 of file CPCoder.j.

- (void) encodeObject: (id)  anObject

Encodes an object. Subclasses must override this method.

Parameters:
anObjectthe object to be encoded

Definition at line 71 of file CPCoder.j.

- (void) encodePoint: (CPPoint)  aPoint

Encodes a point

Parameters:
aPointthe point to be encoded.

Definition at line 80 of file CPCoder.j.

- (void) encodePropertyList: (id)  aPropertyList

Encodes a property list. Not yet implemented.

Parameters:
aPropertyListthe property list to be encoded

Definition at line 110 of file CPCoder.j.

- (void) encodeRect: (CGRect)  aRect

Encodes a CGRect

Parameters:
aRectthe rectangle to be encoded.

Definition at line 90 of file CPCoder.j.

- (void) encodeRootObject: (id)  anObject

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

Parameters:
rootObjectthe root object to be encoded.

Definition at line 119 of file CPCoder.j.

- (void) encodeSize: (CPSize)  aSize

Encodes a CGSize

Parameters:
aSizethe size to be encoded

Definition at line 100 of file CPCoder.j.

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

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 53 of file CPCoder.j.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Defines