gwenhywfar  5.9.0
Functions
xmlcmd_gxml_fromdb.c File Reference
#include "xmlcmd_gxml_fromdb.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_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_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
 
static int _dbForEvery (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
 
static int _dbIfCharDataMatches (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
 
static int _dbIfHasCharData (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
 
static int _dbIfNotCharDataMatches (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
 
static int _dbIfNotHasCharData (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
 
static int _dbIfNotPathExists (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
 
static int _dbIfPathExists (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
 
static int _handleChildren_fromDb (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
 
static int _setCharValueByPath (GWEN_XMLNODE *xmlNode, const char *path, const char *value)
 
static int _xmlCreateAndEnterElement (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
 
static int _xmlSetCharValue (GWEN_XMLCOMMANDER *cmd, GWEN_XMLNODE *xmlNode)
 
GWEN_XMLCOMMANDERGWEN_XmlCommanderGwenXml_fromDb_new (GWEN_XMLNODE *xmlNodeDestination, GWEN_DB_NODE *dbSource)
 

Function Documentation

int _convertAndSetCharValue ( GWEN_XMLNODE xmlDocNode,
GWEN_XMLNODE xmlSchemaNode,
const char *  value 
)
static
int _dbEnter ( GWEN_XMLCOMMANDER cmd,
GWEN_XMLNODE xmlNode 
)
static
int _dbForEvery ( GWEN_XMLCOMMANDER cmd,
GWEN_XMLNODE xmlNode 
)
static
int _dbIfCharDataMatches ( GWEN_XMLCOMMANDER cmd,
GWEN_XMLNODE xmlNode 
)
static

Definition at line 277 of file xmlcmd_gxml_fromdb.c.

References DBG_ERROR, DBG_INFO, GWEN_DB_GetCharValue(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Text_ComparePattern(), GWEN_XmlCommander_HandleChildren(), GWEN_XmlCommanderGwenXml_GetCurrentDbGroup(), 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:

int _dbIfHasCharData ( GWEN_XMLCOMMANDER cmd,
GWEN_XMLNODE xmlNode 
)
static

Definition at line 347 of file xmlcmd_gxml_fromdb.c.

References DBG_ERROR, DBG_INFO, GWEN_DB_GetCharValue(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_XmlCommander_HandleChildren(), GWEN_XmlCommanderGwenXml_GetCurrentDbGroup(), 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:

int _dbIfNotCharDataMatches ( GWEN_XMLCOMMANDER cmd,
GWEN_XMLNODE xmlNode 
)
static

Definition at line 312 of file xmlcmd_gxml_fromdb.c.

References DBG_ERROR, DBG_INFO, GWEN_DB_GetCharValue(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Text_ComparePattern(), GWEN_XmlCommander_HandleChildren(), GWEN_XmlCommanderGwenXml_GetCurrentDbGroup(), 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:

int _dbIfNotHasCharData ( GWEN_XMLCOMMANDER cmd,
GWEN_XMLNODE xmlNode 
)
static

Definition at line 375 of file xmlcmd_gxml_fromdb.c.

References DBG_ERROR, DBG_INFO, GWEN_DB_GetCharValue(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_XmlCommander_HandleChildren(), GWEN_XmlCommanderGwenXml_GetCurrentDbGroup(), 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:

int _dbIfNotPathExists ( GWEN_XMLCOMMANDER cmd,
GWEN_XMLNODE xmlNode 
)
static

Definition at line 168 of file xmlcmd_gxml_fromdb.c.

References DBG_ERROR, DBG_INFO, GWEN_DB_GetGroup(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_PATH_FLAGS_NAMEMUSTEXIST, GWEN_XmlCommander_HandleChildren(), GWEN_XmlCommanderGwenXml_GetCurrentDbGroup(), 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:

int _dbIfPathExists ( GWEN_XMLCOMMANDER cmd,
GWEN_XMLNODE xmlNode 
)
static

Definition at line 140 of file xmlcmd_gxml_fromdb.c.

References DBG_ERROR, DBG_INFO, GWEN_DB_GetGroup(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_PATH_FLAGS_NAMEMUSTEXIST, GWEN_XmlCommander_HandleChildren(), GWEN_XmlCommanderGwenXml_GetCurrentDbGroup(), 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:

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

Definition at line 499 of file xmlcmd_gxml_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:

int _xmlCreateAndEnterElement ( GWEN_XMLCOMMANDER cmd,
GWEN_XMLNODE xmlNode 
)
static
int _xmlSetCharValue ( GWEN_XMLCOMMANDER cmd,
GWEN_XMLNODE xmlNode 
)
static
GWEN_XMLCOMMANDER* GWEN_XmlCommanderGwenXml_fromDb_new ( GWEN_XMLNODE xmlNodeDestination,
GWEN_DB_NODE dbSource 
)

Definition at line 76 of file xmlcmd_gxml_fromdb.c.

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

Referenced by GWEN_XmlFromDb().

Here is the call graph for this function:

Here is the caller graph for this function: