-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_Route.m
More file actions
163 lines (89 loc) · 2.74 KB
/
_Route.m
File metadata and controls
163 lines (89 loc) · 2.74 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
// DO NOT EDIT. This file is machine-generated and constantly overwritten.
// Make changes to Route.m instead.
#import "_Route.h"
const struct RouteAttributes RouteAttributes = {
.distance = @"distance",
.name = @"name",
.numStops = @"numStops",
.routeid = @"routeid",
.shortName = @"shortName",
.url = @"url",
};
const struct RouteRelationships RouteRelationships = {
.stops = @"stops",
};
const struct RouteFetchedProperties RouteFetchedProperties = {
};
@implementation RouteID
@end
@implementation _Route
+ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_ {
NSParameterAssert(moc_);
return [NSEntityDescription insertNewObjectForEntityForName:@"Route" inManagedObjectContext:moc_];
}
+ (NSString*)entityName {
return @"Route";
}
+ (NSEntityDescription*)entityInManagedObjectContext:(NSManagedObjectContext*)moc_ {
NSParameterAssert(moc_);
return [NSEntityDescription entityForName:@"Route" inManagedObjectContext:moc_];
}
- (RouteID*)objectID {
return (RouteID*)[super objectID];
}
+ (NSSet*)keyPathsForValuesAffectingValueForKey:(NSString*)key {
NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];
if ([key isEqualToString:@"distanceValue"]) {
NSSet *affectingKey = [NSSet setWithObject:@"distance"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
return keyPaths;
}
if ([key isEqualToString:@"numStopsValue"]) {
NSSet *affectingKey = [NSSet setWithObject:@"numStops"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
return keyPaths;
}
return keyPaths;
}
@dynamic distance;
- (double)distanceValue {
NSNumber *result = [self distance];
return [result doubleValue];
}
- (void)setDistanceValue:(double)value_ {
[self setDistance:[NSNumber numberWithDouble:value_]];
}
- (double)primitiveDistanceValue {
NSNumber *result = [self primitiveDistance];
return [result doubleValue];
}
- (void)setPrimitiveDistanceValue:(double)value_ {
[self setPrimitiveDistance:[NSNumber numberWithDouble:value_]];
}
@dynamic name;
@dynamic numStops;
- (int32_t)numStopsValue {
NSNumber *result = [self numStops];
return [result intValue];
}
- (void)setNumStopsValue:(int32_t)value_ {
[self setNumStops:[NSNumber numberWithInt:value_]];
}
- (int32_t)primitiveNumStopsValue {
NSNumber *result = [self primitiveNumStops];
return [result intValue];
}
- (void)setPrimitiveNumStopsValue:(int32_t)value_ {
[self setPrimitiveNumStops:[NSNumber numberWithInt:value_]];
}
@dynamic routeid;
@dynamic shortName;
@dynamic url;
@dynamic stops;
- (NSMutableSet*)stopsSet {
[self willAccessValueForKey:@"stops"];
NSMutableSet *result = (NSMutableSet*)[self mutableSetValueForKey:@"stops"];
[self didAccessValueForKey:@"stops"];
return result;
}
@end