MediaStorerHook

class MediaStorerHook(storage: MutableMediaStorage, workingDirectory: File?) : AstIteratorHook

Hook that, when a node containing information about media is found, registers it in the media storage. A media storage is a temporary lookup table that maps media to their paths, so that they can be resolved later.

Parameters

storage

media storage

workingDirectory

directory from which media are resolved, in case they use relative paths

Constructors

Link copied to clipboard
constructor(context: MutableContext)
constructor(storage: MutableMediaStorage, workingDirectory: File?)

Functions

Link copied to clipboard
open override fun attach(iterator: ObservableAstIterator)

Attaches this hook to the given iterator.