ExporterRegistry
概要
ExporterRegistry は Aspose.Slides の C++ 用 FOSS におけるクラスです。
フォーマットエクスポーターのセントラルレジストリです。SaveFormat の値文字列と対応するエクスポーターファクトリのマッピングを保持します。新しいエクスポーターは動的に登録でき、 新しいエクスポート形式を簡単に追加できます。
このクラスは C++ プログラムで ExporterRegistry オブジェクトを操作するための 7 つのメソッドを提供します。利用可能なメソッドは: ExporterRegistry, clear, get_exporter, get_exporter_class, get_supported_formats, is_format_supported, unregister_exporter。Aspose.Slides の C++ 用 FOSS パッケージをインストールすれば、すべての public メンバーは任意の C++ アプリケーションからアクセス可能です。
メソッド
| シグネチャ | 説明 |
|---|---|
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> | 指定されたフォーマットのファクトリを含む optional を返します |
is_format_supported(format_value: std::string_view) → bool | フォーマットに登録されたエクスポーターがあるかチェックします。 |
get_supported_formats() → std::vector<std::string> | サポートされているフォーマットに対してエクスポータークラスを登録します。T::get_supported_formats() を呼び出してエクスポーターが扱うフォーマット文字列を検出し、各フォーマットを T を生成するファクトリにマッピングします。 |
clear() | すべての登録されたエクスポーターをクリアします。主にテスト用です。 |