-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_Position.m
124 lines (94 loc) · 2.92 KB
/
_Position.m
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
// DO NOT EDIT. This file is machine-generated and constantly overwritten.
// Make changes to Position.m instead.
#import "_Position.h"
const struct PositionAttributes PositionAttributes = {
.comment = @"comment",
.id = @"id",
.lastNotificationSent = @"lastNotificationSent",
.latitude = @"latitude",
.longitude = @"longitude",
};
@implementation PositionID
@end
@implementation _Position
+ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_ {
NSParameterAssert(moc_);
return [NSEntityDescription insertNewObjectForEntityForName:@"Position" inManagedObjectContext:moc_];
}
+ (NSString*)entityName {
return @"Position";
}
+ (NSEntityDescription*)entityInManagedObjectContext:(NSManagedObjectContext*)moc_ {
NSParameterAssert(moc_);
return [NSEntityDescription entityForName:@"Position" inManagedObjectContext:moc_];
}
- (PositionID*)objectID {
return (PositionID*)[super objectID];
}
+ (NSSet*)keyPathsForValuesAffectingValueForKey:(NSString*)key {
NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];
if ([key isEqualToString:@"idValue"]) {
NSSet *affectingKey = [NSSet setWithObject:@"id"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
return keyPaths;
}
if ([key isEqualToString:@"latitudeValue"]) {
NSSet *affectingKey = [NSSet setWithObject:@"latitude"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
return keyPaths;
}
if ([key isEqualToString:@"longitudeValue"]) {
NSSet *affectingKey = [NSSet setWithObject:@"longitude"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
return keyPaths;
}
return keyPaths;
}
@dynamic comment;
@dynamic id;
- (int16_t)idValue {
NSNumber *result = [self id];
return [result shortValue];
}
- (void)setIdValue:(int16_t)value_ {
[self setId:[NSNumber numberWithShort:value_]];
}
- (int16_t)primitiveIdValue {
NSNumber *result = [self primitiveId];
return [result shortValue];
}
- (void)setPrimitiveIdValue:(int16_t)value_ {
[self setPrimitiveId:[NSNumber numberWithShort:value_]];
}
@dynamic lastNotificationSent;
@dynamic latitude;
- (float)latitudeValue {
NSNumber *result = [self latitude];
return [result floatValue];
}
- (void)setLatitudeValue:(float)value_ {
[self setLatitude:[NSNumber numberWithFloat:value_]];
}
- (float)primitiveLatitudeValue {
NSNumber *result = [self primitiveLatitude];
return [result floatValue];
}
- (void)setPrimitiveLatitudeValue:(float)value_ {
[self setPrimitiveLatitude:[NSNumber numberWithFloat:value_]];
}
@dynamic longitude;
- (float)longitudeValue {
NSNumber *result = [self longitude];
return [result floatValue];
}
- (void)setLongitudeValue:(float)value_ {
[self setLongitude:[NSNumber numberWithFloat:value_]];
}
- (float)primitiveLongitudeValue {
NSNumber *result = [self primitiveLongitude];
return [result floatValue];
}
- (void)setPrimitiveLongitudeValue:(float)value_ {
[self setPrimitiveLongitude:[NSNumber numberWithFloat:value_]];
}
@end