4 Copyright (C) 1999 MDlink online service center GmbH and Helge Hess
6 Author: Helge Hess (helge.hess@mdlink.de)
8 This file is part of the FrontBase Adaptor Library
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.
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.
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.
25 // $Id: FBValues.h 1 2004-08-20 10:38:46Z znek $
27 #ifndef ___FB_Values_H___
28 #define ___FB_Values_H___
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"
40 @class FrontBaseChannel;
44 + (id)valueFromBytes:(const char *)_bytes
45 length:(unsigned)_length
46 frontBaseType:(int)_type
47 attribute:(EOAttribute *)_attribute
48 adaptorChannel:(FrontBaseChannel *)_channel;
50 - (NSData *)dataValueForFrontBaseType:(int)_type
51 attribute:(EOAttribute *)_attribute;
53 - (NSString *)stringValueForFrontBaseType:(int)_type
54 attribute:(EOAttribute *)_attribute;
58 @interface NSString(FBValues) < FBValues >
61 @interface NSNumber(FBValues) < FBValues >
64 @interface NSData(FBValues) < FBValues >
67 @interface NSCalendarDate(FBValues) < FBValues >
70 @interface EONull(FBValues)
72 - (NSData *)dataValueForFrontBaseType:(int)_type
73 attribute:(EOAttribute *)_attribute;
75 - (NSString *)stringValueForFrontBaseType:(int)_type
76 attribute:(EOAttribute *)_attribute;