gwenhywfar  5.3.0
Functions
xml2db_fromdb.c File Reference
#include "xml2db_p.h"
#include <gwenhywfar/debug.h>
#include <gwenhywfar/text.h>
#include <gwenhywfar/gwendate.h>
#include <ctype.h>
Include dependency graph for xml2db_fromdb.c:

Go to the source code of this file.

Functions

static int _convertAndSetCharValue (GWEN_XMLNODE *xmlDocNode, GWEN_XMLNODE *xmlSchemaNode, const char *value)
 
static int _dbEnter (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode)
 
static int _dbForEvery (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode)
 
static int _dbIfCharDataMatches (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode)
 
static int _dbIfHasCharData (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode)
 
static int _dbIfNotCharDataMatches (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode)
 
static int _dbIfNotHasCharData (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode)
 
static int _dbIfNotPathExists (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode)
 
static int _dbIfPathExists (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode)
 
static int _handleChildren_fromDb (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode)
 
static int _setCharValueByPath (GWEN_XMLNODE *xmlNode, const char *path, const char *value)
 
static int _xmlCreateAndEnterElement (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode)
 
static int _xmlSetCharValue (GWEN_XML2DB_CONTEXT *ctx, GWEN_XMLNODE *xmlNode)
 
int GWEN_XmlFromDb (GWEN_XMLNODE *xmlNodeDestination, GWEN_XMLNODE *xmlNodeSchema, GWEN_DB_NODE *dbSource)
 

Function Documentation

◆ _convertAndSetCharValue()

int _convertAndSetCharValue ( GWEN_XMLNODE xmlDocNode,
GWEN_XMLNODE xmlSchemaNode,
const char *  value 
)
static

◆ _dbEnter()

int _dbEnter ( GWEN_XML2DB_CONTEXT *  ctx,
GWEN_XMLNODE xmlNode 
)
static

Definition at line 204 of file xml2db_fromdb.c.

References DBG_ERROR, DBG_INFO, GWEN_DB_GetGroup(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_PATH_FLAGS_NAMEMUSTEXIST, GWEN_Xml2Db_Context_HandleChildren(), GWEN_XMLNode_GetProperty(), and NULL.

Referenced by _handleChildren_fromDb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _dbForEvery()

int _dbForEvery ( GWEN_XML2DB_CONTEXT *  ctx,
GWEN_XMLNODE xmlNode 
)
static

Definition at line 246 of file xml2db_fromdb.c.

References DBG_ERROR, DBG_INFO, GWEN_DB_FindFirstGroup(), GWEN_DB_FindNextGroup(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Xml2Db_Context_HandleChildren(), GWEN_XMLNode_GetProperty(), and NULL.

Referenced by _handleChildren_fromDb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _dbIfCharDataMatches()

int _dbIfCharDataMatches ( GWEN_XML2DB_CONTEXT *  ctx,
GWEN_XMLNODE xmlNode 
)
static

Definition at line 285 of file xml2db_fromdb.c.

References DBG_ERROR, DBG_INFO, GWEN_DB_GetCharValue(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Text_ComparePattern(), GWEN_Xml2Db_Context_HandleChildren(), GWEN_XMLNode_GetProperty(), and NULL.

Referenced by _handleChildren_fromDb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _dbIfHasCharData()

int _dbIfHasCharData ( GWEN_XML2DB_CONTEXT *  ctx,
GWEN_XMLNODE xmlNode 
)
static

Definition at line 355 of file xml2db_fromdb.c.

References DBG_ERROR, DBG_INFO, GWEN_DB_GetCharValue(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Xml2Db_Context_HandleChildren(), GWEN_XMLNode_GetProperty(), and NULL.

Referenced by _handleChildren_fromDb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _dbIfNotCharDataMatches()

int _dbIfNotCharDataMatches ( GWEN_XML2DB_CONTEXT *  ctx,
GWEN_XMLNODE xmlNode 
)
static

Definition at line 320 of file xml2db_fromdb.c.

References DBG_ERROR, DBG_INFO, GWEN_DB_GetCharValue(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Text_ComparePattern(), GWEN_Xml2Db_Context_HandleChildren(), GWEN_XMLNode_GetProperty(), and NULL.

Referenced by _handleChildren_fromDb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _dbIfNotHasCharData()

int _dbIfNotHasCharData ( GWEN_XML2DB_CONTEXT *  ctx,
GWEN_XMLNODE xmlNode 
)
static

Definition at line 383 of file xml2db_fromdb.c.

References DBG_ERROR, DBG_INFO, GWEN_DB_GetCharValue(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Xml2Db_Context_HandleChildren(), GWEN_XMLNode_GetProperty(), and NULL.

Referenced by _handleChildren_fromDb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _dbIfNotPathExists()

int _dbIfNotPathExists ( GWEN_XML2DB_CONTEXT *  ctx,
GWEN_XMLNODE xmlNode 
)
static

Definition at line 176 of file xml2db_fromdb.c.

References DBG_ERROR, DBG_INFO, GWEN_DB_GetGroup(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_PATH_FLAGS_NAMEMUSTEXIST, GWEN_Xml2Db_Context_HandleChildren(), GWEN_XMLNode_GetProperty(), and NULL.

Referenced by _handleChildren_fromDb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _dbIfPathExists()

int _dbIfPathExists ( GWEN_XML2DB_CONTEXT *  ctx,
GWEN_XMLNODE xmlNode 
)
static

Definition at line 148 of file xml2db_fromdb.c.

References DBG_ERROR, DBG_INFO, GWEN_DB_GetGroup(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_PATH_FLAGS_NAMEMUSTEXIST, GWEN_Xml2Db_Context_HandleChildren(), GWEN_XMLNode_GetProperty(), and NULL.

Referenced by _handleChildren_fromDb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _handleChildren_fromDb()

int _handleChildren_fromDb ( GWEN_XML2DB_CONTEXT *  ctx,
GWEN_XMLNODE xmlNode 
)
static

◆ _setCharValueByPath()

int _setCharValueByPath ( GWEN_XMLNODE xmlNode,
const char *  path,
const char *  value 
)
static

Definition at line 506 of file xml2db_fromdb.c.

References DBG_ERROR, DBG_INFO, GWEN_ERROR_GENERIC, GWEN_LOGDOMAIN, GWEN_XMLNode_GetNodeByXPath(), GWEN_XMLNode_SetCharValueByPath(), and GWEN_XMLNode_SetProperty().

Referenced by _convertAndSetCharValue().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _xmlCreateAndEnterElement()

int _xmlCreateAndEnterElement ( GWEN_XML2DB_CONTEXT *  ctx,
GWEN_XMLNODE xmlNode 
)
static

◆ _xmlSetCharValue()

int _xmlSetCharValue ( GWEN_XML2DB_CONTEXT *  ctx,
GWEN_XMLNODE xmlNode 
)
static

◆ GWEN_XmlFromDb()

int GWEN_XmlFromDb ( GWEN_XMLNODE xmlNodeDestination,
GWEN_XMLNODE xmlNodeSchema,
GWEN_DB_NODE dbSource 
)

Definition at line 73 of file xml2db_fromdb.c.

References _handleChildren_fromDb(), DBG_INFO, GWEN_LOGDOMAIN, GWEN_Xml2Db_Context_free(), GWEN_Xml2Db_Context_HandleChildren(), and GWEN_Xml2Db_Context_new().

Here is the call graph for this function: