Interface INCFileOwner
This is an interface that allows us to abstract, weaken the connection with the object that is the owner of an output file formed by the postprocessor. Usually the owner is a postprocessor itself. Using this interface the output NCFile can notify the postprocessor about the actions of this file. For example, if you try to add a new string to the file, then you must notify the postprocessor so that it should call an OnFilterString handler, which can produce some additional conversion over the string before it will be written to the file.
It is used internally by the inheritors of TNCFile so usually you don't need to call it directly.
Namespace: DotnetPostprocessing.SDK
Assembly: DotnetPostprocessing.SDK.dll
Syntax
public interface INCFileOwner
Methods
FilterString(ref string, TNCFile, INCLabel)
This method calls the OnFilterString(ref string, TNCFile, INCLabel) handler if it is not empty. Usually this method is called automatically from TTextNCFile whether is trying to add a new string to the file. A postprocessor can produce some additional conversion over the string before it will be written to the file.
Declaration
void FilterString(ref string s, TNCFile ncFile, INCLabel label)
Parameters
Type | Name | Description |
---|---|---|
string | s | The string we want to write to the file. |
TNCFile | ncFile | The output file in which we write the string. |
INCLabel | label | A label indicating the position in the file in which we write this string. |