]> err.no Git - sope/blob - sope-gdl1/FrontBase2/FBValues.h
added missing inline pathes
[sope] / sope-gdl1 / FrontBase2 / FBValues.h
1 /* 
2    FBValues.h
3
4    Copyright (C) 1999 MDlink online service center GmbH and Helge Hess
5
6    Author: Helge Hess (helge.hess@mdlink.de)
7
8    This file is part of the FrontBase Adaptor Library
9
10    This library is free software; you can redistribute it and/or
11    modify it under the terms of the GNU Library General Public
12    License as published by the Free Software Foundation; either
13    version 2 of the License, or (at your option) any later version.
14
15    This library 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 GNU
18    Library General Public License for more details.
19
20    You should have received a copy of the GNU Library General Public
21    License along with this library; see the file COPYING.LIB.
22    If not, write to the Free Software Foundation,
23    59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 */
25 // $Id: FBValues.h 1 2004-08-20 10:38:46Z znek $
26
27 #ifndef ___FB_Values_H___
28 #define ___FB_Values_H___
29
30 #import <Foundation/NSObject.h>
31 #import <Foundation/NSString.h>
32 #import <Foundation/NSData.h>
33 #import <Foundation/NSDate.h>
34 #import <Foundation/NSValue.h>
35 #import <GDLAccess/EONull.h>
36 #import "FBException.h"
37 #import "FBHeaders.h"
38
39 @class EOAttribute;
40 @class FrontBaseChannel;
41
42 @protocol FBValues
43
44 + (id)valueFromBytes:(const char *)_bytes
45   length:(unsigned)_length
46   frontBaseType:(int)_type
47   attribute:(EOAttribute *)_attribute
48   adaptorChannel:(FrontBaseChannel *)_channel;
49
50 - (NSData *)dataValueForFrontBaseType:(int)_type
51   attribute:(EOAttribute *)_attribute;
52
53 - (NSString *)stringValueForFrontBaseType:(int)_type
54   attribute:(EOAttribute *)_attribute;
55
56 @end
57
58 @interface NSString(FBValues) < FBValues >
59 @end
60
61 @interface NSNumber(FBValues) < FBValues >
62 @end
63
64 @interface NSData(FBValues) < FBValues >
65 @end
66
67 @interface NSCalendarDate(FBValues) < FBValues >
68 @end
69
70 @interface EONull(FBValues)
71
72 - (NSData *)dataValueForFrontBaseType:(int)_type
73   attribute:(EOAttribute *)_attribute;
74
75 - (NSString *)stringValueForFrontBaseType:(int)_type
76   attribute:(EOAttribute *)_attribute;
77
78 @end
79
80 #endif