|
gwenhywfar
5.10.1
|
#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>
Go to the source code of this file.
|
static |
| int _convertAndSetCharValue | ( | GWEN_UNUSED GWEN_XMLCOMMANDER * | cmd, |
| GWEN_XMLNODE * | xmlNode, | ||
| GWEN_DB_NODE * | dbCurrent, | ||
| const char * | value | ||
| ) |
Definition at line 151 of file xmlcmd_lxml_todb.c.
References DBG_ERROR, DBG_INFO, GWEN_Buffer_AppendByte(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_Date_free(), GWEN_Date_fromStringWithTemplate(), GWEN_Date_GetString(), GWEN_DB_DeleteVar(), GWEN_DB_FLAGS_DEFAULT, GWEN_DB_GetCharValue(), GWEN_DB_SetCharValue(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Text_CondenseBuffer(), GWEN_XMLNode_GetIntProperty(), GWEN_XMLNode_GetProperty(), and NULL.

|
static |
Definition at line 94 of file xmlcmd_lxml_todb.c.
References _handleDbCreateAndEnterGroup(), _handleDbCreateAndEnterTempGroup(), _handleDbSetCharValue(), _handleDbSetTempCharValue(), _handleXmlEnter(), _handleXmlForEvery(), _handleXmlIfCharDataMatches(), _handleXmlIfHasCharData(), _handleXmlIfNotCharDataMatches(), _handleXmlIfNotHasCharData(), _handleXmlIfNotPathExists(), _handleXmlIfPathExists(), DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_XMLNode_GetData(), GWEN_XMLNode_GetFirstTag(), and GWEN_XMLNode_GetNextTag().
Referenced by GWEN_XmlCommanderLibXml_toDb_new().


|
static |
Definition at line 338 of file xmlcmd_lxml_todb.c.
References DBG_ERROR, DBG_INFO, GWEN_DB_GetGroup(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_PATH_FLAGS_CREATE_GROUP, GWEN_XmlCommander_HandleChildren(), GWEN_XmlCommanderLibXml_GetCurrentDbGroup(), GWEN_XmlCommanderLibXml_SetCurrentDbGroup(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by _handleChildren_toDb().


|
static |
Definition at line 372 of file xmlcmd_lxml_todb.c.
References DBG_ERROR, DBG_INFO, GWEN_DB_GetGroup(), GWEN_DB_Group_free(), GWEN_DB_UnlinkGroup(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_PATH_FLAGS_CREATE_GROUP, GWEN_XmlCommander_HandleChildren(), GWEN_XmlCommanderLibXml_GetCurrentTempDbGroup(), GWEN_XmlCommanderLibXml_SetCurrentTempDbGroup(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by _handleChildren_toDb().


|
static |
Definition at line 458 of file xmlcmd_lxml_todb.c.
References _handleDbSetCharValue_internal(), and GWEN_XmlCommanderLibXml_GetCurrentDbGroup().
Referenced by _handleChildren_toDb().


|
static |
Definition at line 412 of file xmlcmd_lxml_todb.c.
References _convertAndSetCharValue(), DBG_ERROR, DBG_INFO, GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_DB_ReplaceVars(), GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_XmlCommanderLibXml_GetCurrentDocNode(), GWEN_XmlCommanderLibXml_GetCurrentTempDbGroup(), GWEN_XmlCommanderLibXml_GetXmlCharValueByPath(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by _handleDbSetCharValue(), and _handleDbSetTempCharValue().


|
static |
Definition at line 465 of file xmlcmd_lxml_todb.c.
References _handleDbSetCharValue_internal(), and GWEN_XmlCommanderLibXml_GetCurrentTempDbGroup().
Referenced by _handleChildren_toDb().


|
static |
Definition at line 264 of file xmlcmd_lxml_todb.c.
References DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_PATH_FLAGS_PATHMUSTEXIST, GWEN_XmlCommander_HandleChildren(), GWEN_XmlCommanderLibXml_EnterDocNode(), GWEN_XmlCommanderLibXml_GetCurrentDocNode(), GWEN_XmlCommanderLibXml_GetXmlNode(), GWEN_XmlCommanderLibXml_LeaveDocNode(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by _handleChildren_toDb().


|
static |
Definition at line 298 of file xmlcmd_lxml_todb.c.
References DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_XmlCommander_HandleChildren(), GWEN_XmlCommanderLibXml_EnterDocNode(), GWEN_XmlCommanderLibXml_FindFirstElement(), GWEN_XmlCommanderLibXml_FindNextElement(), GWEN_XmlCommanderLibXml_GetCurrentDocNode(), GWEN_XmlCommanderLibXml_LeaveDocNode(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by _handleChildren_toDb().


|
static |
Definition at line 472 of file xmlcmd_lxml_todb.c.
References DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Text_ComparePattern(), GWEN_XmlCommander_HandleChildren(), GWEN_XmlCommanderLibXml_GetCurrentDocNode(), GWEN_XmlCommanderLibXml_GetXmlCharValueByPath(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by _handleChildren_toDb().


|
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().


|
static |
Definition at line 509 of file xmlcmd_lxml_todb.c.
References DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Text_ComparePattern(), GWEN_XmlCommander_HandleChildren(), GWEN_XmlCommanderLibXml_GetCurrentDocNode(), GWEN_XmlCommanderLibXml_GetXmlCharValueByPath(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by _handleChildren_toDb().


|
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().


|
static |
Definition at line 634 of file xmlcmd_lxml_todb.c.
References DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_PATH_FLAGS_PATHMUSTEXIST, GWEN_XmlCommander_HandleChildren(), GWEN_XmlCommanderLibXml_GetCurrentDocNode(), GWEN_XmlCommanderLibXml_GetXmlNode(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by _handleChildren_toDb().


|
static |
Definition at line 605 of file xmlcmd_lxml_todb.c.
References DBG_ERROR, DBG_INFO, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_PATH_FLAGS_PATHMUSTEXIST, GWEN_XmlCommander_HandleChildren(), GWEN_XmlCommanderLibXml_GetCurrentDocNode(), GWEN_XmlCommanderLibXml_GetXmlNode(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by _handleChildren_toDb().


| 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().

1.8.14