#include <fileformat_handler.h>
FileFormatDetectionInterface offers functions to detect file formats.
◆ DetectedCallback
- Returns
- The callback should return true if the file format detection should stop at this point. Returning false will search other compatible fileformat handlers. If you return a error the search will be continued. If no valid handler can be found the first error will be returned as the result of DetectAll().
◆ MAXON_INTERFACE_NONVIRTUAL()
◆ DetectAll() [1/3]
Detects all available FileFormatHandler in the order of priority. The first value in the array should be used first.
- Parameters
-
[in] | url | Url to detect. |
[in] | limitDetection | Limit FileFormatHandler which return the given data types in their CreateHandler() call. |
[in] | flags | see FILEFORMATDETECTIONFLAGS. |
[in] | detectedCallback | Every detected file format handler will call this callback before adding it to the result BaseArray<FileFormatHandler>. For details see DetectedCallback. |
- Returns
- Returns an array with FileFormatHandler which all can handle this url.
◆ DetectAll() [2/3]
Detects all available FileFormatHandler in the order of priority. The first value in the array should be used first.
- Template Parameters
-
- Parameters
-
[in] | url | Url to detect. |
[in] | flags | see FILEFORMATDETECTIONFLAGS. |
- Returns
- Returns an array with FileFormatHandler which all can handle this url.
◆ Detect() [1/2]
Detects the first available FileFormatHandler in the order of priority.
- Template Parameters
-
- Parameters
-
[in] | url | Url to detect. |
[in] | flags | see FILEFORMATDETECTIONFLAGS. |
- Returns
- Returns a FileFormatHandler which can handle this url.
◆ DetectAll() [3/3]
◆ Detect() [2/2]