]> err.no Git - sope/blob - sope-appserver/NGObjWeb/SoObjects/SoClass.h
fixed various warnings
[sope] / sope-appserver / NGObjWeb / SoObjects / SoClass.h
1 /*
2   Copyright (C) 2002-2004 SKYRIX Software AG
3
4   This file is part of OpenGroupware.org.
5
6   OGo is free software; you can redistribute it and/or modify it under
7   the terms of the GNU Lesser General Public License as published by the
8   Free Software Foundation; either version 2, or (at your option) any
9   later version.
10
11   OGo is distributed in the hope that it will be useful, but WITHOUT ANY
12   WARRANTY; without even the implied warranty of MERCHANTABILITY or
13   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
14   License for more details.
15
16   You should have received a copy of the GNU Lesser General Public
17   License along with OGo; see the file COPYING.  If not, write to the
18   Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
19   02111-1307, USA.
20 */
21 // $Id$
22
23 #ifndef __SoObjects_SoClass_H__
24 #define __SoObjects_SoClass_H__
25
26 #import <Foundation/NSObject.h>
27
28 /*
29   SoClass
30   
31   Abstract baseclass for SoObject classes. SoClasses collect common keys
32   and security info for sets of objects.
33   
34   See SoObjCClass and SoExtClass for examples of concrete SoClasses.
35 */
36
37 @class NSString, NSMutableDictionary, NSArray, NSClassDescription;
38 @class SoClassSecurityInfo;
39
40 @interface SoClass : NSObject
41 {
42   SoClass             *soSuperClass;
43   NSMutableDictionary *slots;
44   SoClassSecurityInfo *security;
45 }
46
47 - (id)initWithSoSuperClass:(SoClass *)_soClass;
48
49 /* hierachy */
50
51 - (SoClass *)soSuperClass;
52
53 /* keys (traverse hierarchy) */
54
55 - (BOOL)hasKey:(NSString *)_key  inContext:(id)_ctx;
56 - (id)lookupKey:(NSString *)_key inContext:(id)_ctx;
57 - (NSArray *)allKeys;
58
59 /* slots (only works on the exact class) */
60
61 - (void)setValue:(id)_value forSlot:(NSString *)_key;
62 - (id)valueForSlot:(NSString *)_key;
63 - (NSArray *)slotNames;
64
65 /* security */
66
67 - (SoClassSecurityInfo *)soClassSecurityInfo;
68
69 /* factory */
70
71 - (id)instantiateObject;
72 - (NSClassDescription *)soClassDescription;
73 - (NSString *)className;
74
75 @end
76
77 #endif /* __SoObjects_SoClass_H__ */