2 Copyright (C) 2002-2004 SKYRIX Software AG
4 This file is part of OpenGroupware.org.
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
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.
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
23 #ifndef __SoObjects_SoClass_H__
24 #define __SoObjects_SoClass_H__
26 #import <Foundation/NSObject.h>
31 Abstract baseclass for SoObject classes. SoClasses collect common keys
32 and security info for sets of objects.
34 See SoObjCClass and SoExtClass for examples of concrete SoClasses.
37 @class NSString, NSMutableDictionary, NSArray, NSClassDescription;
38 @class SoClassSecurityInfo;
40 @interface SoClass : NSObject
42 SoClass *soSuperClass;
43 NSMutableDictionary *slots;
44 SoClassSecurityInfo *security;
47 - (id)initWithSoSuperClass:(SoClass *)_soClass;
51 - (SoClass *)soSuperClass;
53 /* keys (traverse hierarchy) */
55 - (BOOL)hasKey:(NSString *)_key inContext:(id)_ctx;
56 - (id)lookupKey:(NSString *)_key inContext:(id)_ctx;
59 /* slots (only works on the exact class) */
61 - (void)setValue:(id)_value forSlot:(NSString *)_key;
62 - (id)valueForSlot:(NSString *)_key;
63 - (NSArray *)slotNames;
67 - (SoClassSecurityInfo *)soClassSecurityInfo;
71 - (id)instantiateObject;
72 - (NSClassDescription *)soClassDescription;
73 - (NSString *)className;
77 #endif /* __SoObjects_SoClass_H__ */