rtEXIEncoder.h File Reference
EXI low-level C encode functions. More...
#include "rtexisrc/osrtexi.h"
Go to the source code of this file.
Defines | |
| #define | rtEXIEncEventCode1(pctxt, name, part1, nbits1) rtEXIEncEventCode (pctxt, name, part1, -1, -1, nbits1, 0, 0) |
| #define | rtEXIEncEventCode2(pctxt, name, part1, part2, nbits1, nbits2) rtEXIEncEventCode (pctxt, name, part1, part2, -1, nbits1, nbits2, 0) |
| #define | RTEXIENCCHEVENT(pctxt, encfunc, value, stat) |
Functions | |
| EXTERNEXI int | rtEXIEncAttribute (OSCTXT *pctxt, const OSUTF8CHAR *prefix, const OSUTF8CHAR *namespaceURI, const OSUTF8CHAR *localName, const OSUTF8CHAR *value) |
| This function writes an attribute in the current element. | |
| EXTERNEXI int | rtEXIEncBinary (OSCTXT *pctxt, OSUINT32 nocts, const OSOCTET *value) |
| This function encodes a binary (OCTET) string value. | |
| EXTERNEXI int | rtEXIEncBoolValue (OSCTXT *pctxt, OSBOOL value) |
| This function encodes a boolean value. | |
| EXTERNEXI int | rtEXIEncComment (OSCTXT *pctxt, const OSUTF8CHAR *data) |
| This function encode an XML comment. | |
| EXTERNEXI int | rtEXIEncCharacters (OSCTXT *pctxt, const OSUTF8CHAR *text) |
| This function encodes a string of characters. | |
| EXTERNEXI int | rtEXIEncCharArray (OSCTXT *pctxt, const OSUTF8CHAR *text, OSUINT32 nbytes) |
| This function encodes a given number of bytes from a character array or string. | |
| EXTERNEXI int | rtEXIEncDate (OSCTXT *pctxt, const OSNumDateTime *pvalue) |
| This function encodes a numeric date value. | |
| EXTERNEXI int | rtEXIEncDateString (OSCTXT *pctxt, const OSUTF8CHAR *pvalue) |
| This function encodes a date string value. | |
| EXTERNEXI int | rtEXIEncDTD (OSCTXT *pctxt, const OSUTF8CHAR *name, const OSUTF8CHAR *publix, const OSUTF8CHAR *system, const OSUTF8CHAR *text) |
| This function encodes a DTD declaration. | |
| EXTERNEXI int | rtEXIEncEndDocument (OSCTXT *pctxt) |
| This function writes an end document event. | |
| EXTERNEXI int | rtEXIEncEndElement (OSCTXT *pctxt) |
| This function writes an end element event. | |
| EXTERNEXI int | rtEXIEncEntityRef (OSCTXT *pctxt, const OSUTF8CHAR *name) |
| This function writes an XML entity reference. | |
| EXTERNEXI int | rtEXIEncEventCode (OSCTXT *pctxt, const char *name, OSINT32 part1, OSINT32 part2, OSINT32 part3, OSUINT32 nbits1, OSUINT32 nbits2, OSUINT32 nbits3) |
| This function writes an event code using the given bit field sizes. | |
| EXTERNEXI int | rtEXIEncIntCHEvent (OSCTXT *pctxt, OSINT32 value) |
| This function encodes a variable of the XSD integer type as a CH content event. | |
| EXTERNEXI int | rtEXIEncIntElem (OSCTXT *pctxt, OSINT32 value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a complete XML element (<tag>content</tag>) in which the content is a signed integer. | |
| EXTERNEXI int | rtEXIEncIntValue (OSCTXT *pctxt, OSINT32 value) |
| This function encodes a variable of the XSD integer type. | |
| EXTERNEXI int | rtEXIEncNBitUIntValue (OSCTXT *pctxt, OSUINT32 value, OSUINT32 nbits) |
| This function encodes an unsigned integer value in a bit field of the given width. | |
| EXTERNEXI int | rtEXIEncNamespace (OSCTXT *pctxt, const OSUTF8CHAR *prefix, const OSUTF8CHAR *namespaceURI, OSBOOL indicator) |
| This function encodes a namespace declaration. | |
| EXTERNEXI int | rtEXIEncProcessingInstruction (OSCTXT *pctxt, const OSUTF8CHAR *target, const OSUTF8CHAR *data) |
| This function writes an XML processing instruction. | |
| EXTERNEXI int | rtEXIEncStartDocument (OSCTXT *pctxt) |
| This function writes a start document event. | |
| EXTERNEXI int | rtEXIEncStartElement (OSCTXT *pctxt, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function writes a start element event. | |
| EXTERNEXI int | rtEXIEncString (OSCTXT *pctxt, const OSUTF8CHAR *value, const OSXMLFullQName *pqname) |
| This function encodes a character string value. | |
| EXTERNEXI int | rtEXIEncStringCHEvent (OSCTXT *pctxt, const OSUTF8CHAR *value, const OSXMLFullQName *pqname) |
| This function encodes a character string value as a CH content event. | |
| EXTERNEXI int | rtEXIEncStringElem (OSCTXT *pctxt, OSXMLSTRING *pxmlstr, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a complete XML element (<tag>content</tag>) in which the content is a string. | |
| EXTERNEXI int | rtEXIEncUIntCHEvent (OSCTXT *pctxt, OSUINT32 value) |
| This function encodes a variable of the XSD unsigned integer type as a CH content event. | |
| EXTERNEXI int | rtEXIEncUIntElem (OSCTXT *pctxt, OSUINT32 value, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a complete XML element (<tag>content</tag>) in which the content is an unsigned integer. | |
| EXTERNEXI int | rtEXIEncUIntValue (OSCTXT *pctxt, OSUINT32 value) |
| This function encodes an unsigned integer value. | |
| EXTERNEXI int | rtEXIEncUTF8Str (OSCTXT *pctxt, const OSUTF8CHAR *value, size_t lengthIncr) |
| This function encodes a UTF-8 character string value. | |
Detailed Description
EXI low-level C encode functions.
Definition in file rtEXIEncoder.h.
Function Documentation
|
||||||||||||||||||||||||
|
This function writes an attribute in the current element.
|
|
||||||||||||||||
|
This function encodes a binary (OCTET) string value.
|
|
||||||||||||
|
This function encodes a boolean value.
|
|
||||||||||||
|
This function encodes a string of characters.
|
|
||||||||||||||||
|
This function encodes a given number of bytes from a character array or string. This function may be used from within a SAX characters handler when the string is not null-terminated.
|
|
||||||||||||
|
This function encode an XML comment.
|
|
||||||||||||
|
This function encodes a numeric date value.
|
|
||||||||||||
|
This function encodes a date string value.
|
|
||||||||||||||||||||||||
|
This function encodes a DTD declaration.
|
|
|
This function writes an end document event.
|
|
|
This function writes an end element event.
|
|
||||||||||||
|
This function writes an XML entity reference.
|
|
||||||||||||||||||||||||||||||||||||
|
This function writes an event code using the given bit field sizes.
|
|
||||||||||||
|
This function encodes a variable of the XSD integer type as a CH content event.
|
|
||||||||||||||||||||
|
This function encodes a complete XML element (<tag>content</tag>) in which the content is a signed integer.
|
|
||||||||||||
|
This function encodes a variable of the XSD integer type.
|
|
||||||||||||||||||||
|
This function encodes a namespace declaration. If the "preserve prefixes" option is set to false, nothing is written.
|
|
||||||||||||||||
|
This function encodes an unsigned integer value in a bit field of the given width.
|
|
||||||||||||||||
|
This function writes an XML processing instruction.
|
|
|
This function writes a start document event. This method must be called before writing a document or a fragment.
|
|
||||||||||||||||
|
This function writes a start element event. If this method is called before rtEXIEncStartDocument, then the encoder assumes a fragment is being written.
|
|
||||||||||||||||
|
This function encodes a character string value. It uses the string tables to determine if the actual string value should be encoded or not.
|
|
||||||||||||||||
|
This function encodes a character string value as a CH content event.
|
|
||||||||||||||||||||
|
This function encodes a complete XML element (<tag>content</tag>) in which the content is a string.
|
|
||||||||||||
|
This function encodes a variable of the XSD unsigned integer type as a CH content event.
|
|
||||||||||||||||||||
|
This function encodes a complete XML element (<tag>content</tag>) in which the content is an unsigned integer.
|
|
||||||||||||
|
This function encodes an unsigned integer value.
|
|
||||||||||||||||
|
This function encodes a UTF-8 character string value. It does not use the string tables to determine if the actual string value should be encoded or not (i.e. it directly encodes the content).
|
