forked from SVGKit/SVGKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSVGKSource.h
More file actions
34 lines (23 loc) · 1.28 KB
/
Copy pathSVGKSource.h
File metadata and controls
34 lines (23 loc) · 1.28 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
/**
SVGKSource.h
SVGKSource represents the info about where an SVG image's data came from ... from disk, from URL, from raw string - or anywhere
----
NOTE: you should avoid instantiating SVGKSource directly; it is better to instantiate one of the subclasses, both because this
allows faster / more direct reading of raw data, and because it preserves the information about "where" the SVG was loaded from.
----
Once it has been parsed / loaded, that info is NOT PART OF the in-memory SVG any more - if you were to save the file, you could
save it in a different location, with a different SVG Spec, etc.
However, it's useful for debugging (and for optional "save this document in same place it was loaded from / same format"
to store this info at runtime just in case it's needed later.
Also, it helps during parsing to keep track of some document-level information
*/
#import <Foundation/Foundation.h>
@interface SVGKSource : NSObject
@property (nonatomic, retain) NSString* svgLanguageVersion; /*< <svg version=""> */
@property (nonatomic, retain) NSInputStream* stream;
/**
Subclasses convert their proprietary data into something that implements NSInputStream, which allows the
base class to handle everything else
*/
- (id)initWithInputSteam:(NSInputStream*)stream;
@end