home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / DEV.Z / Country.h < prev    next >
Encoding:
Text File  |  1996-07-30  |  1.3 KB  |  53 lines

  1. /*
  2.   You may freely copy, distribute, and reuse the code in this example.
  3.   NeXT disclaims any warranty of any kind, expressed or implied, as to its
  4.   fitness for any particular use.
  5. */
  6.  
  7.  
  8. #import <AppKit/AppKit.h>
  9. #import <Foundation/Foundation.h>
  10.  
  11. @interface Country : NSObject <NSCoding>
  12. {
  13.     NSString *name;
  14.     NSString *airports;
  15.     NSString *airlines;
  16.     NSString *transportation;
  17.     NSString *hotels;
  18.     NSString *languages;
  19.     BOOL     englishSpoken;
  20.     NSString *currencyName;
  21.     float currencyRate;
  22.     NSString *comments;
  23. }
  24.  
  25. - (id)init;
  26. - (void)dealloc;
  27. - (void)encodeWithCoder:(NSCoder *)coder;
  28. - (id)initWithCoder:(NSCoder *)coder;
  29.  
  30. /* accessor methods */
  31. - (NSString *)name;
  32. - (void)setName:(NSString *)str;
  33. - (NSString *)airports;
  34. - (void)setAirports:(NSString *)str;
  35. - (NSString *)airlines;
  36. - (void)setAirlines:(NSString *)str;
  37. - (NSString *)transportation;
  38. - (void)setTransportation:(NSString *)str;
  39. - (NSString *)hotels;
  40. - (void)setHotels:(NSString *)str;
  41. - (NSString *)languages;
  42. - (void)setLanguages:(NSString *)str;
  43. - (BOOL)englishSpoken;
  44. - (void)setEnglishSpoken:(BOOL)flag;
  45. - (NSString *)currencyName;
  46. - (void)setCurrencyName:(NSString *)str;
  47. - (float)currencyRate;
  48. - (void)setCurrencyRate:(float)val;
  49. - (NSString *)comments;
  50. - (void)setComments:(NSString *)str;
  51.  
  52. @end
  53.