ArcGIS Procedural Runtime
3.2.10650
|
#include <EncoderFactory.h>
Public Member Functions | |
virtual bool | canHandleURI (prtx::URIPtr) const final override |
bool | checkOptionKeys (prt::AttributeMap const *opts) const |
virtual Encoder * | create (const prt::AttributeMap *options, prt::Callbacks *callbacks) const =0 |
prt::EncoderInfo * | createEncoderInfo () const |
virtual prt::ContentType | getContentType () const final |
virtual const std::wstring & | getDescription () const final |
virtual prtx::Extension::ExtensionType | getExtensionType () const final override |
virtual const std::wstring & | getID () const final |
virtual const std::wstring & | getName () const final |
Public Member Functions inherited from prtx::ExtensionFactory | |
ExtensionFactory (const ExtensionFactory &)=delete | |
virtual float | getMerit () const |
ExtensionFactory & | operator= (const ExtensionFactory &)=delete |
Protected Member Functions | |
EncoderFactory (const prt::EncoderInfo *info) | |
Protected Attributes | |
const EncoderInfoImpl * | mInfo {nullptr} |
Additional Inherited Members | |
Static Public Member Functions inherited from prtx::ExtensionFactory | |
static float | getDefaultMerit () |
Base class for all encoder factories.
A typical example to create a custom EncoderFactory with the Singleton helper template:
The factory can then be conveniently registered like this:
|
protected |
Constructs an EncoderFactory with the appropriate info. EncoderFactory subclasses must be used with singleton
It is recommended to also protected the constructors of subclasses and use a static member function to create the singleton.
info | ownership is transferred to EncoderFactory |
|
inlinefinaloverridevirtual |
bool prtx::EncoderFactory::checkOptionKeys | ( | prt::AttributeMap const * | opts | ) | const |
Returns true if opts has the same key set as the default options
|
pure virtual |
Subclasses must override this member function to create an instance of the corresponding encoder.
options | Encoder options passed by client on generate call. |
callbacks | Optional callbacks needed to create an instance of the extension. |
prt::EncoderInfo* prtx::EncoderFactory::createEncoderInfo | ( | ) | const |
Returns a copy of the encoder info describing this encoder. Throws prtx::StatusException if the factory is not properly setup.
|
finalvirtual |
Convenience member function forwarded from EncoderInfo.
Implements prtx::ExtensionFactory.
|
finalvirtual |
Convenience member function forwarded from EncoderInfo.
Implements prtx::ExtensionFactory.
|
inlinefinaloverridevirtual |
Fixate the extension type to prtx::Extension::ET_ENCODER.
Implements prtx::ExtensionFactory.
|
finalvirtual |
Convenience member function forwarded from EncoderInfo.
Implements prtx::ExtensionFactory.
|
finalvirtual |
Convenience member function forwarded from EncoderInfo.
Implements prtx::ExtensionFactory.