gwenhywfar 5.14.1
xmlcmd_lxml_todb.c File Reference
#include "xmlcmd_lxml_todb.h"
#include "xmlcmd_lxml.h"
#include <gwenhywfar/debug.h>
#include <gwenhywfar/text.h>
#include <gwenhywfar/gwendate.h>
#include <gwenhywfar/path.h>
#include <ctype.h>
Include dependency graph for xmlcmd_lxml_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 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_XmlCommanderLibXml_toDb_new (xmlNodePtr 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:

◆ _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 458 of file xmlcmd_lxml_todb.c.

References _handleDbSetCharValue_internal(), and GWEN_XmlCommanderLibXml_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 465 of file xmlcmd_lxml_todb.c.

References _handleDbSetCharValue_internal(), and GWEN_XmlCommanderLibXml_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

◆ _handleXmlIfHasCharData()

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

Definition at line 546 of file xmlcmd_lxml_todb.c.

References DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_XmlCommander_HandleChildren(), GWEN_XmlCommanderLibXml_GetCurrentDocNode(), GWEN_XmlCommanderLibXml_GetXmlCharValueByPath(), 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

◆ _handleXmlIfNotHasCharData()

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

Definition at line 577 of file xmlcmd_lxml_todb.c.

References DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_XmlCommander_HandleChildren(), GWEN_XmlCommanderLibXml_GetCurrentDocNode(), GWEN_XmlCommanderLibXml_GetXmlCharValueByPath(), 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_XmlCommanderLibXml_toDb_new()

GWEN_XMLCOMMANDER * GWEN_XmlCommanderLibXml_toDb_new ( xmlNodePtr xmlNodeDocument,
GWEN_DB_NODE * dbDestination )

Definition at line 82 of file xmlcmd_lxml_todb.c.

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

Here is the call graph for this function: