ArcGIS Procedural Runtime
3.2.10650
|
#include <Callbacks.h>
Public Types | |
enum | OpenMode { OPENMODE_ALWAYS, OPENMODE_IF_NOT_EXISTING } |
enum | SeekOrigin { SO_BEGIN, SO_CURRENT, SO_END } |
enum | StringEncoding { SE_NATIVE, SE_UTF8, SE_UTF16 } |
Public Types inherited from prt::Callbacks | |
enum | Continuation { CONTINUE, CANCEL_AND_FINISH, CANCEL_ASAP } |
enum | CoordSelector { PROJ_X, PROJ_Y, WGS84_LAT, WGS84_LON, WGS84_ALT_METER, LAYER_X, LAYER_Y, LAYER_Z } |
Public Member Functions | |
virtual bool | canSeek () const =0 |
virtual Status | close (uint64_t handle, const size_t *isIndices, size_t isCount)=0 |
virtual Status | closeCGAError ()=0 |
virtual Status | closeCGAPrint ()=0 |
virtual Status | closeCGAReport ()=0 |
virtual Status | logStats (uint64_t handle, const size_t *isIndices, size_t isCount, ContentType contentType, const prt::AttributeMap *stats) |
virtual uint64_t | open (const wchar_t *encoderId, const ContentType contentType, const wchar_t *name, StringEncoding enc=SE_NATIVE, OpenMode mode=OPENMODE_ALWAYS, prt::Status *stat=0)=0 |
virtual Status | openCGAError (const wchar_t *name)=0 |
virtual Status | openCGAPrint (const wchar_t *name)=0 |
virtual Status | openCGAReport (const wchar_t *name)=0 |
virtual Status | seek (uint64_t handle, int64_t offset, SeekOrigin origin)=0 |
virtual uint64_t | tell (uint64_t handle, Status *stat=0)=0 |
virtual Status | write (uint64_t handle, const wchar_t *string)=0 |
virtual Status | write (uint64_t handle, const uint8_t *buffer, size_t size)=0 |
Public Member Functions inherited from prt::Callbacks | |
virtual Status | assetError (size_t isIndex, CGAErrorLevel level, const wchar_t *key, const wchar_t *uri, const wchar_t *message)=0 |
virtual Status | attrBool (size_t isIndex, int32_t shapeID, const wchar_t *key, bool value)=0 |
virtual Status | attrBoolArray (size_t isIndex, int32_t shapeID, const wchar_t *key, const bool *ptr, size_t size, size_t nRows)=0 |
virtual Status | attrFloat (size_t isIndex, int32_t shapeID, const wchar_t *key, double value)=0 |
virtual Status | attrFloatArray (size_t isIndex, int32_t shapeID, const wchar_t *key, const double *ptr, size_t size, size_t nRows)=0 |
virtual Status | attrString (size_t isIndex, int32_t shapeID, const wchar_t *key, const wchar_t *value)=0 |
virtual Status | attrStringArray (size_t isIndex, int32_t shapeID, const wchar_t *key, const wchar_t *const *ptr, size_t size, size_t nRows)=0 |
virtual Status | cgaError (size_t isIndex, int32_t shapeID, CGAErrorLevel level, int32_t methodId, int32_t pc, const wchar_t *message)=0 |
virtual double | cgaGetCoord (size_t isIndex, CoordSelector sel, double x, double y, double z, Status *stat=0) |
virtual Status | cgaPrint (size_t isIndex, int32_t shapeID, const wchar_t *txt)=0 |
virtual Status | cgaReportBool (size_t isIndex, int32_t shapeID, const wchar_t *key, bool value)=0 |
virtual Status | cgaReportFloat (size_t isIndex, int32_t shapeID, const wchar_t *key, double value)=0 |
virtual Status | cgaReportString (size_t isIndex, int32_t shapeID, const wchar_t *key, const wchar_t *value)=0 |
virtual Status | generateError (size_t isIndex, Status status, const wchar_t *message)=0 |
virtual Continuation | progress (float percentageCompleted) |
An extension of the Callbacks interface which adds support for basic output. This is basically an abstraction of typical file-IO.
All functions are thread-safe.
|
pure virtual |
|
pure virtual |
Closes an entity.
handle | Handle of entity. |
isIndices | Pointer to array of initial shape indices (relative to the array in the generate() call), which contributed to the content in this entity. |
isCount | Number of indices in the array. |
|
virtual |
Passes meta-data about the written entity to the client (e.g. polygon count, mesh names, etc.) All arrays in the meta-data are interepreted as follows: The i-th element of each array belongs to the same object and will be grouped. Therefore all arrays need to have equal length.
handle | Handle of entity. |
isIndices | All indices that contributed to the contents of this entity |
isCount | The length of the array given in isIndices |
contentType | The type for which meta-data is passed |
stats | The meta-data that is passed to the client |
|
pure virtual |
Opens a named entity.
encoderId | The id of the calling encoder. | |
contentType | The content type which will be written. | |
name | Name of the entity. | |
enc | Optional encoding which should be applied to written strings. | |
mode | Optional mode for opening the entity. | |
[out] | stat | Optional pointer to return the status. |
|
pure virtual |
Opens an entity for cga error reporting.
name | The name of the entity. |
|
pure virtual |
Opens an entity where cga print operations/functions write to.
name | The name of the entity. |
|
pure virtual |
Opens an entity where cga report operations write to.
name | The name of the entity. |
|
pure virtual |
Sets the position in the entity. Only call this if canSeek() returns true.
handle | Handle of entity. |
offset | Offset in bytes. |
origin | The offset is relative to the origin. |
|
pure virtual |
Returns the position in the entity. Only call this if canSeek() returns true.
handle | Handle of entity. | |
[out] | stat | Optional pointer to return the status. |
|
pure virtual |
Write text to an output entity.
handle | Handle of entity. |
string | Text to write. |
|
pure virtual |
Write binary data to an output entity.
handle | Handle of entity. |
buffer | Pointer to data to write. |
size | Size of data to write in bytes to write. |