ExporterRegistry

ExporterRegistry

Overview

ExporterRegistry 是 C++ 的 FOSS 中的 Aspose.Slides 类.

格式出口商的中央注册表.从 SaveFormat 的值字符串到相应的出货厂进行映射. 新出售商可以动态登记,从而轻松添加新的出产格局. @code // 注册出卖者 ExporterRegistry::register_exporter (); // 为一个格子自动导出器获取出销量 = ExporterRegistry get_exportor ((“Pptx “); if (exporteur) { exporter->export_presentation ((package”,output.pptx”); } @endcode

本类提供了7种方法,用于在C++程序中使用ExporterRegistry对象. 有的方法包括: ExporterRegistry, clear, get_exporter, get_exporter_class, get_supported_formats, is_format_supported, unregister_exporter. 在安装了Aspose.Slides FOSS for C++ 包后,所有公众成员都可以访问任何C ++应用程序.

Methods

SignatureDescription
ExporterRegistry()
unregister_exporter(format_value: std::string_view)bool取消出口商对特定格式的注册.
get_exporter(format_value: std::string_view)std::unique_ptr<ExporterBase>返回一个 unique_ptr 的输出器处理指定格式
get_exporter_class(format_value: std::string_view)std::optional<ExporterFactory>返回一个包含工厂的选项,为给定格式.
is_format_supported(format_value: std::string_view)bool检查一个格式是否有注册的导出者.
get_supported_formats()std::vector<std::string>记录一个输出器类的支持格式.调用T::get_supported_formats (()) 来发现哪个格局字符串输出的处理,然后映射每个到创建T 的工厂.
clear()清除所有注册出口商,主要是为了测试.

See Also

 中文