Xalan-C++ API Reference  1.12.0
Macros | Typedefs
XalanTransformerDefinitions.hpp File Reference
#include <xalanc/Include/PlatformDefinitions.hpp>
#include <stddef.h>
Include dependency graph for XalanTransformerDefinitions.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define XALAN_TRANSFORMER_EXPORT   XALAN_PLATFORM_IMPORT
 
#define XALAN_TRANSFORMER_EXPORT_FUNCTION(T)   XALAN_PLATFORM_IMPORT_FUNCTION(T)
 

Typedefs

typedef size_t CallbackSizeType
 
typedef CallbackSizeType(* XalanOutputHandlerType) (const char *, CallbackSizeType, void *)
 Callback function passed to the XalanTransformer APIs. More...
 
typedef void(* XalanFlushHandlerType) (void *)
 Callback function passed to the XalanTransformer APIs. More...
 

Macro Definition Documentation

◆ XALAN_TRANSFORMER_EXPORT

#define XALAN_TRANSFORMER_EXPORT   XALAN_PLATFORM_IMPORT

Definition at line 39 of file XalanTransformerDefinitions.hpp.

◆ XALAN_TRANSFORMER_EXPORT_FUNCTION

#define XALAN_TRANSFORMER_EXPORT_FUNCTION (   T)    XALAN_PLATFORM_IMPORT_FUNCTION(T)

Definition at line 41 of file XalanTransformerDefinitions.hpp.

Typedef Documentation

◆ CallbackSizeType

typedef size_t CallbackSizeType

Definition at line 50 of file XalanTransformerDefinitions.hpp.

◆ XalanFlushHandlerType

typedef void(* XalanFlushHandlerType) (void *)

Callback function passed to the XalanTransformer APIs.

Used to flush the buffer once transform is completed.

static void xalanFlushHandler(const void *handle);

Parameters
handlehandle of XalanTransformer instance.

Definition at line 80 of file XalanTransformerDefinitions.hpp.

◆ XalanOutputHandlerType

typedef CallbackSizeType(* XalanOutputHandlerType) (const char *, CallbackSizeType, void *)

Callback function passed to the XalanTransformer APIs.

Used to process transformation output in blocks of data. Caller is responsible for streaming or copying data to a user
allocated buffer. Caller should not attempt to write to or
free this data.

The callback should return the number of bytes written, and this number should match the length received. Otherwise the XalanTransformToHandler function terminates and returns an error status.

static unsigned long xalanOutputHandler(const void* data, unsigned long length, const void *handle);

Parameters
dataa block of data
lengthlength of block
handlehandle of XalanTransformer instance.
Returns
number of bytes written

Definition at line 70 of file XalanTransformerDefinitions.hpp.