Main Page | Modules | File List | Globals

xaint.h File Reference


Detailed Description

The primary header for C source files.

Definition in file xaint.h.

Go to the source code of this file.

Defines

#define XAINT_API
#define XAINT_MAJOR_VERSION   1
#define XAINT_MINOR_VERSION   0
#define XAINT_MICRO_VERSION   5

Typedefs

typedef unsigned long XaintType
typedef unsigned char XaintChar
typedef unsigned long XaintBool
typedef unsigned long XaintNum
typedef unsigned long XaintErr
typedef void * XaintUnknown
typedef unsigned char UTF8Char
typedef unsigned long UCS4Char
typedef XaintParser_type XaintParser
typedef void(* XaintParserEventFunc )(XaintParser *xaintpr, XaintChar *data, XaintType type)
typedef void(* XaintParserDataRequestFunc )(XaintParser *xaintpr)
typedef void(* XaintParserOnDelete )(XaintParser *xaintpr)
typedef XaintStream_type XaintStream
typedef void(* XaintStreamPairEvent )(XaintStream *xaintst, XaintChar *key, XaintChar *value, XaintChar *ws, XaintType type)
typedef void(* XaintStreamWhitespaceEvent )(XaintStream *xaintst, XaintChar *data)
typedef void(* XaintStreamPragmaEvent )(XaintStream *xaintst, XaintChar *data)
typedef void(* XaintStreamCommentEvent )(XaintStream *xaintst, XaintChar *data)
typedef void(* XaintStreamDataRequest )(XaintStream *xaintst)
typedef void(* XaintStreamOnDelete )(XaintStream *xaint)
typedef XaintTree_type XaintTree
typedef XaintElement_type XaintElement
typedef XaintBool(* XaintTreeDataEvent )(XaintTree *xainttr, XaintUnknown data, XaintNum size, XaintBool finished)
typedef void(* XaintTreeDataRequest )(XaintTree *xainttr)
typedef void(* XaintTreeOnDelete )(XaintTree *xaint)
typedef void(* XaintElementOnDelete )(XaintElement *element)

Enumerations

enum  XaintError_enum { XAINT_ERR_NIL = 0, XAINT_ERR_OOM = 1, XAINT_ERR_TOK = 2, XAINT_ERR_FIL = 3 }
enum  XaintType_enum {
  XAINT_TYPE_LIST = '(', XAINT_TYPE_SLIST = '(', XAINT_TYPE_ELIST = ')', XAINT_TYPE_SNAME = '[',
  XAINT_TYPE_NAME = ']', XAINT_TYPE_ENAME = ']', XAINT_TYPE_STRING = '\"', XAINT_TYPE_COMMENT = '*',
  XAINT_TYPE_PRAGMA = '?', XAINT_TYPE_WS = ' ', XAINT_TYPE_TREE = 'T'
}
enum  XaintBool_enum { XAINT_FALSE = 0, XAINT_TRUE = 1 }

Functions

XAINT_API void * Xaint_malloc (XaintNum size)
XAINT_API void * Xaint_realloc (void *ptr, XaintNum size)
XAINT_API void Xaint_free (void *ptr)
XAINT_API UCS4CharCreateUCS4String (UTF8Char *string)
XAINT_API UTF8CharCreateUTF8String (UCS4Char *string)
XAINT_API void FreeUTF8String (UTF8Char *string)
XAINT_API void FreeUCS4String (UCS4Char *string)
XAINT_API XaintParserXaintParser_new (void)
XAINT_API void XaintParser_delete (XaintParser *xaintpr)
XAINT_API void XaintParser_setEvent (XaintParser *xaintpr, XaintParserEventFunc event)
XAINT_API XaintParserEventFunc XaintParser_getEvent (XaintParser *xaintpr)
XAINT_API void XaintParser_setDataRequest (XaintParser *xaintpr, XaintParserDataRequestFunc dataRequest)
XAINT_API XaintParserDataRequestFunc XaintParser_getDataRequest (XaintParser *xaintpr)
XAINT_API void XaintParser_setUserData (XaintParser *xaintpr, XaintUnknown userData)
XAINT_API XaintUnknown XaintParser_getUserData (XaintParser *xaintpr)
XAINT_API XaintErr XaintParser_getLastError (XaintParser *xaintpr)
XAINT_API XaintNum XaintParser_getRowNum (XaintParser *xaintpr)
XAINT_API XaintNum XaintParser_getColNum (XaintParser *xaintpr)
XAINT_API void XaintParser_feedData (XaintParser *xaintpr, XaintChar *data, XaintNum size)
XAINT_API XaintBool XaintParser_parse (XaintParser *xaintpr)
XAINT_API XaintBool XaintParser_parseString (XaintParser *xaintpr, XaintChar *string)
XAINT_API void XaintParser_INTERNAL_oom (XaintParser *xaintpr, int v)
XAINT_API void XaintParser_INTERNAL_set_lastError (XaintParser *xaintpr, XaintNum lastError)
XAINT_API XaintParserOnDelete XaintParser_getOnDelete (XaintParser *xaintpr)
XAINT_API void XaintParser_setOnDelete (XaintParser *xaintpr, XaintParserOnDelete OnDelete)
XAINT_API void XaintParser_setClassInstance (XaintParser *xaintpr, XaintUnknown ClassInstance)
XAINT_API XaintUnknown XaintParser_getClassInstance (XaintParser *xaintpr)
XaintStream * XaintStream_new (void)
XAINT_API void XaintStream_delete (XaintStream *xaintst)
XAINT_API void XaintStream_setStoreRecordNames (XaintStream *xaintst, XaintBool storeRecordNames)
XAINT_API XaintBool XaintStream_getStoreRecordNames (XaintStream *xaintst)
XAINT_API XaintCharXaintStream_getRecordName (XaintStream *xaintst)
XAINT_API void XaintStream_setPairEvent (XaintStream *xaintst, XaintStreamPairEvent event)
XAINT_API XaintStreamPairEvent XaintStream_getPairEvent (XaintStream *xaintst)
XAINT_API void XaintStream_setWhitespaceEvent (XaintStream *xaintst, XaintStreamWhitespaceEvent event)
XAINT_API XaintStreamWhitespaceEvent XaintStream_getWhitespaceEvent (XaintStream *xaintst)
XAINT_API void XaintStream_setPragmaEvent (XaintStream *xaintst, XaintStreamPragmaEvent event)
XAINT_API XaintStreamPragmaEvent XaintStream_getPragmaEvent (XaintStream *xaintst)
XAINT_API void XaintStream_setCommentEvent (XaintStream *xaintst, XaintStreamCommentEvent event)
XAINT_API XaintStreamCommentEvent XaintStream_getCommentEvent (XaintStream *xaintst)
XAINT_API void XaintStream_setDataRequest (XaintStream *xaintst, XaintStreamDataRequest dataRequest)
XAINT_API XaintStreamDataRequest XaintStream_getDataRequest (XaintStream *xaintst)
XAINT_API void XaintStream_setUserData (XaintStream *xaintst, XaintUnknown userData)
XAINT_API XaintUnknown XaintStream_getUserData (XaintStream *xaintst)
XAINT_API XaintErr XaintStream_getLastError (XaintStream *xaintst)
XAINT_API XaintNum XaintStream_getRowNum (XaintStream *xaintst)
XAINT_API XaintNum XaintStream_getColNum (XaintStream *xaintst)
XAINT_API void XaintStream_feedData (XaintStream *xaintst, XaintChar *data, XaintNum size)
XAINT_API XaintBool XaintStream_parse (XaintStream *xaintst)
XAINT_API XaintBool XaintStream_parseString (XaintStream *xaintst, XaintChar *string)
XAINT_API XaintParserXaintStream_INTERNAL_get_xaintpr (XaintStream *xaintst)
XAINT_API XaintStreamOnDelete XaintStream_getOnDelete (XaintStream *xaintst)
XAINT_API void XaintStream_setOnDelete (XaintStream *xaintst, XaintStreamOnDelete onDelete)
XAINT_API void XaintStream_setClassInstance (XaintStream *xaintst, XaintUnknown ClassInstance)
XAINT_API XaintUnknown XaintStream_getClassInstance (XaintStream *xaintst)
XAINT_API XaintTreeXaintTree_new (void)
XAINT_API void XaintTree_delete (XaintTree *xainttr)
XAINT_API void XaintTree_setUseBOM (XaintTree *xainttr, XaintBool useBOM)
XAINT_API XaintBool XaintTree_getUseBOM (XaintTree *xainttr)
XAINT_API void XaintTree_setPath (XaintTree *xainttr, XaintChar *path)
XAINT_API XaintCharXaintTree_getPath (XaintTree *xainttr)
XAINT_API void XaintTree_setUserData (XaintTree *cametr, XaintUnknown userData)
XAINT_API XaintUnknown XaintTree_getUserData (XaintTree *xainttr)
XAINT_API XaintErr XaintTree_getLastError (XaintTree *xainttr)
XAINT_API XaintNum XaintTree_getRowNum (XaintTree *xainttr)
XAINT_API XaintNum XaintTree_getColNum (XaintTree *xainttr)
XAINT_API XaintElementXaintTree_getRoot (XaintTree *xainttr)
XAINT_API XaintBool XaintTree_load (XaintTree *xainttr, XaintChar *path)
XAINT_API XaintBool XaintTree_parse (XaintTree *xainttr)
XAINT_API XaintBool XaintTree_parseString (XaintTree *xainttr, XaintChar *string)
XAINT_API XaintBool XaintTree_save (XaintTree *xainttr)
XAINT_API XaintCharXaintTree_saveToMemory (XaintTree *xainttr)
XAINT_API XaintBool XaintTree_saveToEvent (XaintTree *xainttr, XaintTreeDataEvent event)
XAINT_API void XaintTree_setDataRequest (XaintTree *xainttr, XaintTreeDataRequest dataRequest)
XAINT_API void XaintTree_feedData (XaintTree *xainttr, XaintUnknown data, XaintNum size)
XAINT_API XaintBool XaintTree_setAutoWS (XaintTree *xainttr, XaintBool autoWS, XaintChar *lineBreak, XaintChar character, XaintNum count)
XAINT_API void XaintTree_deleteAllElements (XaintTree *xainttr)
XAINT_API XaintStream * XaintTree_getXaintStreamInstance (XaintTree *xainttr)
XAINT_API XaintElementXaintElement_new (void)
XAINT_API void XaintElement_delete (XaintElement *element)
XAINT_API XaintType XaintElement_getType (XaintElement *element)
XAINT_API void XaintElement_setType (XaintElement *element, XaintType type)
XAINT_API XaintCharXaintElement_getValue (XaintElement *element)
XAINT_API void XaintElement_setValue (XaintElement *element, XaintChar *value)
XAINT_API XaintCharXaintElement_getName (XaintElement *element)
XAINT_API void XaintElement_setName (XaintElement *element, XaintChar *name)
XAINT_API XaintCharXaintElement_getWS (XaintElement *element)
XAINT_API void XaintElement_setWS (XaintElement *element, XaintChar *ws)
XAINT_API XaintTreeXaintElement_getTree (XaintElement *element)
XAINT_API XaintElementXaintElement_getParent (XaintElement *element)
XAINT_API XaintElementXaintElement_getNext (XaintElement *element)
XAINT_API XaintElementXaintElement_getPrev (XaintElement *element)
XAINT_API XaintElementXaintElement_getChild (XaintElement *element)
XAINT_API XaintNum XaintElement_getNumberOfElements (XaintElement *element)
XAINT_API XaintElementXaintElement_getNextByType (XaintElement *element, XaintType type)
XAINT_API XaintElementXaintElement_getPrevByType (XaintElement *element, XaintType type)
XAINT_API XaintElementXaintElement_getChildByType (XaintElement *element, XaintType type)
XAINT_API XaintNum XaintElement_getNumberOfElementsByType (XaintElement *element, XaintType type)
XAINT_API void XaintElement_setProperty (XaintElement *element, XaintChar *name, XaintChar *value)
XAINT_API XaintCharXaintElement_getProperty (XaintElement *element, XaintChar *name)
XAINT_API XaintBool XaintElement_push (XaintElement *parentElement, XaintElement *newElement)
XAINT_API XaintBool XaintElement_pushBefore (XaintElement *refElement, XaintElement *newElement)
XAINT_API XaintBool XaintElement_pushAfter (XaintElement *refElement, XaintElement *newElement)
XAINT_API XaintBool XaintElement_pop (XaintElement *element)
XAINT_API XaintBool XaintElement_isNomad (XaintElement *element)
XAINT_API XaintBool XaintElement_isAnonymous (XaintElement *element)
XAINT_API XaintBool XaintElement_isEmpty (XaintElement *element)
XAINT_API XaintBool XaintElement_hasProperties (XaintElement *element)
XAINT_API XaintNum XaintElement_numberOfProperties (XaintElement *element)
XaintBool XaintElement_saveToEvent (XaintElement *element, XaintTreeDataEvent event)
XaintCharXaintElement_saveToMemory (XaintElement *element)
XaintBool XaintElement_save (XaintElement *element)
XaintElementXaintElement_copy (XaintElement *element)
XaintTreeXaintElement_formTree (XaintElement *element)
XAINT_API XaintTreeOnDelete XaintTree_getOnDelete (XaintTree *xainttr)
XAINT_API void XaintTree_setOnDelete (XaintTree *xainttr, XaintTreeOnDelete onDelete)
XAINT_API void XaintTree_setClassInstance (XaintTree *xainttr, XaintUnknown ClassInstance)
XAINT_API XaintUnknown XaintTree_getClassInstance (XaintTree *xainttr)
XAINT_API XaintElementOnDelete XaintElement_getOnDelete (XaintElement *element)
XAINT_API void XaintElement_setOnDelete (XaintElement *element, XaintElementOnDelete OnDelete)
XAINT_API void XaintElement_setClassInstance (XaintElement *element, XaintUnknown ClassInstance)
XAINT_API XaintUnknown XaintElement_getClassInstance (XaintElement *element)


Generated on Sun Apr 25 11:36:04 2004 for Xaint by doxygen 1.3.6