PageRenderTime 52ms CodeModel.GetById 47ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/BEE.framework/BEE/BEEDumb.h

http://eeframework.googlecode.com/
C++ Header | 48 lines | 16 code | 12 blank | 20 comment | 0 complexity | 2e70786da75b77d0cd85d995f6eecae2 MD5 | raw file
 1// -*- objc -*-
 2/*
 3  The purpose of BEEDumb is to store an object with references to other objects 
 4  without storage place exhausting. Each reference is converted to BEEDumb. BEEDumb 
 5  contains the class name of the original  and the original's oid.
 6*/
 7
 8#ifndef __BEEDUMB_H__
 9#define __BEEDUMB_H__
10
11@interface BEEDumb : NSObject <NSCoding>
12{
13  NSString *_className;
14  NSDecimalNumber *_oid;  
15}
16
17- (id)init;
18- (void)dealloc;
19
20/* Foundation specific */
21- (void)forwardInvocation:(NSInvocation *)anInvocation;
22
23/* BEE specofic */
24
25/**
26 *  Returns the class name of the original object.
27 */
28- (NSString *)objectClassName;
29
30/**
31 *  Returns the oid of the original.
32 */
33- (NSDecimalNumber *)oid;
34
35/**
36 *  Sets the class name of the original object.
37 */
38- (void)setObjectClassName:(NSString *)name;
39
40/**
41 *  Sets the original's oid
42 */
43- (void)setOid:(NSDecimalNumber *)oid;
44
45
46@end /* BEEDumb */
47
48#endif /* __BEEDUMB_H__ */