/** Reports detailed information from an attempted run of the SVG Parser */ #import @class SVGSVGElement, SVGDocument; #import "SVGSVGElement.h" #import "SVGDocument.h" @protocol SVGKParserExtension; #import "SVGKParserExtension.h" @interface SVGKParseResult : NSObject @property(nonatomic, strong) NSMutableArray* warnings, * errorsRecoverable, * errorsFatal; @property(nonatomic) BOOL libXMLFailed; /** 0.0 = no parsing done yet, 0.x = partially parsed, 1.0 = parse complete (no fatal errors) */ @property(nonatomic) double parseProgressFractionApproximate; @property(nonatomic,strong) SVGSVGElement* rootOfSVGTree; /**< both are needed, see spec */ @property(nonatomic,strong) SVGDocument* parsedDocument; /**< both are needed, see spec */ @property(nonatomic,strong) NSMutableDictionary* namespacesEncountered; /**< maps "prefix" to "uri" */ -(void) addSourceError:(NSError*) fatalError; -(void) addParseWarning:(NSError*) warning; -(void) addParseErrorRecoverable:(NSError*) recoverableError; -(void) addParseErrorFatal:(NSError*) fatalError; -(void) addSAXError:(NSError*) saxError; #if ENABLE_PARSER_EXTENSIONS_CUSTOM_DATA /*! Each SVGKParserExtension can optionally save extra data here */ @property(nonatomic,retain) NSMutableDictionary* extensionsData; -(NSMutableDictionary*) dictionaryForParserExtension:(NSObject*) extension; #endif @end