EXI decode structures and functions.
Classes | |
| struct | OSEXIDecStringTable |
| This structure defines the structure of the various string table partitions used by the decoder. More... | |
| struct | OSEXIDecStringTables |
| This structure defines the complete set of string table partitions used by the decoder. More... | |
Functions | |
| EXTERNEXI int | rtEXIDecAtmAddTransition (OSCTXT *pctxt, OSEXIAutomaton *pAutomaton, OSEXIState fromState, OSEXIState toState, const OSEXIEvent *pEvent, const OSEXIEventCode *pEventCode) |
| This function adds a transition between two states. | |
| EXTERNEXI OSEXIEvent * | rtEXIDecAutomatonAdvance (OSCTXT *pctxt, OSEXIAutomaton *pAutomaton, const OSEXIEventCode *pEventCode, OSBOOL dynamicItems) |
This function advances the decoder automaton based on event code, adding new transitions if dynamicItems is set to true and either SE(*) or AT(*) are matched instead of SE(qname) or AT(qname), respectively. | |
| EXTERNEXI OSEXIAutomaton * | rtEXIDecGetDocAutomaton (OSCTXT *pctxt) |
| This functions returns an automaton that accepts the built-in document grammar. | |
| EXTERNEXI OSEXIAutomaton * | rtEXIDecGetElemAutomaton (OSCTXT *pctxt, OSXMLFullQName *pqname) |
| This function returns an automaton that accepts the built-in element grammar. | |
| EXTERNEXI int | rtEXIDecReset (OSCTXT *pctxt) |
| Resets the decoder for decoding a new message instance. | |
| EXTERNEXI OSBOOL | rtEXIDecHasNext (OSCTXT *pctxt) |
| This functions checks for additonal events in the decode stream. | |
| EXTERNEXI int | rtEXIDecNextEventType (OSCTXT *pctxt, OSEXIEventType *pEventType) |
Returns the next OSEXIEventType read by this decoder. | |
| EXTERNEXI int | rtEXIDecAttribute (OSCTXT *pctxt, OSXMLFullQName *pqname, const OSUTF8CHAR **ppvalue) |
| Decodes the attribute at the current position in the decode stream. | |
| EXTERNEXI int | rtEXIDecQName (OSCTXT *pctxt, OSXMLFullQName *pqname) |
| Returns the qname associated with the current event. | |
| EXTERNEXI int | rtEXIDecLocalName (OSCTXT *pctxt, const OSUTF8CHAR **ppname) |
| Returns the local name associated with the current event. | |
| EXTERNEXI int | rtEXIDecNamespaceURI (OSCTXT *pctxt, const OSUTF8CHAR **ppNSURI) |
| Returns the namespace associated with the current event. | |
| EXTERNEXI int | rtEXIDecPrefix (OSCTXT *pctxt, const OSUTF8CHAR *uri, const OSUTF8CHAR **ppPrefix) |
| Returns the namespace associated with the current event. | |
| EXTERNEXI int | rtEXIDecText (OSCTXT *pctxt, const OSXMLFullQName *pqname, const OSUTF8CHAR **ppvalue) |
| Returns the value associated with the current event. | |
| EXTERNEXI int | rtEXIDecTextToCharArray (OSCTXT *pctxt, const OSUTF8CHAR *target, size_t start, size_t length) |
Similar to rtEXIDecText but the characters are copied into a fixed-size character array. | |
| EXTERNEXI int | rtEXIDecTextLength (OSCTXT *pctxt) |
Returns the length of the string returned by rtEXIDecText. | |
| EXTERNEXI int | rtEXIDecProcessingInstruction (OSCTXT *pctxt, const OSUTF8CHAR **ppTarget, const OSUTF8CHAR **ppData) |
| This function decodes an XML processing instruction (PI). | |
| EXTERNEXI int | rtEXIDecDocumentType (OSCTXT *pctxt, const OSUTF8CHAR **ppName, const OSUTF8CHAR **ppPublic, const OSUTF8CHAR **ppSystem, const OSUTF8CHAR **ppText) |
| This function decodes an XML document type declaration (DTD). | |
| EXTERNEXI int | rtEXIDecUIntValue (OSCTXT *pctxt, OSUINT32 *pvalue) |
| This function decodes an unsigned integer value. | |
| EXTERNEXI int | rtEXIDecUTF8Str (OSCTXT *pctxt, OSUTF8CHAR **ppvalue) |
| This function decodes a UTF-8 string value. | |
| EXTERNEXI int | rtEXIDecUTF8Chars (OSCTXT *pctxt, OSUTF8CHAR **ppvalue, OSUINT32 nchars) |
| This function reads the given number of characters from the decode stream and creates a UTF-8 string. | |
| EXTERNEXI void | rtEXIDecStringTableInit (OSCTXT *pctxt, OSEXIDecStringTable *pstrtab, size_t capacity) |
| This function initializes the given string table structure. | |
| EXTERNEXI OSEXIDecStringTable * | rtEXIDecNewStringTable (OSCTXT *pctxt, size_t capacity) |
| This function allocates and initializes a new string table structure. | |
| EXTERNEXI void | rtEXIDecStringTableClear (OSCTXT *pctxt, OSEXIDecStringTable *pstrtab) |
| This function clears all strings out of the existing table. | |
| EXTERNEXI OSUINT32 | rtEXIDecStringTableAdd (OSCTXT *pctxt, OSEXIDecStringTable *pstrtab, const OSUTF8CHAR *str) |
| This function adds a string to the given string table. | |
| EXTERNEXI const OSUTF8CHAR * | rtEXIDecStringTableGetString (OSEXIDecStringTable *pstrtab, OSUINT32 index) |
| This function gets the string at the given index (i.e. | |
| EXTERNEXI void | rtEXIDecStrTabsInit (OSCTXT *pctxt, OSEXIDecStringTables *pstrtabs) |
| This function initializes all EXI string table partitions. | |
| EXTERNEXI void | rtEXIDecStrTabsClear (OSCTXT *pctxt, OSEXIDecStringTables *pstrtabs) |
| This function clears all EXI string table partitions. | |
| EXTERNEXI OSUINT32 | rtEXIDecStrTabsAddURI (OSCTXT *pctxt, OSEXIDecStringTables *pstrtabs, const OSUTF8CHAR *uri) |
| This function will add a URI to the URI string table partition. | |
| EXTERNEXI const OSUTF8CHAR * | rtEXIDecStrTabsGetURI (OSEXIDecStringTables *pstrtabs, OSUINT32 index) |
| This function will get the compact identifier of the given URI from the URI string table partition. | |
| EXTERNEXI OSUINT32 | rtEXIDecStrTabsGetURITableSize (OSEXIDecStringTables *pstrtabs) |
| This function returns the current number of entries in the URI string table partition. | |
| EXTERNEXI OSUINT32 | rtEXIDecStrTabsAddPrefix (OSCTXT *pctxt, OSEXIDecStringTables *pstrtabs, const OSUTF8CHAR *uri, const OSUTF8CHAR *prefix) |
| This function adds the given prefix to the prefix table partition identified by the given URI. | |
| EXTERNEXI const OSUTF8CHAR * | rtEXIDecStrTabsGetPrefix (OSEXIDecStringTables *pstrtabs, const OSUTF8CHAR *uri, OSUINT32 index) |
| This function will get the compact identifier of the given prefix from the prefix string table partition identified by the given URI. | |
| EXTERNEXI OSUINT32 | rtEXIDecStrTabsGetPrefixTableSize (OSEXIDecStringTables *pstrtabs, const OSUTF8CHAR *uri) |
| This function returns the current number of entries in the prefix string table partition identified by the given URI. | |
| EXTERNEXI OSUINT32 | rtEXIDecStrTabsAddLocalName (OSCTXT *pctxt, OSEXIDecStringTables *pstrtabs, const OSUTF8CHAR *uri, const OSUTF8CHAR *name) |
| This function adds the given local name to the local name table partition identified by the given URI. | |
| EXTERNEXI const OSUTF8CHAR * | rtEXIDecStrTabsGetLocalName (OSEXIDecStringTables *pstrtabs, const OSUTF8CHAR *uri, OSUINT32 index) |
| This function will get the compact identifier of the given localName from the localName string table partition identified by the given URI. | |
| EXTERNEXI OSUINT32 | rtEXIDecStrTabsGetLocalNameTableSize (OSEXIDecStringTables *pstrtabs, const OSUTF8CHAR *uri) |
| This function returns the current number of entries in the localName string table partition identified by the given URI. | |
| EXTERNEXI OSUINT32 | rtEXIDecStrTabsAddLocalValue (OSCTXT *pctxt, OSEXIDecStringTables *pstrtabs, const OSXMLFullQName *qname, const OSUTF8CHAR *value) |
| This function adds the given local value to the local value table partition identified by the given QName. | |
| EXTERNEXI const OSUTF8CHAR * | rtEXIDecStrTabsGetLocalValue (OSEXIDecStringTables *pstrtabs, const OSXMLFullQName *qname, OSUINT32 index) |
| This function will get the compact identifier of the given local value from the local value string table partition identified by the given QName. | |
| EXTERNEXI OSUINT32 | rtEXIDecStrTabsGetLocalValueTableSize (OSEXIDecStringTables *pstrtabs, const OSXMLFullQName *qname) |
| This function returns the current number of entries in the local value string table partition identified by the given QName. | |
| EXTERNEXI OSUINT32 | rtEXIDecStrTabsAddGlobalValue (OSCTXT *pctxt, OSEXIDecStringTables *pstrtabs, const OSUTF8CHAR *value) |
| This function will add a string value to the global value string table partition. | |
| EXTERNEXI const OSUTF8CHAR * | rtEXIDecStrTabsGetGlobalValue (OSEXIDecStringTables *pstrtabs, OSUINT32 index) |
| This function will get the compact identifier of the given string value from the global value string table partition. | |
| EXTERNEXI OSUINT32 | rtEXIDecStrTabsGetGlobalValueTableSize (OSEXIDecStringTables *pstrtabs) |
| This function returns the current number of entries in the global value string table partition. | |
Function Documentation
|
||||||||||||||||||||||||||||
|
This function adds a transition between two states. The transition is defined by a pair of states, and event and event code.
|
|
||||||||||||||||
|
Decodes the attribute at the current position in the decode stream. This function is called when the application receives an AT event to get the attribute data.
|
|
||||||||||||||||||||
|
This function advances the decoder automaton based on event code, adding new transitions if Dynamic transitions for CH are also added according to the spec.
|
|
||||||||||||||||||||||||
|
This function decodes an XML document type declaration (DTD).
|
|
|
This functions returns an automaton that accepts the built-in document grammar. This grammar is not extensible, so all the event codes created are immutable.
|
|
||||||||||||
|
This function returns an automaton that accepts the built-in element grammar.
The
|
|
|
This functions checks for additonal events in the decode stream.
|
|
||||||||||||
|
Returns the local name associated with the current event. For event type SE and AT, it returns the local name of the element and attribute, respectively. For all other event types, the value returned by this method is undefined.
|
|
||||||||||||
|
Returns the namespace associated with the current event. For event type SE and AT, it returns the namespace URI of the element and attribute, respectively. For NS, it returns the URI bound to the prefix in the declaration. For all other event types, the value returned by this function is undefined.
|
|
||||||||||||
|
This function allocates and initializes a new string table structure.
|
|
||||||||||||
|
Returns the next Attributes and namespaces are reported as separate events.
|
|
||||||||||||||||
|
Returns the namespace associated with the current event. For event type SE and AT, it returns the namespace URI of the element and attribute, respectively. For NS, it returns the URI bound to the prefix in the declaration. For all other event types, the value returned by this function is undefined.
|
|
||||||||||||||||
|
This function decodes an XML processing instruction (PI).
|
|
||||||||||||
|
Returns the qname associated with the current event. For SE and AT it returns the name of the element and attribute, respectively. For all other event types, the value returned by this method is undefined.
|
|
|
Resets the decoder for decoding a new message instance. The decoder's state after calling this method is identical to that of a newly created instance.
|
|
||||||||||||||||
|
This function adds a string to the given string table. The string is not added if it already exists in the table. Its compact identifier is returned in either case.
|
|
||||||||||||
|
This function clears all strings out of the existing table. Memory for all strings is freed using rtxMemFreePtr.
|
|
||||||||||||
|
This function gets the string at the given index (i.e. compact identifier) in the given string table.
|
|
||||||||||||||||
|
This function initializes the given string table structure.
|
|
||||||||||||||||
|
This function will add a string value to the global value string table partition.
|
|
||||||||||||||||||||
|
This function adds the given local name to the local name table partition identified by the given URI.
|
|
||||||||||||||||||||
|
This function adds the given local value to the local value table partition identified by the given QName.
|
|
||||||||||||||||||||
|
This function adds the given prefix to the prefix table partition identified by the given URI.
|
|
||||||||||||||||
|
This function will add a URI to the URI string table partition.
|
|
||||||||||||
|
This function clears all EXI string table partitions.
|
|
||||||||||||
|
This function will get the compact identifier of the given string value from the global value string table partition.
|
|
|
This function returns the current number of entries in the global value string table partition.
|
|
||||||||||||||||
|
This function will get the compact identifier of the given localName from the localName string table partition identified by the given URI.
|
|
||||||||||||
|
This function returns the current number of entries in the localName string table partition identified by the given URI.
|
|
||||||||||||||||
|
This function will get the compact identifier of the given local value from the local value string table partition identified by the given QName.
|
|
||||||||||||
|
This function returns the current number of entries in the local value string table partition identified by the given QName.
|
|
||||||||||||||||
|
This function will get the compact identifier of the given prefix from the prefix string table partition identified by the given URI.
|
|
||||||||||||
|
This function returns the current number of entries in the prefix string table partition identified by the given URI.
|
|
||||||||||||
|
This function will get the compact identifier of the given URI from the URI string table partition.
|
|
|
This function returns the current number of entries in the URI string table partition.
|
|
||||||||||||
|
This function initializes all EXI string table partitions.
|
|
||||||||||||||||
|
Returns the value associated with the current event. For character (CH) and comment (CM), it returns the corresponding characters. For attribute (AT) it returns the attribute value. For entity reference (ER), it returns the entity's name. For all other event types, the value returned by this method is undefined.
|
|
|
Returns the length of the string returned by
|
|
||||||||||||||||||||
|
Similar to
|
|
||||||||||||
|
This function decodes an unsigned integer value.
|
|
||||||||||||||||
|
This function reads the given number of characters from the decode stream and creates a UTF-8 string.
|
|
||||||||||||
|
This function decodes a UTF-8 string value.
|
