gwenhywfar  4.18.0
Functions
gwen_parser.h File Reference
#include <gwenhywfar/gwenhywfarapi.h>
#include <gwenhywfar/gwen_parser_element.h>
#include <gwenhywfar/db.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.

◆ 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.

◆ 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.