| IFileTypeManagerBuildNativeGenerator Method (IPersistentFileConversionProperties) |
Helper function used by the file type manager implementation and other components that need to
create a file generator component from a specific file type definition.
Creates and initializes a file generator that can be used to write native output files.
Namespace: Sdl.FileTypeSupport.Framework.IntegrationApiAssembly: Sdl.FileTypeSupport.Framework.Core (in Sdl.FileTypeSupport.Framework.Core.dll) Version: 1.0.0.0 (1.0.2551.0)
SyntaxIFileGenerator BuildNativeGenerator(
IPersistentFileConversionProperties fileConversionProperties
)
Function BuildNativeGenerator (
fileConversionProperties As IPersistentFileConversionProperties
) As IFileGenerator
IFileGenerator^ BuildNativeGenerator(
IPersistentFileConversionProperties^ fileConversionProperties
)
abstract BuildNativeGenerator :
fileConversionProperties : IPersistentFileConversionProperties -> IFileGenerator
Parameters
- fileConversionProperties
- Type: Sdl.FileTypeSupport.Framework.NativeApiIPersistentFileConversionProperties
Properties with information on the file being generated,
including the id of the file type definition used to convert the original native file.
This can either be the persistent file properties that were created when reading
the original native file, or they can be retrieved from the bilingual parser.
Return Value
Type:
IFileGenerator
A file generator object that can be used to create a single native file.
Exceptions
Remarks
This method may be used as a
NativeGeneratorProvider delegate in the
IMultiFileConverter.
Examples
The following example shows how to use this method with a multi file converter:
void SetNativeGeneratorProvider(IFileTypeManager manager, IMultiFileConverter converter)
{
converter.NativeGeneratorProvider = new NativeGeneratorProvider(manager.BuildFileGenerator);
}
See Also
Comments