gwenhywfar  5.9.0
Functions
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

static int _convertAndSetCharValue (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode, GWEN_DB_NODE *dbCurrent, const char *value)
 
int _convertAndSetCharValue (GWEN_UNUSED 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

static 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:

int _convertAndSetCharValue ( GWEN_UNUSED GWEN_XMLCOMMANDER cmd,
GWEN_XMLNODE xmlNode,
GWEN_DB_NODE dbCurrent,
const char *  value 
)
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

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:

int _handleDbSetCharValue_internal ( GWEN_XMLCOMMANDER cmd,
GWEN_XMLNODE xmlNode,
GWEN_DB_NODE dbCurrent 
)
static
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:

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

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:

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:

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:

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:

int _handleXmlIfNotPathExists ( GWEN_XMLCOMMANDER cmd,
GWEN_XMLNODE xmlNode 
)
static
int _handleXmlIfPathExists ( GWEN_XMLCOMMANDER cmd,
GWEN_XMLNODE xmlNode 
)
static
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: