Table of Contents

Interface ITagProcessorManager

Namespace
TMPEffects.TextProcessing
Assembly
TMPEffects.dll

Interface for manager of TagProcessor.

public interface ITagProcessorManager : IEnumerable<TagProcessor>, IEnumerable
Inherited Members

Properties

TagProcessors

Mapping of prefix to list of TagProcessor.

ReadOnlyDictionary<char, ReadOnlyCollection<TagProcessor>> TagProcessors { get; }

Property Value

ReadOnlyDictionary<char, ReadOnlyCollection<TagProcessor>>

Methods

AddProcessor(char, TagProcessor, int)

Add a processor.

void AddProcessor(char prefix, TagProcessor processor, int priority = 0)

Parameters

prefix char

Prefix of tags processed by processor.

processor TagProcessor

The processor.

priority int

Priority of this processor. Only one processors can process any given tag, so the order that processors are invoked in matters.
Less than zero => last processed
zero => first processed (highest priority)
Greater than zero => priority-th processed
Greater than current amount of processors => last processed

RemoveProcessor(char, TagProcessor)

Remove a processor.

bool RemoveProcessor(char prefix, TagProcessor processor)

Parameters

prefix char

Prefix of tags processed by processor.

processor TagProcessor

The processor.

Returns

bool

true if the processors was removed; otherwise false.