-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKMLElement.h
More file actions
30 lines (22 loc) · 748 Bytes
/
KMLElement.h
File metadata and controls
30 lines (22 loc) · 748 Bytes
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
//
// KMLElement.h
// KMLViewer
//
// Created by Mojtaba Cazi on 2/27/18.
//
#import <MapKit/MapKit.h>
@interface KMLElement : NSObject {
NSString *identifier;
NSMutableString *accum;
}
- (instancetype)initWithIdentifier:(NSString *)ident;
@property (nonatomic, readonly) NSString *identifier;
// Returns YES if we're currently parsing an element that has character
// data contents that we are interested in saving.
@property (NS_NONATOMIC_IOSONLY, readonly) BOOL canAddString;
// Add character data parsed from the xml
- (void)addString:(NSString *)str;
// Once the character data for an element has been parsed, use clearString to
// reset the character buffer to get ready to parse another element.
- (void)clearString;
@end