ArcGIS Procedural Runtime
3.2.10650
|
#include <StreamAdaptor.h>
Public Member Functions | |
virtual std::istream * | createStream (prtx::URIPtr uri) const =0 |
virtual void | destroyStream (std::istream *stream) const =0 |
virtual prt::ContentType | getContentType () const final override |
virtual prtx::Extension::ExtensionType | getExtensionType () const final override |
virtual void | resolve (ContentPtrVector &results, prt::Cache *cache, const std::wstring &key, prt::ContentType ct, prtx::ResolveMap const *resolveMap, std::wstring &warnings) const final |
Public Member Functions inherited from prtx::Extension | |
Extension (const Extension &)=delete | |
Extension & | operator= (const Extension &)=delete |
Additional Inherited Members | |
Public Types inherited from prtx::Extension | |
enum | ExtensionType { ET_UNDEFINED, ET_STREAM_ADAPTOR, ET_RESOLVEMAP_PROVIDER, ET_ENCODER, ET_DECODER, ET_COUNT } |
Static Public Member Functions inherited from prtx::Extension | |
static prt::ContentType | toContentType (const std::wstring &ctStr) |
static ExtensionType | toExtensionType (const std::wstring &etStr) |
static const std::wstring & | toString (const ExtensionType &et) |
static const std::wstring & | toString (const prt::ContentType &ct) |
Base class for byte stream adaptors. Subclasses implement how a byte stream is extracted based from a certain kind of URIs. Typically, there is more or less one stream adaptor for each supported URI scheme.
|
pure virtual |
Implements the logic how to create a byte stream for a specific URI.
|
pure virtual |
Destroys the stream created by createStream. The stream must be created with createStream.
|
inlinefinaloverridevirtual |
The content type of a Stream Adpator is undefined, it can decode into multiple possible content objects.
Implements prtx::Extension.
|
inlinefinaloverridevirtual |
Fixates the extension type to ET_STREAM_ADAPTOR.
Implements prtx::Extension.
|
finalvirtual |
The URI specified by resolveMap and corresponding key is read and decoded into prtx::Content based object(s) using the stream create by createStream.
results | Receives the decoded objects. |
cache | Cache for nested calls to prtx::DataBackend. |
key | Resource key into resolve map. |
ct | Only decoders with ContentType ct will be tried. |
resolveMap | The available URIs. |
warnings | Receives any resolve/decode warnings generated by the call. |