gwenhywfar  5.3.0
Functions
gwen_parser.h File Reference
#include <gwenhywfar/gwenhywfarapi.h>
#include <gwenhywfar/gwen_parser_element.h>
#include <gwenhywfar/db.h>
Include dependency graph for gwen_parser.h:

Go to the source code of this file.

Functions

GWENHYWFAR_API int GWEN_Parser_CheckTree (const GWEN_PARSER_ELEMENT_TREE *tDefinitions, const GWEN_PARSER_ELEMENT_TREE *tData)
 
GWENHYWFAR_API int GWEN_Parser_ToDbTree (GWEN_PARSER_ELEMENT_TREE *tData, GWEN_DB_NODE *db)
 
GWENHYWFAR_API int GWEN_Parser_UpdateTree (const GWEN_PARSER_ELEMENT_TREE *tDefinitions, GWEN_PARSER_ELEMENT_TREE *tData)
 

Function Documentation

◆ GWEN_Parser_CheckTree()

GWENHYWFAR_API int GWEN_Parser_CheckTree ( const GWEN_PARSER_ELEMENT_TREE *  tDefinitions,
const GWEN_PARSER_ELEMENT_TREE *  tData 
)

Checks all elements of the parser element tree against the definition tree.

Definition at line 147 of file gwen_parser_check.c.

References DBG_DEBUG, GWEN_LOGDOMAIN, and GWEN_Parser__CheckSequence().

Here is the call graph for this function:

◆ GWEN_Parser_ToDbTree()

GWENHYWFAR_API int GWEN_Parser_ToDbTree ( GWEN_PARSER_ELEMENT_TREE *  tData,
GWEN_DB_NODE db 
)

Copies data from the element tree to the given db node using the dbName from the individual parser elements.

Definition at line 66 of file gwen_parser_todb.c.

References DBG_INFO, GWEN_LOGDOMAIN, and GWEN_Parser__toDbElementAndChildren().

Here is the call graph for this function:

◆ GWEN_Parser_UpdateTree()

GWENHYWFAR_API int GWEN_Parser_UpdateTree ( const GWEN_PARSER_ELEMENT_TREE *  tDefinitions,
GWEN_PARSER_ELEMENT_TREE *  tData 
)

Updates all elements of the parser element tree with info from the definition tree. That is, all elements from the data tree get their DbName from their matching definition elements.

Definition at line 152 of file gwen_parser_update.c.

References DBG_DEBUG, GWEN_LOGDOMAIN, and GWEN_Parser__UpdateSequence().

Here is the call graph for this function: