|
gwenhywfar
5.3.0
|
#include "xml2db_p.h"#include <gwenhywfar/debug.h>#include <gwenhywfar/text.h>#include <gwenhywfar/gwendate.h>#include <ctype.h>
Go to the source code of this file.
Functions | |
| static int | _convertAndSetCharValue (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode, GWEN_DB_NODE *dbCurrent, const char *value) |
| int | _convertAndSetCharValue (GWEN_UNUSED GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode, GWEN_DB_NODE *dbCurrent, const char *value) |
| static const char * | _getCharValueByPath (GWEN_XMLNODE *xmlNode, const char *path, const char *defValue) |
| static int | _handleChildren_toDb (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode) |
| static int | _handleDbCreateAndEnterGroup (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode) |
| static int | _handleDbCreateAndEnterTempGroup (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode) |
| static int | _handleDbSetCharValue (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode) |
| static int | _handleDbSetCharValue_internal (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode, GWEN_DB_NODE *dbCurrent) |
| static int | _handleDbSetTempCharValue (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode) |
| static int | _handleXmlEnter (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode) |
| static int | _handleXmlForEvery (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode) |
| static int | _handleXmlIfCharDataMatches (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode) |
| static int | _handleXmlIfHasCharData (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode) |
| static int | _handleXmlIfNotCharDataMatches (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode) |
| static int | _handleXmlIfNotHasCharData (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode) |
| static int | _handleXmlIfNotPathExists (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode) |
| static int | _handleXmlIfPathExists (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode) |
| int | GWEN_Xml2Db (GWEN_XMLNODE *xmlNodeDocument, GWEN_XMLNODE *xmlNodeSchema, GWEN_DB_NODE *dbDestination) |
|
static |
| int _convertAndSetCharValue | ( | GWEN_UNUSED GWEN_XML2DB_CONTEXT * | ctx, |
| GWEN_XMLNODE * | xmlNode, | ||
| GWEN_DB_NODE * | dbCurrent, | ||
| const char * | value | ||
| ) |
Definition at line 144 of file xml2db_todb.c.
References DBG_ERROR, DBG_INFO, GWEN_Buffer_AppendByte(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_Date_free(), GWEN_Date_fromStringWithTemplate(), GWEN_Date_GetString(), GWEN_DB_DeleteVar(), GWEN_DB_FLAGS_DEFAULT, GWEN_DB_GetCharValue(), GWEN_DB_SetCharValue(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Text_CondenseBuffer(), GWEN_XMLNode_GetIntProperty(), GWEN_XMLNode_GetProperty(), and NULL.

|
static |
Definition at line 103 of file xml2db_todb.c.
References DBG_INFO, GWEN_LOGDOMAIN, GWEN_PATH_FLAGS_PATHMUSTEXIST, GWEN_XMLNode_GetCharValueByPath(), GWEN_XMLNode_GetNodeByXPath(), and GWEN_XMLNode_GetProperty().
Referenced by _handleDbSetCharValue_internal(), _handleXmlIfCharDataMatches(), _handleXmlIfHasCharData(), _handleXmlIfNotCharDataMatches(), and _handleXmlIfNotHasCharData().


|
static |
Definition at line 671 of file xml2db_todb.c.
References _handleDbCreateAndEnterGroup(), _handleDbCreateAndEnterTempGroup(), _handleDbSetCharValue(), _handleDbSetTempCharValue(), _handleXmlEnter(), _handleXmlForEvery(), _handleXmlIfCharDataMatches(), _handleXmlIfHasCharData(), _handleXmlIfNotCharDataMatches(), _handleXmlIfNotHasCharData(), _handleXmlIfNotPathExists(), _handleXmlIfPathExists(), DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_XMLNode_GetData(), GWEN_XMLNode_GetFirstTag(), and GWEN_XMLNode_GetNextTag().
Referenced by GWEN_Xml2Db().


|
static |
Definition at line 332 of file xml2db_todb.c.
References DBG_ERROR, DBG_INFO, GWEN_DB_GetGroup(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_PATH_FLAGS_CREATE_GROUP, GWEN_Xml2Db_Context_HandleChildren(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by _handleChildren_toDb().


|
static |
Definition at line 366 of file xml2db_todb.c.
References DBG_ERROR, DBG_INFO, GWEN_DB_GetGroup(), GWEN_DB_Group_free(), GWEN_DB_UnlinkGroup(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_PATH_FLAGS_CREATE_GROUP, GWEN_Xml2Db_Context_HandleChildren(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by _handleChildren_toDb().


|
static |
Definition at line 466 of file xml2db_todb.c.
References _handleDbSetCharValue_internal().
Referenced by _handleChildren_toDb().


|
static |
Definition at line 405 of file xml2db_todb.c.
References _convertAndSetCharValue(), _getCharValueByPath(), DBG_ERROR, DBG_INFO, GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_DB_ReplaceVars(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_XMLNode_GetProperty(), GWEN_XMLNode_GetXPath(), and NULL.
Referenced by _handleDbSetCharValue(), and _handleDbSetTempCharValue().


|
static |
Definition at line 473 of file xml2db_todb.c.
References _handleDbSetCharValue_internal().
Referenced by _handleChildren_toDb().


|
static |
Definition at line 257 of file xml2db_todb.c.
References DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_PATH_FLAGS_PATHMUSTEXIST, GWEN_Xml2Db_Context_EnterDocNode(), GWEN_Xml2Db_Context_HandleChildren(), GWEN_Xml2Db_Context_LeaveDocNode(), GWEN_XMLNode_GetNodeByXPath(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by _handleChildren_toDb().


|
static |
Definition at line 291 of file xml2db_todb.c.
References DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Xml2Db_Context_EnterDocNode(), GWEN_Xml2Db_Context_HandleChildren(), GWEN_Xml2Db_Context_LeaveDocNode(), GWEN_XMLNode_FindFirstTag(), GWEN_XMLNode_FindNextTag(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by _handleChildren_toDb().


|
static |
Definition at line 480 of file xml2db_todb.c.
References _getCharValueByPath(), DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Text_ComparePattern(), GWEN_Xml2Db_Context_HandleChildren(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by _handleChildren_toDb().


|
static |
Definition at line 554 of file xml2db_todb.c.
References _getCharValueByPath(), DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Xml2Db_Context_HandleChildren(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by _handleChildren_toDb().


|
static |
Definition at line 517 of file xml2db_todb.c.
References _getCharValueByPath(), DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Text_ComparePattern(), GWEN_Xml2Db_Context_HandleChildren(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by _handleChildren_toDb().


|
static |
Definition at line 585 of file xml2db_todb.c.
References _getCharValueByPath(), DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Xml2Db_Context_HandleChildren(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by _handleChildren_toDb().


|
static |
Definition at line 642 of file xml2db_todb.c.
References DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_PATH_FLAGS_PATHMUSTEXIST, GWEN_Xml2Db_Context_HandleChildren(), GWEN_XMLNode_GetNodeByXPath(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by _handleChildren_toDb().


|
static |
Definition at line 613 of file xml2db_todb.c.
References DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_PATH_FLAGS_PATHMUSTEXIST, GWEN_Xml2Db_Context_HandleChildren(), GWEN_XMLNode_GetNodeByXPath(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by _handleChildren_toDb().


| int GWEN_Xml2Db | ( | GWEN_XMLNODE * | xmlNodeDocument, |
| GWEN_XMLNODE * | xmlNodeSchema, | ||
| GWEN_DB_NODE * | dbDestination | ||
| ) |
Definition at line 79 of file xml2db_todb.c.
References _handleChildren_toDb(), DBG_INFO, GWEN_LOGDOMAIN, GWEN_Xml2Db_Context_free(), GWEN_Xml2Db_Context_HandleChildren(), and GWEN_Xml2Db_Context_new().

1.8.14