Interface ITagProcessorManager
- Namespace
- TMPEffects.TextProcessing
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
Methods
AddProcessor(char, TagProcessor, int)
Add a processor.
void AddProcessor(char prefix, TagProcessor processor, int priority = 0)Parameters
- prefixchar
- Prefix of tags processed by - processor.
- processorTagProcessor
- The processor. 
- priorityint
- 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
- prefixchar
- Prefix of tags processed by - processor.
- processorTagProcessor
- The processor. 
Returns
- bool
- true if the processors was removed; otherwise false.