gwenhywfar 5.12.0
xmlcmd_gxml_todb.c File Reference
#include "xmlcmd_gxml_todb.h"
#include "xmlcmd_gxml.h"
#include <gwenhywfar/debug.h>
#include <gwenhywfar/text.h>
#include <gwenhywfar/gwendate.h>
#include <ctype.h>
Include dependency graph for xmlcmd_gxml_todb.c:

Go to the source code of this file.

Functions

int _convertAndSetCharValue (GWEN_UNUSED GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode, GWEN_DB_NODE *dbCurrent, const char *value)
static int _convertAndSetCharValue (GWEN_XMLCOMMANDER *cmd, 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_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
static int _handleDbCreateAndEnterGroup (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
static int _handleDbCreateAndEnterTempGroup (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
static int _handleDbSetCharValue (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
static int _handleDbSetCharValue_internal (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode, GWEN_DB_NODE *dbCurrent)
static int _handleDbSetTempCharValue (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
static int _handleXmlEnter (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
static int _handleXmlForEvery (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
static int _handleXmlIfCharDataMatches (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
static int _handleXmlIfHasCharData (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
static int _handleXmlIfNotCharDataMatches (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
static int _handleXmlIfNotHasCharData (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
static int _handleXmlIfNotPathExists (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
static int _handleXmlIfPathExists (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
GWEN_XMLCOMMANDERGWEN_XmlCommanderGwenXml_toDb_new (GWEN_XMLNODE *xmlNodeDocument, GWEN_DB_NODE *dbDestination)

Function Documentation

◆ _convertAndSetCharValue() [1/2]

◆ _convertAndSetCharValue() [2/2]

int _convertAndSetCharValue ( GWEN_XMLCOMMANDER * cmd,
GWEN_XMLNODE * xmlNode,
GWEN_DB_NODE * dbCurrent,
const char * value )
static

Referenced by _handleDbSetCharValue_internal().

Here is the caller graph for this function:

◆ _getCharValueByPath()

const char * _getCharValueByPath ( GWEN_XMLNODE * xmlNode,
const char * path,
const char * defValue )
static

◆ _handleChildren_toDb()

◆ _handleDbCreateAndEnterGroup()

int _handleDbCreateAndEnterGroup ( GWEN_XMLCOMMANDER * cmd,
GWEN_XMLNODE * xmlNode )
static

◆ _handleDbCreateAndEnterTempGroup()

◆ _handleDbSetCharValue()

int _handleDbSetCharValue ( GWEN_XMLCOMMANDER * cmd,
GWEN_XMLNODE * xmlNode )
static

Definition at line 540 of file xmlcmd_gxml_todb.c.

References _handleDbSetCharValue_internal(), and GWEN_XmlCommanderGwenXml_GetCurrentDbGroup().

Referenced by _handleChildren_toDb().

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

◆ _handleDbSetCharValue_internal()

◆ _handleDbSetTempCharValue()

int _handleDbSetTempCharValue ( GWEN_XMLCOMMANDER * cmd,
GWEN_XMLNODE * xmlNode )
static

Definition at line 547 of file xmlcmd_gxml_todb.c.

References _handleDbSetCharValue_internal(), and GWEN_XmlCommanderGwenXml_GetCurrentTempDbGroup().

Referenced by _handleChildren_toDb().

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

◆ _handleXmlEnter()

◆ _handleXmlForEvery()

◆ _handleXmlIfCharDataMatches()

int _handleXmlIfCharDataMatches ( GWEN_XMLCOMMANDER * cmd,
GWEN_XMLNODE * xmlNode )
static

Definition at line 554 of file xmlcmd_gxml_todb.c.

References _getCharValueByPath(), DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Text_ComparePattern(), GWEN_XmlCommander_HandleChildren(), GWEN_XmlCommanderGwenXml_GetCurrentDocNode(), GWEN_XMLNode_GetProperty(), and NULL.

Referenced by _handleChildren_toDb().

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

◆ _handleXmlIfHasCharData()

int _handleXmlIfHasCharData ( GWEN_XMLCOMMANDER * cmd,
GWEN_XMLNODE * xmlNode )
static

Definition at line 628 of file xmlcmd_gxml_todb.c.

References _getCharValueByPath(), DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_XmlCommander_HandleChildren(), GWEN_XmlCommanderGwenXml_GetCurrentDocNode(), GWEN_XMLNode_GetProperty(), and NULL.

Referenced by _handleChildren_toDb().

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

◆ _handleXmlIfNotCharDataMatches()

int _handleXmlIfNotCharDataMatches ( GWEN_XMLCOMMANDER * cmd,
GWEN_XMLNODE * xmlNode )
static

Definition at line 591 of file xmlcmd_gxml_todb.c.

References _getCharValueByPath(), DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Text_ComparePattern(), GWEN_XmlCommander_HandleChildren(), GWEN_XmlCommanderGwenXml_GetCurrentDocNode(), GWEN_XMLNode_GetProperty(), and NULL.

Referenced by _handleChildren_toDb().

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

◆ _handleXmlIfNotHasCharData()

int _handleXmlIfNotHasCharData ( GWEN_XMLCOMMANDER * cmd,
GWEN_XMLNODE * xmlNode )
static

Definition at line 659 of file xmlcmd_gxml_todb.c.

References _getCharValueByPath(), DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_XmlCommander_HandleChildren(), GWEN_XmlCommanderGwenXml_GetCurrentDocNode(), GWEN_XMLNode_GetProperty(), and NULL.

Referenced by _handleChildren_toDb().

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

◆ _handleXmlIfNotPathExists()

int _handleXmlIfNotPathExists ( GWEN_XMLCOMMANDER * cmd,
GWEN_XMLNODE * xmlNode )
static

◆ _handleXmlIfPathExists()

int _handleXmlIfPathExists ( GWEN_XMLCOMMANDER * cmd,
GWEN_XMLNODE * xmlNode )
static

◆ GWEN_XmlCommanderGwenXml_toDb_new()

GWEN_XMLCOMMANDER * GWEN_XmlCommanderGwenXml_toDb_new ( GWEN_XMLNODE * xmlNodeDocument,
GWEN_DB_NODE * dbDestination )

Definition at line 83 of file xmlcmd_gxml_todb.c.

References _handleChildren_toDb(), GWEN_XmlCommander_SetHandleChildrenFn(), and GWEN_XmlCommanderGwenXml_new().

Referenced by GWEN_Xml2Db().

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