-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_Stop.m
More file actions
168 lines (91 loc) · 2.67 KB
/
_Stop.m
File metadata and controls
168 lines (91 loc) · 2.67 KB
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
// DO NOT EDIT. This file is machine-generated and constantly overwritten.
// Make changes to Stop.m instead.
#import "_Stop.h"
const struct StopAttributes StopAttributes = {
.code = @"code",
.direction = @"direction",
.id = @"id",
.lat = @"lat",
.lon = @"lon",
.name = @"name",
};
const struct StopRelationships StopRelationships = {
.relationship = @"relationship",
.routeIds = @"routeIds",
};
const struct StopFetchedProperties StopFetchedProperties = {
};
@implementation StopID
@end
@implementation _Stop
+ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_ {
NSParameterAssert(moc_);
return [NSEntityDescription insertNewObjectForEntityForName:@"Stop" inManagedObjectContext:moc_];
}
+ (NSString*)entityName {
return @"Stop";
}
+ (NSEntityDescription*)entityInManagedObjectContext:(NSManagedObjectContext*)moc_ {
NSParameterAssert(moc_);
return [NSEntityDescription entityForName:@"Stop" inManagedObjectContext:moc_];
}
- (StopID*)objectID {
return (StopID*)[super objectID];
}
+ (NSSet*)keyPathsForValuesAffectingValueForKey:(NSString*)key {
NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];
if ([key isEqualToString:@"latValue"]) {
NSSet *affectingKey = [NSSet setWithObject:@"lat"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
return keyPaths;
}
if ([key isEqualToString:@"lonValue"]) {
NSSet *affectingKey = [NSSet setWithObject:@"lon"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
return keyPaths;
}
return keyPaths;
}
@dynamic code;
@dynamic direction;
@dynamic id;
@dynamic lat;
- (double)latValue {
NSNumber *result = [self lat];
return [result doubleValue];
}
- (void)setLatValue:(double)value_ {
[self setLat:[NSNumber numberWithDouble:value_]];
}
- (double)primitiveLatValue {
NSNumber *result = [self primitiveLat];
return [result doubleValue];
}
- (void)setPrimitiveLatValue:(double)value_ {
[self setPrimitiveLat:[NSNumber numberWithDouble:value_]];
}
@dynamic lon;
- (double)lonValue {
NSNumber *result = [self lon];
return [result doubleValue];
}
- (void)setLonValue:(double)value_ {
[self setLon:[NSNumber numberWithDouble:value_]];
}
- (double)primitiveLonValue {
NSNumber *result = [self primitiveLon];
return [result doubleValue];
}
- (void)setPrimitiveLonValue:(double)value_ {
[self setPrimitiveLon:[NSNumber numberWithDouble:value_]];
}
@dynamic name;
@dynamic relationship;
@dynamic routeIds;
- (NSMutableSet*)routeIdsSet {
[self willAccessValueForKey:@"routeIds"];
NSMutableSet *result = (NSMutableSet*)[self mutableSetValueForKey:@"routeIds"];
[self didAccessValueForKey:@"routeIds"];
return result;
}
@end