VMDParser
@objc
open class VMDParser : NSObject
Parser for processing VMD files
Since
1.4-
Declaration
Swift
public var vmdFileCollection: VMDFileCollection
-
Declaration
Swift
public var delegate: VMDParserDelegate
-
Declaration
Swift
public var vmd: VMMSMap?
-
Declaration
Swift
public var factory: VMBaseVMDFactory
-
Create new parser
Declaration
Swift
@objc public init(withFileCollection vmdFileCollection: VMDFileCollection, delegate: VMDParserDelegate)
Parameters
vmdFileCollection
The collection of vmd files
delegate
The delegate
-
Asyncronously start parsing the VMD file with the current configuration
Declaration
Swift
@objc open func parse()
-
Asyncronously start parsing the VMD file with the current configuration and map provider
Since
2.0Declaration
Swift
@objc open func parse(withMapProvider mapProvider: VMMapProviderType = VMMapProviderType.google)
-
:nodoc Called when parsing has compled
Declaration
Swift
open func onParserDidSucceed(_ vmd: VMMSMap)
Parameters
vmd
The vmd instance
-
:nodoc Called when parsing failes
Declaration
Swift
open func onParserDidFail(_ error: Error)
Parameters
error
The error