forked from powerli/InstrumentsParser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathXRRun.m
More file actions
executable file
·46 lines (37 loc) · 1.18 KB
/
XRRun.m
File metadata and controls
executable file
·46 lines (37 loc) · 1.18 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
//
// main.m
// InstrumentsParser
//
// Created by pantengfei on 14-7-29.
// Copyright (c) 2014年 ___bidu___. All rights reserved.
//
#import "XRRun.h"
#define targetProcess @"Recipes"
@implementation XRRun
- (id)initWithCoder:(NSCoder *)decoder
{
if((self = [super init]))
{
dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss:SSS"];
startTime = [[decoder decodeObject] doubleValue];
endTime = [[decoder decodeObject] doubleValue];
runNumber = [[decoder decodeObject] unsignedIntegerValue];
trackSegments = [decoder decodeObject];
// Totally not sure about these
envVals = [[decoder decodeObject] boolValue];
execname = [[decoder decodeObject] boolValue];
terminateTaskAtStop = [[decoder decodeObject] boolValue];
pid = [decoder decodeObject][@"_pid"];
launchControlProperties = [[decoder decodeObject] boolValue];
args = [[decoder decodeObject] boolValue];
[decoder decodeObject];
[decoder decodeObject];
[decoder decodeObject]; //patch for XCode 7
}
return self;
}
- (void)dealloc
{
}
@end