]> err.no Git - sope/blob - sope-gdl1/GDLAccess/EOAttributeOrdering.h
fixed bug in GDL adaptor lookup
[sope] / sope-gdl1 / GDLAccess / EOAttributeOrdering.h
1 /* 
2    EOAttributeOrdering.h
3
4    Copyright (C) 1996 Free Software Foundation, Inc.
5
6    Author: Ovidiu Predescu <ovidiu@bx.logicnet.ro>
7    Date: 1996
8
9    This file is part of the GNUstep Database Library.
10
11    This library is free software; you can redistribute it and/or
12    modify it under the terms of the GNU Library General Public
13    License as published by the Free Software Foundation; either
14    version 2 of the License, or (at your option) any later version.
15
16    This library is distributed in the hope that it will be useful,
17    but WITHOUT ANY WARRANTY; without even the implied warranty of
18    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19    Library General Public License for more details.
20
21    You should have received a copy of the GNU Library General Public
22    License along with this library; see the file COPYING.LIB.
23    If not, write to the Free Software Foundation,
24    59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 */
26
27 #ifndef __EOAttributeOrdering_h__
28 #define __EOAttributeOrdering_h__
29
30 #import <Foundation/NSObject.h>
31
32 @class EOAttribute;
33
34 typedef enum {
35     EOAnyOrder,
36     EOAscendingOrder,
37     EODescendingOrder
38 } EOOrdering;
39
40 @interface EOAttributeOrdering : NSObject
41 {
42     EOAttribute* attribute;
43     EOOrdering ordering;
44 }
45
46 /* Creating an attribute ordering */
47 + attributeOrderingWithAttribute:(EOAttribute*)attribute 
48   ordering:(EOOrdering)ordering;
49 - initWithAttribute:(EOAttribute*)attribute
50   ordering:(EOOrdering)ordering;
51
52 /* Getting values */
53 - (EOAttribute*)attribute;
54 - (EOOrdering)ordering;
55
56 @end
57
58 #endif /* __EOAttributeOrdering_h__ */
59
60 /*
61   Local Variables:
62   c-basic-offset: 4
63   tab-width: 8
64   End:
65 */