home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / DEV.Z / Department.h < prev    next >
Text File  |  1995-11-03  |  991b  |  43 lines

  1. #import <eoaccess/eoaccess.h>
  2.  
  3. @protocol DepartmentEOProtocol
  4. - (oneway void)printDepartmentReport: sender;
  5. @end
  6.  
  7. @interface Department:NSObject  <DepartmentEOProtocol>
  8. {
  9.     NSString * DepartmentName;
  10.     int DeptId;
  11.     int LocationId;
  12.     id toFacility;
  13.     NSString * FacilityLocation;
  14.     NSArray * toEmployee;
  15.     
  16.     int  averageSalary;   
  17.                  /* Average salary earned by employees in the department.  
  18.                    * This attribute is not defined in the Department         
  19.                   * table.
  20.                   */
  21.     
  22. }
  23.   
  24.  
  25. /* ACCESSOR METHODS */
  26.  
  27. - (void)setDepartmentName:(NSString *)newName;
  28. - (NSString *)DepartmentName;
  29. - (void)setDeptId:(int)newId;
  30. - (int)DeptId;
  31. - (void)setLocationId:(int)value;
  32. - (int)LocationId;
  33. - (void)setToFacility:value;
  34. - toFacility;
  35. - (void)setFacilityLocation:(NSString *)value;
  36. - (NSString *)FacilityLocation;
  37. - (void)setToEmployee:(NSArray *)value;
  38. - (NSArray *)toEmployee;
  39. - (void) setAverageSalary:(int)aSalary;
  40. - (int)averageSalary;
  41.  
  42. @end
  43.