#include <fileformat_handler.h>
FileFormatDetectionInterface offers functions to detect file formats.
Public Types |
|
| using | DetectedCallback = Delegate < Result < Bool >(const Url &url, const FileFormatHandler &handler)> |
公共成员函数 |
|
| template<typename... LIMITTYPES> | |
| Result < BaseArray < FileFormatHandler > > | DetectAll (const Url &url, const DetectedCallback &detectedCallback) |
| template<typename... LIMITTYPES> | |
| Result < FileFormatHandler > | Detect (const Url &url) |
静态公共成员函数 |
|
| static MAXON_METHOD Result < BaseArray < FileFormatHandler > > | DetectAll (const Url &url, const Block < const DataType > &limitDetection, const DetectedCallback &detectedCallback) |
| template<typename... LIMITTYPES> | |
| static MAXON_WARN_UNUSED MAXON_FUNCTION Result < BaseArray < FileFormatHandler > > | DetectAll (const Url &url, const DetectedCallback &detectedCallback) |
| template<typename... LIMITTYPES> | |
| static MAXON_WARN_UNUSED MAXON_FUNCTION Result < FileFormatHandler > | Detect (const Url &url) |
私有成员函数 |
|
| MAXON_INTERFACE_NONVIRTUAL ( FileFormatDetectionInterface , MAXON_REFERENCE_NONE , "net.maxon.interface.fileformatdetection") | |
| using DetectedCallback = Delegate < Result < Bool >(const Url & url, const FileFormatHandler& handler)> |
|
private |
|
static |
Detects all available FileFormatHandler in the order of priority. The first value in the array should be used first.
| [in] | url | Url to detect. |
| [in] | limitDetection | Limit FileFormatHandler which return the given data types in their CreateHandler() call. |
| [in] | detectedCallback | Every detected file format handler will call this callback before adding it to the result BaseArray<FileFormatHandler>. For details see DetectedCallback. |
|
static |
Detects all available FileFormatHandler in the order of priority. The first value in the array should be used first.
| LIMITTYPES | List with reference types to limit the DetectAll call. E.g. DetectAll<MediaLoaderRef>() , DetectAll<MediaLoaderRef, MovieLoaderRef>() . |
| [in] | url | Url to detect. |
|
static |
Detects the first available FileFormatHandler in the order of priority.
| LIMITTYPES | List with reference types to limit the DetectAll call. E.g. DetectAll<MediaLoaderRef>() , DetectAll<MediaLoaderRef, MovieLoaderRef>() . |
| [in] | url | Url to detect. |
| Result < BaseArray <FileFormatHandler> > DetectAll | ( | const Url & | url , |
| const DetectedCallback & | detectedCallback | ||
| ) |
| Result <FileFormatHandler> Detect | ( | const Url & | url | ) |