/usr/include/GNUstep/GDLAccess/EOModel.h is in libsope-dev 3.2.10-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | /*
EOModel.h
Copyright (C) 1996 Free Software Foundation, Inc.
Author: Ovidiu Predescu <ovidiu@bx.logicnet.ro>
Date: August 1996
This file is part of the GNUstep Database Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; see the file COPYING.LIB.
If not, write to the Free Software Foundation,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __EOModel_h__
#define __EOModel_h__
#import <Foundation/NSString.h>
@class EOEntity;
@interface EOModel : NSObject
{
NSString *name;
NSString *path;
NSString *adaptorName;
NSString *adaptorClassName;
NSDictionary *connectionDictionary;
NSDictionary *pkeyGeneratorDictionary;
NSDictionary *userDictionary;
NSArray *entities; // values with EOEntities
NSMutableDictionary *entitiesByName; // name/value with EOEntity
NSMutableDictionary *entitiesByClassName; // class name/value with EOEntity
struct {
BOOL createsMutableObjects:1;
BOOL errors:1;
} flags;
}
/* Searching for a model file */
+ (NSString*)findPathForModelNamed:(NSString*)name;
/* Initializing instances */
- (id)initWithContentsOfFile:(NSString*)filename;
- (id)initWithPropertyList:propertyList;
- (id)initWithName:(NSString*)name;
/* Getting the filename */
- (NSString*)path;
/* Getting a property list representation */
- (id)modelAsPropertyList;
/* Getting the name */
- (NSString*)name;
/* Using entities */
- (BOOL)addEntity:(EOEntity *)entity;
- (void)removeEntityNamed:(NSString *)name;
- (EOEntity *)entityNamed:(NSString *)name;
- (NSArray *)entities;
/* Checking references */
- (NSArray *)referencesToProperty:(id)property;
/* Getting an object's entity */
- (EOEntity *)entityForObject:(id)object;
/* Adding model information */
- (BOOL)incorporateModel:(EOModel *)model;
/* Accessing the adaptor bundle */
- (void)setAdaptorName:(NSString *)adaptorName;
- (NSString *)adaptorName;
/* Setting and getting the adaptor class name. */
- (void)setAdaptorClassName:(NSString *)adaptorClassName;
- (NSString *)adaptorClassName;
/* Accessing the connection dictionary */
- (void)setConnectionDictionary:(NSDictionary *)connectionDictionary;
- (NSDictionary *)connectionDictionary;
/* Accessing the pkey generator dictionary */
- (void)setPkeyGeneratorDictionary:(NSDictionary *)connectionDictionary;
- (NSDictionary *)pkeyGeneratorDictionary;
/* Accessing the user dictionary */
- (void)setUserDictionary:(NSDictionary *)dictionary;
- (NSDictionary *)userDictionary;
@end
@interface EOModel (EOModelPrivate)
- (void)setCreateMutableObjects:(BOOL)flag;
- (BOOL)createsMutableObjects;
- (void)errorInReading;
@end /* EOModel (EOModelPrivate) */
@interface EOModel(NewInEOF2)
- (void)loadAllModelObjects;
@end
#endif /* __EOModel_h__ */
|