1 /*
2   @header BDBSerializer
3   @availability OS X, GNUstep
4   @copyright (C) 2004, 2005, 2006 Oliver Langer
5 
6   Author: Oliver Langer
7 
8   This library is free software; you can redistribute it and/or
9   modify it under the terms of the GNU Lesser General Public
10   License as published by the Free Software Foundation; either
11   version 2.1 of the License, or (at your option) any later version.
12 
13   This library is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16   Lesser General Public License for more details.
17 
18   You should have received a copy of the GNU Lesser General Public
19   License along with this library; if not, write to the Free Software
20   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21 
22   <pre>
23   -------------------------------------------------------------------------
24   Modification history
25   19.12.2004 ola    initial version
26   22.08.2006 ola    license changed
27   -------------------------------------------------------------------------
28   </pre>
29  */
30 
31 #if !defined(__BDBSERIALIZER_H)
32 #define __BDBSERIALIZER_H
33 
34 #include <Foundation/Foundation.h>
35 
36 
37 /**
38  * @class BDBSerializer
39  * @abstract Classes implementing this protocol are capable of
40  * serializing objects and returning the corresponding buffer. These classes
41  * must implement the interface of NSCoder.
42  */
43 @protocol BDBSerializer
44 
45 /**
46  * @return the data where the serialized object(s) rel(ies)y in.
47  */
48 - (NSData *) data;
49 @end
50 #endif
51