![]() |
ArcGIS Procedural Runtime
3.1.9666
|
#include <ExtensionFactory.h>
Public Member Functions | |
virtual bool | canHandleURI (prtx::URIPtr uri) const =0 |
virtual Extension * | create () const =0 |
ExtensionFactory (const ExtensionFactory &)=delete | |
virtual prt::ContentType | getContentType () const =0 |
virtual const std::wstring & | getDescription () const =0 |
virtual prtx::Extension::ExtensionType | getExtensionType () 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 |
Static Public Member Functions | |
static float | getDefaultMerit () |
This is the base class for all extension factories. Usually it should not be sub-classed directly, use StreamAdaptorFactory, ResolveMapProviderFactory, DecoderFactory, or EncoderFactory for your own extensions.
All ExtensionFactory subclasses must be used as singletons and are typically directly passed into prtx::ExtensionManager::addFactory.
ExtensionFactories and subclasses must be immutable.
|
pure virtual |
Returns true, if the extension can handle the resource described by the URI. Returns false, if the uri is invalid.
Implemented in prtx::EncoderFactory, and prtx::DecoderFactory.
|
pure virtual |
Subclasses must override this member function to create an instance of the corresponding extension.
|
pure virtual |
Returns the content type of this extension.
Implemented in prtx::EncoderFactory, prtx::ResolveMapProviderFactory, and prtx::StreamAdaptorFactory.
|
static |
Returns the default merit for all extensions (1.0).
|
pure virtual |
Returns a human readable description of the extension
Implemented in prtx::EncoderFactory.
|
pure virtual |
Returns the type of this extension.
Implemented in prtx::EncoderFactory, prtx::DecoderFactory, prtx::ResolveMapProviderFactory, and prtx::StreamAdaptorFactory.
|
pure virtual |
Returns the unique ID of the extension instances this factory will create.
Implemented in prtx::EncoderFactory.
|
inlinevirtual |
An extension can override and increase getMerit to influence the resolve order of an URI. Extensions with higher merits have higher priority.
|
pure virtual |
Returns the human readable name of the extension.
Implemented in prtx::EncoderFactory.