ArcGIS Procedural Runtime
3.2.10650
|
#include <DecoderFactory.h>
Public Types | |
enum | EmbeddedResources { ER_NO, ER_CAN_HANDLE } |
Public Member Functions | |
virtual bool | canHandleURI (prtx::URIPtr uri) const override |
prt::DecoderInfo * | createDecoderInfo () const |
DecoderFactory (prt::ContentType type, const std::wstring &id, const std::wstring &name, const std::wstring &desc, const FileExtensions &exts=FileExtensions(), const char *icon=0, EmbeddedResources canHandleER=ER_NO) | |
virtual prtx::Extension::ExtensionType | getExtensionType () const final override |
Public Member Functions inherited from prtx::ExtensionFactory | |
virtual Extension * | create () const =0 |
ExtensionFactory (const ExtensionFactory &)=delete | |
virtual prt::ContentType | getContentType () const =0 |
virtual const std::wstring & | getDescription () const =0 |
virtual const std::wstring & | getID () const =0 |
virtual float | getMerit () const |
virtual const std::wstring & | getName () const =0 |
ExtensionFactory & | operator= (const ExtensionFactory &)=delete |
Protected Attributes | |
DecoderInfoImpl * | mInfo {nullptr} |
Additional Inherited Members | |
Static Public Member Functions inherited from prtx::ExtensionFactory | |
static float | getDefaultMerit () |
This is the base class for all decoder factories. A subclass may want to override getMerit() to control the resolve order of multiple decoders with the same type and id.
prtx::DecoderFactory::DecoderFactory | ( | prt::ContentType | type, |
const std::wstring & | id, | ||
const std::wstring & | name, | ||
const std::wstring & | desc, | ||
const FileExtensions & | exts = FileExtensions() , |
||
const char * | icon = 0 , |
||
EmbeddedResources | canHandleER = ER_NO |
||
) |
[in] | type | The content type of this extension. |
[in] | id | The ID of this extension. |
[in] | name | A human-readable name of this extension. |
[in] | desc | A human-readable description of this extension. |
[in] | exts | Supported file extensions of this extension. |
[in] | icon | An icon as Base64-encoded PNG byte array. |
[in] | canHandleER | ER_CAN_HANDLE if the associated decoder can handle embedded resources. |
|
overridevirtual |
Returns true, if the URI matches one of the registered file extensions.
Implements prtx::ExtensionFactory.
prt::DecoderInfo* prtx::DecoderFactory::createDecoderInfo | ( | ) | const |
Returns a new instance of the corresponding decoder information. Must be destroyed by the client.
|
inlinefinaloverridevirtual |
Fixates the extension type to prtx::Extension::ET_DECODER;
Implements prtx::ExtensionFactory.