sources/ZODBData.h

00001 /* vi: set expandtab ts=4 syntax=objc:
00002 
00003   ZODBData.h
00004   ZODBData framework
00005 
00006   Copyright (c) 2007 Tobias Rodaebel.
00007   All Rights Reserved.
00008  
00009   This software is subject to the provisions of the Zope Public License,
00010   Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
00011   THIS SOFTWARE IS PROVIDED AS IS AND ANY AND ALL EXPRESS OR IMPLIED
00012   WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00013   WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
00014   FOR A PARTICULAR PURPOSE.
00015  
00016 */
00017 
00018 #import <Cocoa/Cocoa.h>
00019 #import "ZODBStorage.h"
00020 #import "ZProxy.h"
00021 
00022 #define ZODBDATA_ZEO_URL_SCHEMA @"zeo"
00023 #define ZODBDATA_FILE_URL_SCHEMA @"zodb"
00024 
00026 @protocol ZODBData
00027 
00029 - (id) object;
00030 
00032 - (NSString*) objectPath;
00033 
00034 @end
00035 
00036 
00040 @interface ZODBData : NSObject <ZODBData>
00041 {
00043     id zodb;
00045     NSString *objectPath;
00046 }
00047 
00049 + (ZODBData*) data;
00050 
00056 + (id) dataWithContentsOfURL:(NSURL *)url;
00057 
00063 - (id) initWithContentsOfURL:(NSURL *)url;
00064 
00065 @end
00066 
00072 @interface ZODBMutableData : ZODBData
00073 
00074 @end

Generated on Mon Feb 4 23:26:16 2008 for ZODBData Framework by  doxygen 1.5.4