/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. #ifndef __BEEDUMB_H__
  8. #define __BEEDUMB_H__
  9. @interface BEEDumb : NSObject <NSCoding>
  10. {
  11. NSString *_className;
  12. NSDecimalNumber *_oid;
  13. }
  14. - (id)init;
  15. - (void)dealloc;
  16. /* Foundation specific */
  17. - (void)forwardInvocation:(NSInvocation *)anInvocation;
  18. /* BEE specofic */
  19. /**
  20. * Returns the class name of the original object.
  21. */
  22. - (NSString *)objectClassName;
  23. /**
  24. * Returns the oid of the original.
  25. */
  26. - (NSDecimalNumber *)oid;
  27. /**
  28. * Sets the class name of the original object.
  29. */
  30. - (void)setObjectClassName:(NSString *)name;
  31. /**
  32. * Sets the original's oid
  33. */
  34. - (void)setOid:(NSDecimalNumber *)oid;
  35. @end /* BEEDumb */
  36. #endif /* __BEEDUMB_H__ */