home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Languages / python / PyObjC-0.47-MIHS / pyobjc-0.47-src / Demo / ObjC / StructUser / StructUser.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-13  |  751 b   |  43 lines

  1. /* Copyright (c) 1996 by Lele Gaifax.  All Rights Reserved
  2.  *
  3.  * This file is part of the PyObjC package.
  4.  *
  5.  * $RCSfile: StructUser.h,v $
  6.  * $Revision: 1.1.1.2 $
  7.  * $Date: 1996/11/14 01:49:54 $
  8.  *
  9.  * Created Mon Sep  9 18:20:56 1996.
  10.  */
  11.  
  12. #ifndef _StructUser_H
  13. #define _StructUser_H
  14.  
  15. #include <objc/Object.h>
  16. #include <pwd.h>
  17.  
  18. /*#C This class does something really interesting... */
  19. @interface StructUser : Object
  20. {
  21.   struct passwd pwdEntry;
  22. }
  23.  
  24. //#M Initialize the version number of this class.
  25. + (void) initialize;
  26.  
  27. + me;
  28.  
  29. - initWithUserId:(int) uid;
  30.  
  31. - initWithPasswd:(struct passwd) aPwdEntry;
  32.  
  33. - (void) show;
  34.  
  35. - (struct passwd) pwdEntry;
  36.  
  37. - (double) multiplyUserIdBy:(float) f;
  38.  
  39. @end /* StructUser class interface */
  40.  
  41.  
  42. #endif /* _StructUser_H */
  43.