exip  Alpha 0.5.4
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
bodyDecode.h File Reference

API for decoding EXI stream body. More...

#include "contentHandler.h"

Go to the source code of this file.

Functions

errorCode processNextProduction (EXIStream *strm, SmallIndex *nonTermID_out, ContentHandler *handler, void *app_data)
 Process the next grammar production in the Current Grammar. More...
 
errorCode decodeQName (EXIStream *strm, QName *qname, QNameID *qnameID)
 Decodes a QName from the EXI stream. More...
 
errorCode decodeUri (EXIStream *strm, SmallIndex *uriId)
 Decodes the URI part of a QName from the EXI stream. More...
 
errorCode decodeLn (EXIStream *strm, Index uriId, Index *lnId)
 Decodes the Local name part of a QName from the EXI stream. More...
 
errorCode decodePfxQname (EXIStream *strm, QName *qname, SmallIndex uriId)
 Decodes the prefix component of the QName from the EXI stream In case of Preserve.prefixes the QName type contains a prefix also. More...
 
errorCode decodePfx (EXIStream *strm, SmallIndex uriID, SmallIndex *pfxId)
 Decodes the Prefix part of a NS event from the EXI stream. More...
 
errorCode decodeStringValue (EXIStream *strm, QNameID qnameID, String *value)
 Decodes a string value from the EXI stream. More...
 
errorCode decodeEventContent (EXIStream *strm, Production *prodHit, ContentHandler *handler, SmallIndex *nonTermID_out, void *app_data)
 Decodes the content of EXI event. More...
 
errorCode decodeValueItem (EXIStream *strm, Index typeId, ContentHandler *handler, SmallIndex *nonTermID_out, QNameID localQNameID, void *app_data)
 Decodes the value content item of an EXI event. More...
 
errorCode decodeNSEvent (EXIStream *strm, ContentHandler *handler, SmallIndex *nonTermID_out, void *app_data)
 Decodes NS event. More...
 
errorCode decodeSEWildcardEvent (EXIStream *strm, ContentHandler *handler, SmallIndex *nonTermID_out, void *app_data)
 Decodes SE(*) event. More...
 
errorCode decodeATWildcardEvent (EXIStream *strm, ContentHandler *handler, SmallIndex *nonTermID_out, void *app_data)
 Decodes AT(*) event. More...
 

Detailed Description

Date
Sep 7, 2010
Author
Rumen Kyusakov
Version
0.5
[Revision] $Id: bodyDecode.h 328 2013-10-30 16:00:10Z kjussakov $

Definition in file bodyDecode.h.

Function Documentation

errorCode decodeATWildcardEvent ( EXIStream strm,
ContentHandler handler,
SmallIndex nonTermID_out,
void *  app_data 
)
Parameters
[in,out]strmEXI stream representation
[in]handlerapplication content handler; stores the callback functions
[out]nonTermID_outnonTerminal ID after the content decoding
[in]app_dataApplication data to be passed to the content handler callbacks
Returns
Error handling code

Definition at line 1423 of file bodyDecode.c.

errorCode decodeEventContent ( EXIStream strm,
Production prodHit,
ContentHandler handler,
SmallIndex nonTermID_out,
void *  app_data 
)
Parameters
[in,out]strmEXI stream representation
[in]prodHitthe current grammar production
[in]handlerapplication content handler; stores the callback functions
[out]nonTermID_outnonTerminal ID after the content decoding
[in]app_dataApplication data to be passed to the content handler callbacks
Returns
Error handling code

Definition at line 910 of file bodyDecode.c.

errorCode decodeLn ( EXIStream strm,
Index  uriId,
Index lnId 
)
Parameters
[in,out]strmEXI stream representation
[in]uriIdThe URI id in the URI string table
[out]lnIdThe LN id in the Local name string table
Returns
Error handling code

Definition at line 768 of file bodyDecode.c.

errorCode decodeNSEvent ( EXIStream strm,
ContentHandler handler,
SmallIndex nonTermID_out,
void *  app_data 
)
Parameters
[in,out]strmEXI stream representation
[in]handlerapplication content handler; stores the callback functions
[out]nonTermID_outnonTerminal ID after the content decoding
[in]app_dataApplication data to be passed to the content handler callbacks
Returns
Error handling code

Definition at line 1266 of file bodyDecode.c.

errorCode decodePfx ( EXIStream strm,
SmallIndex  uriID,
SmallIndex pfxId 
)
Parameters
[in,out]strmEXI stream representation
[in]uriIDThe URI id in the URI string table
[out]pfxIdThe prefix id in the Prefix string table
Returns
Error handling code

Definition at line 834 of file bodyDecode.c.

errorCode decodePfxQname ( EXIStream strm,
QName qname,
SmallIndex  uriId 
)
Parameters
[in,out]strmEXI stream representation
[out]qnameqname that holds the prefix
[in]uriIdThe URI id in the URI string table
Returns
Error handling code

Definition at line 805 of file bodyDecode.c.

errorCode decodeQName ( EXIStream strm,
QName qname,
QNameID qnameID 
)
Parameters
[in,out]strmEXI stream representation
[out]qnamethe QName decoded
[out]qnameIDthe QNameID in the string tables
Returns
Error handling code

Definition at line 729 of file bodyDecode.c.

errorCode decodeSEWildcardEvent ( EXIStream strm,
ContentHandler handler,
SmallIndex nonTermID_out,
void *  app_data 
)
Parameters
[in,out]strmEXI stream representation
[in]handlerapplication content handler; stores the callback functions
[out]nonTermID_outnonTerminal ID after the content decoding
[in]app_dataApplication data to be passed to the content handler callbacks
Returns
Error handling code

Definition at line 1288 of file bodyDecode.c.

errorCode decodeStringValue ( EXIStream strm,
QNameID  qnameID,
String value 
)
Parameters
[in,out]strmEXI stream representation
[in]qnameIDThe uri/ln ids in the URI string table
[out]valuethe string decoded
Returns
Error handling code

Definition at line 860 of file bodyDecode.c.

errorCode decodeUri ( EXIStream strm,
SmallIndex uriId 
)
Parameters
[in,out]strmEXI stream representation
[out]uriIdThe URI id in the URI string table
Returns
Error handling code

Definition at line 743 of file bodyDecode.c.

errorCode decodeValueItem ( EXIStream strm,
Index  typeId,
ContentHandler handler,
SmallIndex nonTermID_out,
QNameID  localQNameID,
void *  app_data 
)
Parameters
[in,out]strmEXI stream representation
[in]typeIdindex of the type in the SimpleTypeTable
[in]handlerapplication content handler; stores the callback functions
[out]nonTermID_outnonTerminal ID after the content decoding
[in]localQNameIDthe local uri/ln IDs
[in]app_dataApplication data to be passed to the content handler callbacks
Returns
Error handling code

BEGIN type validation

END type validation

Definition at line 1011 of file bodyDecode.c.

errorCode processNextProduction ( EXIStream strm,
SmallIndex nonTermID_out,
ContentHandler handler,
void *  app_data 
)

Returns the terminal symbol of the production i.e. the EXI Event Type;

Parameters
[in]strmEXI stream of bits
[out]nonTermID_outunique identifier of right-hand side Non-terminal
[in]handlercontent handler callbacks
[in]app_dataApplication data to be passed to the content handler callbacks
Returns
Error handling code

Definition at line 31 of file bodyDecode.c.