home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / UNIX / Programming / class-dump-2.1.1-MIS / src / ObjcProtocol.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-12-07  |  1.6 KB  |  57 lines

  1. //
  2. // $Id: ObjcProtocol.h,v 1.2 1997/12/07 22:25:40 nygard Exp $
  3. //
  4.  
  5. //
  6. //  This file is a part of class-dump v2, a utility for examining the
  7. //  Objective-C segment of Mach-O files.
  8. //  Copyright (C) 1997  Steve Nygard
  9. //
  10. //  This program is free software; you can redistribute it and/or modify
  11. //  it under the terms of the GNU General Public License as published by
  12. //  the Free Software Foundation; either version 2 of the License, or
  13. //  (at your option) any later version.
  14. //
  15. //  This program is distributed in the hope that it will be useful,
  16. //  but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18. //  GNU General Public License for more details.
  19. //
  20. //  You should have received a copy of the GNU General Public License
  21. //  along with this program; if not, write to the Free Software
  22. //  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  23. //
  24. //  You may contact the author by:
  25. //     e-mail:  nygard@telusplanet.net
  26. //
  27.  
  28. #if NS_TARGET_MAJOR >= 4
  29. #import <Foundation/Foundation.h>
  30. #else
  31. #import <foundation/NSString.h>
  32. #import <foundation/NSArray.h>
  33. #endif
  34. #import "ObjcThing.h"
  35. #import "ObjcMethod.h"
  36.  
  37. @interface ObjcProtocol : ObjcThing
  38. {
  39.     NSString *protocol_name;
  40.     NSMutableArray *protocol_names;
  41.     NSMutableArray *protocol_methods;
  42. }
  43.  
  44. - initWithProtocolName:(NSString *)protocolName;
  45. - (void) dealloc;
  46.  
  47. - (NSString *) protocolName;
  48. - (NSString *) sortableName;
  49.  
  50. - (void) addProtocolNames:(NSArray *)newProtocolNames;
  51. - (void) addProtocolMethod:(ObjcMethod *)newMethod;
  52. - (void) addProtocolMethods:(NSArray *)newProtocolMethods;
  53.  
  54. - (void) showDefinition:(int)flags;
  55.  
  56. @end
  57.