|
exip
Alpha 0.5.4
|
Implementing an API for decoding EXI stream body. More...
#include "bodyDecode.h"#include "sTables.h"#include "memManagement.h"#include "ioUtil.h"#include "streamDecode.h"#include "grammars.h"#include "dynamicArray.h"#include "stringManipulate.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... | |
Definition in file bodyDecode.c.
| errorCode decodeATWildcardEvent | ( | EXIStream * | strm, |
| ContentHandler * | handler, | ||
| SmallIndex * | nonTermID_out, | ||
| void * | app_data | ||
| ) |
| [in,out] | strm | EXI stream representation |
| [in] | handler | application content handler; stores the callback functions |
| [out] | nonTermID_out | nonTerminal ID after the content decoding |
| [in] | app_data | Application data to be passed to the content handler callbacks |
Definition at line 1423 of file bodyDecode.c.
| errorCode decodeEventContent | ( | EXIStream * | strm, |
| Production * | prodHit, | ||
| ContentHandler * | handler, | ||
| SmallIndex * | nonTermID_out, | ||
| void * | app_data | ||
| ) |
| [in,out] | strm | EXI stream representation |
| [in] | prodHit | the current grammar production |
| [in] | handler | application content handler; stores the callback functions |
| [out] | nonTermID_out | nonTerminal ID after the content decoding |
| [in] | app_data | Application data to be passed to the content handler callbacks |
Definition at line 910 of file bodyDecode.c.
| [in,out] | strm | EXI stream representation |
| [in] | uriId | The URI id in the URI string table |
| [out] | lnId | The LN id in the Local name string table |
Definition at line 768 of file bodyDecode.c.
| errorCode decodeNSEvent | ( | EXIStream * | strm, |
| ContentHandler * | handler, | ||
| SmallIndex * | nonTermID_out, | ||
| void * | app_data | ||
| ) |
| [in,out] | strm | EXI stream representation |
| [in] | handler | application content handler; stores the callback functions |
| [out] | nonTermID_out | nonTerminal ID after the content decoding |
| [in] | app_data | Application data to be passed to the content handler callbacks |
Definition at line 1266 of file bodyDecode.c.
| errorCode decodePfx | ( | EXIStream * | strm, |
| SmallIndex | uriID, | ||
| SmallIndex * | pfxId | ||
| ) |
| [in,out] | strm | EXI stream representation |
| [in] | uriID | The URI id in the URI string table |
| [out] | pfxId | The prefix id in the Prefix string table |
Definition at line 834 of file bodyDecode.c.
| errorCode decodePfxQname | ( | EXIStream * | strm, |
| QName * | qname, | ||
| SmallIndex | uriId | ||
| ) |
| [in,out] | strm | EXI stream representation |
| [out] | qname | qname that holds the prefix |
| [in] | uriId | The URI id in the URI string table |
Definition at line 805 of file bodyDecode.c.
| [in,out] | strm | EXI stream representation |
| [out] | qname | the QName decoded |
| [out] | qnameID | the QNameID in the string tables |
Definition at line 729 of file bodyDecode.c.
| errorCode decodeSEWildcardEvent | ( | EXIStream * | strm, |
| ContentHandler * | handler, | ||
| SmallIndex * | nonTermID_out, | ||
| void * | app_data | ||
| ) |
| [in,out] | strm | EXI stream representation |
| [in] | handler | application content handler; stores the callback functions |
| [out] | nonTermID_out | nonTerminal ID after the content decoding |
| [in] | app_data | Application data to be passed to the content handler callbacks |
Definition at line 1288 of file bodyDecode.c.
| [in,out] | strm | EXI stream representation |
| [in] | qnameID | The uri/ln ids in the URI string table |
| [out] | value | the string decoded |
Definition at line 860 of file bodyDecode.c.
| errorCode decodeUri | ( | EXIStream * | strm, |
| SmallIndex * | uriId | ||
| ) |
| [in,out] | strm | EXI stream representation |
| [out] | uriId | The URI id in the URI string table |
Definition at line 743 of file bodyDecode.c.
| errorCode decodeValueItem | ( | EXIStream * | strm, |
| Index | typeId, | ||
| ContentHandler * | handler, | ||
| SmallIndex * | nonTermID_out, | ||
| QNameID | localQNameID, | ||
| void * | app_data | ||
| ) |
| [in,out] | strm | EXI stream representation |
| [in] | typeId | index of the type in the SimpleTypeTable |
| [in] | handler | application content handler; stores the callback functions |
| [out] | nonTermID_out | nonTerminal ID after the content decoding |
| [in] | localQNameID | the local uri/ln IDs |
| [in] | app_data | Application data to be passed to the content handler callbacks |
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;
| [in] | strm | EXI stream of bits |
| [out] | nonTermID_out | unique identifier of right-hand side Non-terminal |
| [in] | handler | content handler callbacks |
| [in] | app_data | Application data to be passed to the content handler callbacks |
Definition at line 31 of file bodyDecode.c.
1.8.4