source: trunk/third/gcc/objc/Protocol.h @ 8834

Revision 8834, 1.8 KB checked in by ghudson, 28 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r8833, which included commits to RCS files with non-trunk default branches.
Line 
1/* Declare the class Protocol for Objective C programs.
2   Copyright (C) 1993 Free Software Foundation, Inc.
3
4This file is part of GNU CC.
5
6GNU CC is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11GNU CC is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU CC; see the file COPYING.  If not, write to
18the Free Software Foundation, 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, USA.  */
20
21/* As a special exception, if you link this library with files
22   compiled with GCC to produce an executable, this does not cause
23   the resulting executable to be covered by the GNU General Public License.
24   This exception does not however invalidate any other reasons why
25   the executable file might be covered by the GNU General Public License.  */
26
27#ifndef __Protocol_INCLUDE_GNU
28#define __Protocol_INCLUDE_GNU
29
30#include "objc/Object.h"
31
32@interface Protocol : Object
33{
34@private
35        char *protocol_name;
36        struct objc_protocol_list *protocol_list;
37        struct objc_method_description_list *instance_methods, *class_methods;
38}
39
40/* Obtaining attributes intrinsic to the protocol */
41
42- (const char *)name;
43
44/* Testing protocol conformance */
45
46- (BOOL) conformsTo: (Protocol *)aProtocolObject;
47
48/* Looking up information specific to a protocol */
49
50- (struct objc_method_description *) descriptionForInstanceMethod:(SEL)aSel;
51- (struct objc_method_description *) descriptionForClassMethod:(SEL)aSel;
52
53@end
54
55
56
57
58#endif __Protocol_INCLUDE_GNU
Note: See TracBrowser for help on using the repository browser.