Wahoo Fitness API  3.6.1
Documentation for the iPhone version of the Wahoo Fitness API.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
WFFitParser.h
Go to the documentation of this file.
1 //
2 // WFFitParser.h
3 // WFConnector
4 //
5 // Created by Michael Moore on 5/6/11.
6 // Copyright 2011 Wahoo Fitness. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import <WFConnector/hardware_connector_types.h>
11 
12 
14 #define FIT_TIME_FORMAT_REALTIME_MASK 0xF0000000
15 
16 #define FIT_TIME_FORMAT_SYSTEM_OR_REALTIME ((UCHAR) 0)
17 
18 #define FIT_TIME_FORMAT_SYSTEM_ONLY ((UCHAR) 1)
19 
20 #define FIT_TIME_FORMAT_COUNTER ((UCHAR) 2)
21 
22 
23 
26 @class WFFitParser;
27 
28 
33 
39 - (void)fitParserProgress:(float)progress;
40 
41 @end
42 
43 
47 @interface WFFitParser : NSObject
48 {
49 
50 }
51 
53 //
54 // WFFitParser - Class Method Declarations.
55 //
56 
65 + (NSDate*)getDateFromTimestamp:(ULONG)ulTime;
66 
75 + (ULONG)getTimestampFromDate:(NSDate*)date;
76 
98 + (NSArray*) parseFit:(NSString*)filePath cancelPointer:(volatile BOOL*)pbCancel sendProgressToDelegate:(id<WFFitParserDelegate>)progressDelegate;
99 
122 + (WFFitActivityFileData*)parseActivityFit:(NSString*)filePath cancelPointer:(volatile BOOL*)pbCancel sendProgressToDelegate:(id<WFFitParserDelegate>)progressDelegate;
123 
131 + (WFFitSettingsFileData*)parseSettingsFit:(NSString*)filePath;
132 
133 @end
Declares the callback interface for the WFFitParser.
Definition: WFFitParser.h:32
Represents the data contents of a fitness device FIT file.
Definition: WFFitActivityFileData.h:24
signed char BOOL
Definition: types.h:110
Represents the data from a FIT settings file.
Definition: WFFitSettingsFileData.h:19
unsigned long ULONG
Definition: types.h:133
Provides methods for parsing a FIT file.
Definition: WFFitParser.h:47