|
gwenhywfar 5.14.1
|
#include "xmlcmd_lxml_p.h"#include <gwenhywfar/debug.h>#include <gwenhywfar/text.h>#include <ctype.h>
Go to the source code of this file.
| void _freeData | ( | GWEN_UNUSED void * | bp, |
| void * | p ) |
Definition at line 88 of file xmlcmd_lxml.c.
References GWEN_DB_Group_free(), GWEN_FREE_OBJECT, and GWEN_UNUSED.

|
static |
References _freeData(), _handleXmlPath(), _twoStrings_free(), _twoStrings_fromString(), _twoStrings_new(), and GWENHYWFAR_CB.

|
static |
Definition at line 478 of file xmlcmd_lxml.c.
References DBG_ERROR, DBG_INFO, DBG_VERBOUS, GWEN_LOGDOMAIN, GWEN_PATH_FLAGS_CREATE_GROUP, GWEN_PATH_FLAGS_CREATE_VAR, GWEN_PATH_FLAGS_LAST, GWEN_PATH_FLAGS_NAMEMUSTEXIST, GWEN_PATH_FLAGS_NAMEMUSTNOTEXIST, GWEN_PATH_FLAGS_PATHCREATE, GWEN_PATH_FLAGS_PATHMUSTEXIST, GWEN_PATH_FLAGS_PATHMUSTNOTEXIST, GWEN_PATH_FLAGS_VARIABLE, and NULL.
Referenced by _freeData(), and GWEN_XmlCommanderLibXml_GetXmlNode().

| void _twoStrings_free | ( | GWEN_XMLCMD_LXML_TWOSTRINGS * | ts | ) |
Definition at line 600 of file xmlcmd_lxml.c.
References GWEN_FREE_OBJECT.
Referenced by _freeData(), GWEN_XmlCommanderLibXml_GetXmlCharValueByPath(), and GWEN_XmlCommanderLibXml_SetXmlCharValueByPath().

| GWEN_XMLCMD_LXML_TWOSTRINGS * _twoStrings_fromString | ( | const char * | source, |
| uint8_t | delimiter ) |
Definition at line 617 of file xmlcmd_lxml.c.
References _twoStrings_new(), and GWEN_Text_strndup().
Referenced by _freeData(), GWEN_XmlCommanderLibXml_GetXmlCharValueByPath(), and GWEN_XmlCommanderLibXml_SetXmlCharValueByPath().


| GWEN_XMLCMD_LXML_TWOSTRINGS * _twoStrings_new | ( | ) |
Definition at line 590 of file xmlcmd_lxml.c.
References GWEN_NEW_OBJECT.
Referenced by _freeData(), and _twoStrings_fromString().

| void GWEN_XmlCommanderLibXml_EnterDocNode | ( | GWEN_XMLCOMMANDER * | cmd, |
| xmlNodePtr | xNode ) |
Definition at line 217 of file xmlcmd_lxml.c.
References DBG_ERROR, GWEN_INHERIT_GETDATA, and GWEN_LOGDOMAIN.
Referenced by _handleXmlEnter(), and _handleXmlForEvery().

| xmlNodePtr GWEN_XmlCommanderLibXml_FindFirstElement | ( | xmlNodePtr | parent, |
| const char * | elemName ) |
Definition at line 271 of file xmlcmd_lxml.c.
References NULL.
Referenced by _handleXmlForEvery().

| xmlNodePtr GWEN_XmlCommanderLibXml_FindNextElement | ( | xmlNodePtr | elem, |
| const char * | elemName ) |
Definition at line 290 of file xmlcmd_lxml.c.
References NULL.
Referenced by _handleXmlForEvery().

| GWEN_DB_NODE * GWEN_XmlCommanderLibXml_GetCurrentDbGroup | ( | const GWEN_XMLCOMMANDER * | cmd | ) |
Definition at line 152 of file xmlcmd_lxml.c.
References GWEN_INHERIT_GETDATA.
Referenced by _handleDbCreateAndEnterGroup(), and _handleDbSetCharValue().

| xmlNodePtr GWEN_XmlCommanderLibXml_GetCurrentDocNode | ( | const GWEN_XMLCOMMANDER * | cmd | ) |
Definition at line 113 of file xmlcmd_lxml.c.
References GWEN_INHERIT_GETDATA.
Referenced by _handleDbSetCharValue_internal(), _handleXmlEnter(), _handleXmlForEvery(), _handleXmlIfCharDataMatches(), _handleXmlIfHasCharData(), _handleXmlIfNotCharDataMatches(), _handleXmlIfNotHasCharData(), _handleXmlIfNotPathExists(), and _handleXmlIfPathExists().

| GWEN_DB_NODE * GWEN_XmlCommanderLibXml_GetCurrentTempDbGroup | ( | const GWEN_XMLCOMMANDER * | cmd | ) |
Definition at line 191 of file xmlcmd_lxml.c.
References GWEN_INHERIT_GETDATA.
Referenced by _handleDbCreateAndEnterTempGroup(), _handleDbSetCharValue_internal(), and _handleDbSetTempCharValue().

| GWEN_DB_NODE * GWEN_XmlCommanderLibXml_GetDbRoot | ( | const GWEN_XMLCOMMANDER * | cmd | ) |
Definition at line 139 of file xmlcmd_lxml.c.
References GWEN_INHERIT_GETDATA.
| xmlNodePtr GWEN_XmlCommanderLibXml_GetDocRoot | ( | const GWEN_XMLCOMMANDER * | cmd | ) |
Definition at line 100 of file xmlcmd_lxml.c.
References GWEN_INHERIT_GETDATA.
| int GWEN_XmlCommanderLibXml_GetIntValue | ( | xmlNodePtr | n, |
| const char * | path, | ||
| int | defValue ) |
Definition at line 363 of file xmlcmd_lxml.c.
References GWEN_XmlCommanderLibXml_GetXmlCharValue(), and NULL.

| GWEN_DB_NODE * GWEN_XmlCommanderLibXml_GetTempDbRoot | ( | const GWEN_XMLCOMMANDER * | cmd | ) |
Definition at line 178 of file xmlcmd_lxml.c.
References GWEN_INHERIT_GETDATA.
| const char * GWEN_XmlCommanderLibXml_GetXmlCharValue | ( | xmlNodePtr | n, |
| const char * | path, | ||
| const char * | defValue ) |
Definition at line 327 of file xmlcmd_lxml.c.
References DBG_INFO, GWEN_LOGDOMAIN, GWEN_PATH_FLAGS_NAMEMUSTEXIST, and GWEN_XmlCommanderLibXml_GetXmlNode().
Referenced by GWEN_XmlCommanderLibXml_GetIntValue().


| const char * GWEN_XmlCommanderLibXml_GetXmlCharValueByPath | ( | xmlNodePtr | elem, |
| const char * | path, | ||
| const char * | defValue ) |
Definition at line 378 of file xmlcmd_lxml.c.
References _twoStrings_free(), _twoStrings_fromString(), DBG_INFO, GWEN_LOGDOMAIN, GWEN_PATH_FLAGS_PATHMUSTEXIST, GWEN_XmlCommanderLibXml_GetXmlNode(), and NULL.
Referenced by _handleDbSetCharValue_internal(), _handleXmlIfCharDataMatches(), _handleXmlIfHasCharData(), _handleXmlIfNotCharDataMatches(), and _handleXmlIfNotHasCharData().


| xmlNodePtr GWEN_XmlCommanderLibXml_GetXmlNode | ( | xmlNodePtr | n, |
| const char * | path, | ||
| uint32_t | flags ) |
Definition at line 264 of file xmlcmd_lxml.c.
References _handleXmlPath(), and GWEN_Path_HandleWithIdx().
Referenced by _handleXmlEnter(), _handleXmlIfNotPathExists(), _handleXmlIfPathExists(), GWEN_XmlCommanderLibXml_GetXmlCharValue(), GWEN_XmlCommanderLibXml_GetXmlCharValueByPath(), GWEN_XmlCommanderLibXml_SetXmlCharValue(), and GWEN_XmlCommanderLibXml_SetXmlCharValueByPath().


| void GWEN_XmlCommanderLibXml_LeaveDocNode | ( | GWEN_XMLCOMMANDER * | cmd | ) |
Definition at line 240 of file xmlcmd_lxml.c.
References DBG_ERROR, GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, and NULL.
Referenced by _handleXmlEnter(), and _handleXmlForEvery().

| GWEN_XMLCOMMANDER * GWEN_XmlCommanderLibXml_new | ( | xmlNodePtr | documentRoot, |
| GWEN_DB_NODE * | dbRoot ) |
Definition at line 66 of file xmlcmd_lxml.c.
References _freeData(), GWEN_DB_Group_new(), GWEN_INHERIT_SETDATA, GWEN_NEW_OBJECT, GWEN_XmlCommander_new(), and GWEN_XmlCommanderLibXml_new().
Referenced by GWEN_XmlCommanderLibXml_new(), and GWEN_XmlCommanderLibXml_toDb_new().


| void GWEN_XmlCommanderLibXml_SetCurrentDbGroup | ( | GWEN_XMLCOMMANDER * | cmd, |
| GWEN_DB_NODE * | db ) |
Definition at line 165 of file xmlcmd_lxml.c.
References GWEN_INHERIT_GETDATA.
Referenced by _handleDbCreateAndEnterGroup().

| void GWEN_XmlCommanderLibXml_SetCurrentDocNode | ( | GWEN_XMLCOMMANDER * | cmd, |
| xmlNodePtr | n ) |
Definition at line 126 of file xmlcmd_lxml.c.
References GWEN_INHERIT_GETDATA.
| void GWEN_XmlCommanderLibXml_SetCurrentTempDbGroup | ( | GWEN_XMLCOMMANDER * | cmd, |
| GWEN_DB_NODE * | db ) |
Definition at line 204 of file xmlcmd_lxml.c.
References GWEN_INHERIT_GETDATA.
Referenced by _handleDbCreateAndEnterTempGroup().

| int GWEN_XmlCommanderLibXml_SetIntValue | ( | xmlNodePtr | n, |
| const char * | path, | ||
| int | value ) |
Definition at line 352 of file xmlcmd_lxml.c.
References GWEN_XmlCommanderLibXml_SetXmlCharValue().

| int GWEN_XmlCommanderLibXml_SetXmlCharValue | ( | xmlNodePtr | n, |
| const char * | path, | ||
| const char * | value ) |
Definition at line 310 of file xmlcmd_lxml.c.
References DBG_INFO, GWEN_ERROR_GENERIC, GWEN_LOGDOMAIN, and GWEN_XmlCommanderLibXml_GetXmlNode().
Referenced by GWEN_XmlCommanderLibXml_SetIntValue().


| void GWEN_XmlCommanderLibXml_SetXmlCharValueByPath | ( | xmlNodePtr | elem, |
| const char * | path, | ||
| const char * | value ) |
Definition at line 434 of file xmlcmd_lxml.c.
References _twoStrings_free(), _twoStrings_fromString(), and GWEN_XmlCommanderLibXml_GetXmlNode().
