diff options
author | Stefan Radomski <github@mintwerk.de> | 2017-07-19 14:40:15 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2017-07-19 14:40:15 (GMT) |
commit | 9db80409b3ca048c4b404a43d2c224f374c0090a (patch) | |
tree | 09967edf3ce8cc89c541cdbe342fb60784f559ac /src/uscxml/plugins/datamodel/lua/LuaDOM.cpp.inc | |
parent | 04b04aa6624caf73ffe4fc33f918e7f48b27da37 (diff) | |
download | uscxml-9db80409b3ca048c4b404a43d2c224f374c0090a.zip uscxml-9db80409b3ca048c4b404a43d2c224f374c0090a.tar.gz uscxml-9db80409b3ca048c4b404a43d2c224f374c0090a.tar.bz2 |
DOM with Lua DataModel and dropped V8
Diffstat (limited to 'src/uscxml/plugins/datamodel/lua/LuaDOM.cpp.inc')
-rw-r--r-- | src/uscxml/plugins/datamodel/lua/LuaDOM.cpp.inc | 794 |
1 files changed, 334 insertions, 460 deletions
diff --git a/src/uscxml/plugins/datamodel/lua/LuaDOM.cpp.inc b/src/uscxml/plugins/datamodel/lua/LuaDOM.cpp.inc index 5a256b6..75f30ce 100644 --- a/src/uscxml/plugins/datamodel/lua/LuaDOM.cpp.inc +++ b/src/uscxml/plugins/datamodel/lua/LuaDOM.cpp.inc @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 3.0.8 + * Version 3.0.13 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -107,9 +107,11 @@ template <typename T> T SwigValueInit() { #endif /* exporting methods */ -#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) -# ifndef GCC_HASCLASSVISIBILITY -# define GCC_HASCLASSVISIBILITY +#if defined(__GNUC__) +# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif # endif #endif @@ -659,16 +661,16 @@ SWIG_UnpackData(const char *c, void *ptr, size_t sz) { char d = *(c++); unsigned char uu; if ((d >= '0') && (d <= '9')) - uu = ((d - '0') << 4); + uu = (unsigned char)((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) - uu = ((d - ('a'-10)) << 4); + uu = (unsigned char)((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) - uu |= (d - '0'); + uu |= (unsigned char)(d - '0'); else if ((d >= 'a') && (d <= 'f')) - uu |= (d - ('a'-10)); + uu |= (unsigned char)(d - ('a'-10)); else return (char *) 0; *u = uu; @@ -1547,6 +1549,44 @@ SWIGINTERN int SWIG_Lua_iterate_bases(lua_State *L, swig_type_info * SWIGUNUSED * It returns an error code. Number of function return values is passed inside 'ret'. * first_arg is not used in this function because function always has 2 arguments. */ +SWIGINTERN int SWIG_Lua_class_do_get_item(lua_State *L, swig_type_info *type, int SWIGUNUSED first_arg, int *ret) +{ +/* there should be 2 params passed in + (1) userdata (not the meta table) + (2) string name of the attribute +*/ + int bases_search_result; + int substack_start = lua_gettop(L)-2; + assert(first_arg == substack_start+1); + lua_checkstack(L,5); + assert(lua_isuserdata(L,-2)); /* just in case */ + lua_getmetatable(L,-2); /* get the meta table */ + assert(lua_istable(L,-1)); /* just in case */ + /* NEW: looks for the __getitem() fn + this is a user provided get fn */ + SWIG_Lua_get_table(L,"__getitem"); /* find the __getitem fn */ + if (lua_iscfunction(L,-1)) /* if its there */ + { /* found it so call the fn & return its value */ + lua_pushvalue(L,substack_start+1); /* the userdata */ + lua_pushvalue(L,substack_start+2); /* the parameter */ + lua_call(L,2,1); /* 2 value in (userdata),1 out (result) */ + lua_remove(L,-2); /* stack tidy, remove metatable */ + if(ret) *ret = 1; + return SWIG_OK; + } + lua_pop(L,1); + /* Remove the metatable */ + lua_pop(L,1); + /* Search in base classes */ + bases_search_result = SWIG_Lua_iterate_bases(L,type,substack_start+1,SWIG_Lua_class_do_get_item,ret); + return bases_search_result; /* sorry not known */ +} + + +/* The class.get method helper, performs the lookup of class attributes. + * It returns an error code. Number of function return values is passed inside 'ret'. + * first_arg is not used in this function because function always has 2 arguments. + */ SWIGINTERN int SWIG_Lua_class_do_get(lua_State *L, swig_type_info *type, int SWIGUNUSED first_arg, int *ret) { /* there should be 2 params passed in @@ -1590,19 +1630,6 @@ SWIGINTERN int SWIG_Lua_class_do_get(lua_State *L, swig_type_info *type, int SW return SWIG_OK; } lua_pop(L,1); /* remove whatever was there */ - /* NEW: looks for the __getitem() fn - this is a user provided get fn */ - SWIG_Lua_get_table(L,"__getitem"); /* find the __getitem fn */ - if (lua_iscfunction(L,-1)) /* if its there */ - { /* found it so call the fn & return its value */ - lua_pushvalue(L,substack_start+1); /* the userdata */ - lua_pushvalue(L,substack_start+2); /* the parameter */ - lua_call(L,2,1); /* 2 value in (userdata),1 out (result) */ - lua_remove(L,-2); /* stack tidy, remove metatable */ - if(ret) *ret = 1; - return SWIG_OK; - } - lua_pop(L,1); /* Remove the metatable */ lua_pop(L,1); /* Search in base classes */ @@ -1629,6 +1656,10 @@ SWIGINTERN int SWIG_Lua_class_get(lua_State *L) if(result == SWIG_OK) return ret; + result = SWIG_Lua_class_do_get_item(L,type,1,&ret); + if(result == SWIG_OK) + return ret; + return 0; } @@ -3336,9 +3367,7 @@ static int _wrap_DOMException_getMessage(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMException const *)arg1)->getMessage(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -3406,27 +3435,24 @@ static int _wrap_DOMException_msg_set(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMException::msg",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMException::msg",1,"XERCES_CPP_NAMESPACE::DOMException *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMException::msg",2,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMException,0))){ SWIG_fail_ptr("DOMException_msg_set",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMException); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,SWIG_POINTER_DISOWN))){ + SWIG_fail_ptr("DOMException_msg_set",2,SWIGTYPE_p_uint16_t); + } if (arg1) (arg1)->msg = (XMLCh const *)arg2; - - delete[] arg2; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -3445,9 +3471,7 @@ static int _wrap_DOMException_msg_get(lua_State* L) { } result = (XMLCh *) ((arg1)->msg); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -3538,9 +3562,7 @@ static int _wrap_DOMNode_getNodeName(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMNode const *)arg1)->getNodeName(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -3564,9 +3586,7 @@ static int _wrap_DOMNode_getNodeValue(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMNode const *)arg1)->getNodeValue(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -4019,27 +4039,24 @@ static int _wrap_DOMNode_setNodeValue(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMNode::setNodeValue",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::setNodeValue",1,"XERCES_CPP_NAMESPACE::DOMNode *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::setNodeValue",2,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode,0))){ SWIG_fail_ptr("DOMNode_setNodeValue",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMNode_setNodeValue",2,SWIGTYPE_p_uint16_t); + } (arg1)->setNodeValue((XMLCh const *)arg2); - - delete[] arg2; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -4077,36 +4094,30 @@ static int _wrap_DOMNode_isSupported(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMNode::isSupported",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::isSupported",1,"XERCES_CPP_NAMESPACE::DOMNode const *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::isSupported",2,"XMLCh const *"); + if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::isSupported",3,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode,0))){ SWIG_fail_ptr("DOMNode_isSupported",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMNode_isSupported",2,SWIGTYPE_p_uint16_t); + } - arg3 = Lua2XMLString(3); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMNode_isSupported",3,SWIGTYPE_p_uint16_t); + } result = (bool)((XERCES_CPP_NAMESPACE::DOMNode const *)arg1)->isSupported((XMLCh const *)arg2,(XMLCh const *)arg3); lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; - - delete[] arg2; - - - delete[] arg3; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - - - delete[] arg3; - lua_error(L); return SWIG_arg; } @@ -4125,9 +4136,7 @@ static int _wrap_DOMNode_getNamespaceURI(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMNode const *)arg1)->getNamespaceURI(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -4151,9 +4160,7 @@ static int _wrap_DOMNode_getLocalName(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMNode const *)arg1)->getLocalName(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -4171,27 +4178,24 @@ static int _wrap_DOMNode_setPrefix(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMNode::setPrefix",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::setPrefix",1,"XERCES_CPP_NAMESPACE::DOMNode *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::setPrefix",2,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode,0))){ SWIG_fail_ptr("DOMNode_setPrefix",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMNode_setPrefix",2,SWIGTYPE_p_uint16_t); + } (arg1)->setPrefix((XMLCh const *)arg2); - - delete[] arg2; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -4293,6 +4297,7 @@ static int _wrap_DOMNode_setUserData(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMNode::setUserData",4,4) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::setUserData",1,"XERCES_CPP_NAMESPACE::DOMNode *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::setUserData",2,"XMLCh const *"); if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::setUserData",3,"void *"); if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::setUserData",4,"XERCES_CPP_NAMESPACE::DOMUserDataHandler *"); @@ -4301,7 +4306,9 @@ static int _wrap_DOMNode_setUserData(lua_State* L) { } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMNode_setUserData",2,SWIGTYPE_p_uint16_t); + } arg3=(void *)SWIG_MustGetPtr(L,3,0,0,3,"DOMNode_setUserData"); @@ -4311,17 +4318,11 @@ static int _wrap_DOMNode_setUserData(lua_State* L) { result = (void *)(arg1)->setUserData((XMLCh const *)arg2,arg3,arg4); SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++; - - delete[] arg2; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -4335,27 +4336,24 @@ static int _wrap_DOMNode_getUserData(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMNode::getUserData",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::getUserData",1,"XERCES_CPP_NAMESPACE::DOMNode const *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::getUserData",2,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode,0))){ SWIG_fail_ptr("DOMNode_getUserData",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMNode_getUserData",2,SWIGTYPE_p_uint16_t); + } result = (void *)((XERCES_CPP_NAMESPACE::DOMNode const *)arg1)->getUserData((XMLCh const *)arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++; - - delete[] arg2; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -4374,9 +4372,7 @@ static int _wrap_DOMNode_getBaseURI(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMNode const *)arg1)->getBaseURI(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -4431,9 +4427,7 @@ static int _wrap_DOMNode_getTextContent(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMNode const *)arg1)->getTextContent(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -4451,27 +4445,24 @@ static int _wrap_DOMNode_setTextContent(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMNode::setTextContent",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::setTextContent",1,"XERCES_CPP_NAMESPACE::DOMNode *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::setTextContent",2,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode,0))){ SWIG_fail_ptr("DOMNode_setTextContent",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMNode_setTextContent",2,SWIGTYPE_p_uint16_t); + } (arg1)->setTextContent((XMLCh const *)arg2); - - delete[] arg2; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -4485,29 +4476,24 @@ static int _wrap_DOMNode_lookupPrefix(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMNode::lookupPrefix",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::lookupPrefix",1,"XERCES_CPP_NAMESPACE::DOMNode const *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::lookupPrefix",2,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode,0))){ SWIG_fail_ptr("DOMNode_lookupPrefix",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMNode_lookupPrefix",2,SWIGTYPE_p_uint16_t); + } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMNode const *)arg1)->lookupPrefix((XMLCh const *)arg2); - - result = XMLString2Lua(result); - - - delete[] arg2; - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -4521,27 +4507,24 @@ static int _wrap_DOMNode_isDefaultNamespace(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMNode::isDefaultNamespace",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::isDefaultNamespace",1,"XERCES_CPP_NAMESPACE::DOMNode const *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::isDefaultNamespace",2,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode,0))){ SWIG_fail_ptr("DOMNode_isDefaultNamespace",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMNode_isDefaultNamespace",2,SWIGTYPE_p_uint16_t); + } result = (bool)((XERCES_CPP_NAMESPACE::DOMNode const *)arg1)->isDefaultNamespace((XMLCh const *)arg2); lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; - - delete[] arg2; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -4555,29 +4538,24 @@ static int _wrap_DOMNode_lookupNamespaceURI(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMNode::lookupNamespaceURI",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::lookupNamespaceURI",1,"XERCES_CPP_NAMESPACE::DOMNode const *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::lookupNamespaceURI",2,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode,0))){ SWIG_fail_ptr("DOMNode_lookupNamespaceURI",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMNode_lookupNamespaceURI",2,SWIGTYPE_p_uint16_t); + } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMNode const *)arg1)->lookupNamespaceURI((XMLCh const *)arg2); - - result = XMLString2Lua(result); - - - delete[] arg2; - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -4592,36 +4570,30 @@ static int _wrap_DOMNode_getFeature(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMNode::getFeature",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::getFeature",1,"XERCES_CPP_NAMESPACE::DOMNode const *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::getFeature",2,"XMLCh const *"); + if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNode::getFeature",3,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode,0))){ SWIG_fail_ptr("DOMNode_getFeature",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMNode_getFeature",2,SWIGTYPE_p_uint16_t); + } - arg3 = Lua2XMLString(3); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMNode_getFeature",3,SWIGTYPE_p_uint16_t); + } result = (void *)((XERCES_CPP_NAMESPACE::DOMNode const *)arg1)->getFeature((XMLCh const *)arg2,(XMLCh const *)arg3); SWIG_NewPointerObj(L,result,SWIGTYPE_p_void,0); SWIG_arg++; - - delete[] arg2; - - - delete[] arg3; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - - - delete[] arg3; - lua_error(L); return SWIG_arg; } @@ -4790,9 +4762,7 @@ static int _wrap_DOMAttr_getName(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMAttr const *)arg1)->getName(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -4840,9 +4810,7 @@ static int _wrap_DOMAttr_getValue(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMAttr const *)arg1)->getValue(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -4860,27 +4828,24 @@ static int _wrap_DOMAttr_setValue(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMAttr::setValue",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMAttr::setValue",1,"XERCES_CPP_NAMESPACE::DOMAttr *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMAttr::setValue",2,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMAttr,0))){ SWIG_fail_ptr("DOMAttr_setValue",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMAttr); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMAttr_setValue",2,SWIGTYPE_p_uint16_t); + } (arg1)->setValue((XMLCh const *)arg2); - - delete[] arg2; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -5017,9 +4982,7 @@ static int _wrap_DOMElement_getTagName(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMElement const *)arg1)->getTagName(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -5038,29 +5001,24 @@ static int _wrap_DOMElement_getAttribute(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMElement::getAttribute",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::getAttribute",1,"XERCES_CPP_NAMESPACE::DOMElement const *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::getAttribute",2,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement,0))){ SWIG_fail_ptr("DOMElement_getAttribute",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_getAttribute",2,SWIGTYPE_p_uint16_t); + } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMElement const *)arg1)->getAttribute((XMLCh const *)arg2); - - result = XMLString2Lua(result); - - - delete[] arg2; - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -5074,27 +5032,24 @@ static int _wrap_DOMElement_getAttributeNode(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMElement::getAttributeNode",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::getAttributeNode",1,"XERCES_CPP_NAMESPACE::DOMElement const *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::getAttributeNode",2,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement,0))){ SWIG_fail_ptr("DOMElement_getAttributeNode",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_getAttributeNode",2,SWIGTYPE_p_uint16_t); + } result = (XERCES_CPP_NAMESPACE::DOMAttr *)((XERCES_CPP_NAMESPACE::DOMElement const *)arg1)->getAttributeNode((XMLCh const *)arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMAttr,0); SWIG_arg++; - - delete[] arg2; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -5108,27 +5063,24 @@ static int _wrap_DOMElement_getElementsByTagName(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMElement::getElementsByTagName",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::getElementsByTagName",1,"XERCES_CPP_NAMESPACE::DOMElement const *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::getElementsByTagName",2,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement,0))){ SWIG_fail_ptr("DOMElement_getElementsByTagName",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_getElementsByTagName",2,SWIGTYPE_p_uint16_t); + } result = (XERCES_CPP_NAMESPACE::DOMNodeList *)((XERCES_CPP_NAMESPACE::DOMElement const *)arg1)->getElementsByTagName((XMLCh const *)arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNodeList,0); SWIG_arg++; - - delete[] arg2; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -5142,36 +5094,30 @@ static int _wrap_DOMElement_setAttribute(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMElement::setAttribute",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::setAttribute",1,"XERCES_CPP_NAMESPACE::DOMElement *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::setAttribute",2,"XMLCh const *"); + if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::setAttribute",3,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement,0))){ SWIG_fail_ptr("DOMElement_setAttribute",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_setAttribute",2,SWIGTYPE_p_uint16_t); + } - arg3 = Lua2XMLString(3); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_setAttribute",3,SWIGTYPE_p_uint16_t); + } (arg1)->setAttribute((XMLCh const *)arg2,(XMLCh const *)arg3); - - delete[] arg2; - - - delete[] arg3; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - - - delete[] arg3; - lua_error(L); return SWIG_arg; } @@ -5246,27 +5192,24 @@ static int _wrap_DOMElement_removeAttribute(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMElement::removeAttribute",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::removeAttribute",1,"XERCES_CPP_NAMESPACE::DOMElement *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::removeAttribute",2,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement,0))){ SWIG_fail_ptr("DOMElement_removeAttribute",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_removeAttribute",2,SWIGTYPE_p_uint16_t); + } (arg1)->removeAttribute((XMLCh const *)arg2); - - delete[] arg2; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -5281,38 +5224,30 @@ static int _wrap_DOMElement_getAttributeNS(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMElement::getAttributeNS",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::getAttributeNS",1,"XERCES_CPP_NAMESPACE::DOMElement const *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::getAttributeNS",2,"XMLCh const *"); + if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::getAttributeNS",3,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement,0))){ SWIG_fail_ptr("DOMElement_getAttributeNS",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_getAttributeNS",2,SWIGTYPE_p_uint16_t); + } - arg3 = Lua2XMLString(3); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_getAttributeNS",3,SWIGTYPE_p_uint16_t); + } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMElement const *)arg1)->getAttributeNS((XMLCh const *)arg2,(XMLCh const *)arg3); - - result = XMLString2Lua(result); - - - delete[] arg2; - - - delete[] arg3; - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - - - delete[] arg3; - lua_error(L); return SWIG_arg; } @@ -5327,45 +5262,36 @@ static int _wrap_DOMElement_setAttributeNS(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMElement::setAttributeNS",4,4) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::setAttributeNS",1,"XERCES_CPP_NAMESPACE::DOMElement *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::setAttributeNS",2,"XMLCh const *"); + if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::setAttributeNS",3,"XMLCh const *"); + if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::setAttributeNS",4,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement,0))){ SWIG_fail_ptr("DOMElement_setAttributeNS",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_setAttributeNS",2,SWIGTYPE_p_uint16_t); + } - arg3 = Lua2XMLString(3); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_setAttributeNS",3,SWIGTYPE_p_uint16_t); + } - arg4 = Lua2XMLString(4); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_setAttributeNS",4,SWIGTYPE_p_uint16_t); + } (arg1)->setAttributeNS((XMLCh const *)arg2,(XMLCh const *)arg3,(XMLCh const *)arg4); - - delete[] arg2; - - - delete[] arg3; - - - delete[] arg4; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - - - delete[] arg3; - - - delete[] arg4; - lua_error(L); return SWIG_arg; } @@ -5379,36 +5305,30 @@ static int _wrap_DOMElement_removeAttributeNS(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMElement::removeAttributeNS",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::removeAttributeNS",1,"XERCES_CPP_NAMESPACE::DOMElement *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::removeAttributeNS",2,"XMLCh const *"); + if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::removeAttributeNS",3,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement,0))){ SWIG_fail_ptr("DOMElement_removeAttributeNS",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_removeAttributeNS",2,SWIGTYPE_p_uint16_t); + } - arg3 = Lua2XMLString(3); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_removeAttributeNS",3,SWIGTYPE_p_uint16_t); + } (arg1)->removeAttributeNS((XMLCh const *)arg2,(XMLCh const *)arg3); - - delete[] arg2; - - - delete[] arg3; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - - - delete[] arg3; - lua_error(L); return SWIG_arg; } @@ -5423,36 +5343,30 @@ static int _wrap_DOMElement_getAttributeNodeNS(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMElement::getAttributeNodeNS",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::getAttributeNodeNS",1,"XERCES_CPP_NAMESPACE::DOMElement const *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::getAttributeNodeNS",2,"XMLCh const *"); + if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::getAttributeNodeNS",3,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement,0))){ SWIG_fail_ptr("DOMElement_getAttributeNodeNS",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_getAttributeNodeNS",2,SWIGTYPE_p_uint16_t); + } - arg3 = Lua2XMLString(3); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_getAttributeNodeNS",3,SWIGTYPE_p_uint16_t); + } result = (XERCES_CPP_NAMESPACE::DOMAttr *)((XERCES_CPP_NAMESPACE::DOMElement const *)arg1)->getAttributeNodeNS((XMLCh const *)arg2,(XMLCh const *)arg3); SWIG_NewPointerObj(L,result,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMAttr,0); SWIG_arg++; - - delete[] arg2; - - - delete[] arg3; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - - - delete[] arg3; - lua_error(L); return SWIG_arg; } @@ -5498,36 +5412,30 @@ static int _wrap_DOMElement_getElementsByTagNameNS(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMElement::getElementsByTagNameNS",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::getElementsByTagNameNS",1,"XERCES_CPP_NAMESPACE::DOMElement const *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::getElementsByTagNameNS",2,"XMLCh const *"); + if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::getElementsByTagNameNS",3,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement,0))){ SWIG_fail_ptr("DOMElement_getElementsByTagNameNS",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_getElementsByTagNameNS",2,SWIGTYPE_p_uint16_t); + } - arg3 = Lua2XMLString(3); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_getElementsByTagNameNS",3,SWIGTYPE_p_uint16_t); + } result = (XERCES_CPP_NAMESPACE::DOMNodeList *)((XERCES_CPP_NAMESPACE::DOMElement const *)arg1)->getElementsByTagNameNS((XMLCh const *)arg2,(XMLCh const *)arg3); SWIG_NewPointerObj(L,result,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNodeList,0); SWIG_arg++; - - delete[] arg2; - - - delete[] arg3; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - - - delete[] arg3; - lua_error(L); return SWIG_arg; } @@ -5541,27 +5449,24 @@ static int _wrap_DOMElement_hasAttribute(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMElement::hasAttribute",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::hasAttribute",1,"XERCES_CPP_NAMESPACE::DOMElement const *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::hasAttribute",2,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement,0))){ SWIG_fail_ptr("DOMElement_hasAttribute",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_hasAttribute",2,SWIGTYPE_p_uint16_t); + } result = (bool)((XERCES_CPP_NAMESPACE::DOMElement const *)arg1)->hasAttribute((XMLCh const *)arg2); lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; - - delete[] arg2; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -5576,36 +5481,30 @@ static int _wrap_DOMElement_hasAttributeNS(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMElement::hasAttributeNS",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::hasAttributeNS",1,"XERCES_CPP_NAMESPACE::DOMElement const *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::hasAttributeNS",2,"XMLCh const *"); + if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::hasAttributeNS",3,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement,0))){ SWIG_fail_ptr("DOMElement_hasAttributeNS",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_hasAttributeNS",2,SWIGTYPE_p_uint16_t); + } - arg3 = Lua2XMLString(3); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_hasAttributeNS",3,SWIGTYPE_p_uint16_t); + } result = (bool)((XERCES_CPP_NAMESPACE::DOMElement const *)arg1)->hasAttributeNS((XMLCh const *)arg2,(XMLCh const *)arg3); lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; - - delete[] arg2; - - - delete[] arg3; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - - - delete[] arg3; - lua_error(L); return SWIG_arg; } @@ -5619,6 +5518,7 @@ static int _wrap_DOMElement_setIdAttribute(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMElement::setIdAttribute",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::setIdAttribute",1,"XERCES_CPP_NAMESPACE::DOMElement *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::setIdAttribute",2,"XMLCh const *"); if(!lua_isboolean(L,3)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::setIdAttribute",3,"bool"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement,0))){ @@ -5626,22 +5526,18 @@ static int _wrap_DOMElement_setIdAttribute(lua_State* L) { } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_setIdAttribute",2,SWIGTYPE_p_uint16_t); + } arg3 = (lua_toboolean(L, 3)!=0); (arg1)->setIdAttribute((XMLCh const *)arg2,arg3); - - delete[] arg2; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -5656,6 +5552,8 @@ static int _wrap_DOMElement_setIdAttributeNS(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMElement::setIdAttributeNS",4,4) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::setIdAttributeNS",1,"XERCES_CPP_NAMESPACE::DOMElement *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::setIdAttributeNS",2,"XMLCh const *"); + if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::setIdAttributeNS",3,"XMLCh const *"); if(!lua_isboolean(L,4)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMElement::setIdAttributeNS",4,"bool"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMElement,0))){ @@ -5663,31 +5561,23 @@ static int _wrap_DOMElement_setIdAttributeNS(lua_State* L) { } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_setIdAttributeNS",2,SWIGTYPE_p_uint16_t); + } - arg3 = Lua2XMLString(3); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMElement_setIdAttributeNS",3,SWIGTYPE_p_uint16_t); + } arg4 = (lua_toboolean(L, 4)!=0); (arg1)->setIdAttributeNS((XMLCh const *)arg2,(XMLCh const *)arg3,arg4); - - delete[] arg2; - - - delete[] arg3; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - - - delete[] arg3; - lua_error(L); return SWIG_arg; } @@ -5947,9 +5837,7 @@ static int _wrap_DOMEntity_getPublicId(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMEntity const *)arg1)->getPublicId(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -5973,9 +5861,7 @@ static int _wrap_DOMEntity_getSystemId(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMEntity const *)arg1)->getSystemId(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -5999,9 +5885,7 @@ static int _wrap_DOMEntity_getNotationName(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMEntity const *)arg1)->getNotationName(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -6025,9 +5909,7 @@ static int _wrap_DOMEntity_getInputEncoding(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMEntity const *)arg1)->getInputEncoding(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -6051,9 +5933,7 @@ static int _wrap_DOMEntity_getXmlEncoding(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMEntity const *)arg1)->getXmlEncoding(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -6077,9 +5957,7 @@ static int _wrap_DOMEntity_getXmlVersion(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMEntity const *)arg1)->getXmlVersion(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -6148,9 +6026,7 @@ static int _wrap_DOMDocumentType_getName(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMDocumentType const *)arg1)->getName(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -6222,9 +6098,7 @@ static int _wrap_DOMDocumentType_getPublicId(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMDocumentType const *)arg1)->getPublicId(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -6248,9 +6122,7 @@ static int _wrap_DOMDocumentType_getSystemId(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMDocumentType const *)arg1)->getSystemId(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -6274,9 +6146,7 @@ static int _wrap_DOMDocumentType_getInternalSubset(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMDocumentType const *)arg1)->getInternalSubset(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -6345,9 +6215,7 @@ static int _wrap_DOMCharacterData_getData(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMCharacterData const *)arg1)->getData(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -6403,9 +6271,7 @@ static int _wrap_DOMCharacterData_substringData(lua_State* L) { SWIG_contract_assert((lua_tonumber(L,3)>=0),"number must not be negative") arg3 = (XMLSize_t)lua_tonumber(L, 3); result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMCharacterData const *)arg1)->substringData(arg2,arg3); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -6423,27 +6289,24 @@ static int _wrap_DOMCharacterData_appendData(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMCharacterData::appendData",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMCharacterData::appendData",1,"XERCES_CPP_NAMESPACE::DOMCharacterData *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMCharacterData::appendData",2,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMCharacterData,0))){ SWIG_fail_ptr("DOMCharacterData_appendData",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMCharacterData); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMCharacterData_appendData",2,SWIGTYPE_p_uint16_t); + } (arg1)->appendData((XMLCh const *)arg2); - - delete[] arg2; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -6458,6 +6321,7 @@ static int _wrap_DOMCharacterData_insertData(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMCharacterData::insertData",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMCharacterData::insertData",1,"XERCES_CPP_NAMESPACE::DOMCharacterData *"); if(!lua_isnumber(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMCharacterData::insertData",2,"XMLSize_t"); + if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMCharacterData::insertData",3,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMCharacterData,0))){ SWIG_fail_ptr("DOMCharacterData_insertData",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMCharacterData); @@ -6466,21 +6330,17 @@ static int _wrap_DOMCharacterData_insertData(lua_State* L) { SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") arg2 = (XMLSize_t)lua_tonumber(L, 2); - arg3 = Lua2XMLString(3); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMCharacterData_insertData",3,SWIGTYPE_p_uint16_t); + } (arg1)->insertData(arg2,(XMLCh const *)arg3); - - delete[] arg3; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg3; - lua_error(L); return SWIG_arg; } @@ -6528,6 +6388,7 @@ static int _wrap_DOMCharacterData_replaceData(lua_State* L) { if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMCharacterData::replaceData",1,"XERCES_CPP_NAMESPACE::DOMCharacterData *"); if(!lua_isnumber(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMCharacterData::replaceData",2,"XMLSize_t"); if(!lua_isnumber(L,3)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMCharacterData::replaceData",3,"XMLSize_t"); + if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMCharacterData::replaceData",4,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMCharacterData,0))){ SWIG_fail_ptr("DOMCharacterData_replaceData",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMCharacterData); @@ -6538,21 +6399,17 @@ static int _wrap_DOMCharacterData_replaceData(lua_State* L) { SWIG_contract_assert((lua_tonumber(L,3)>=0),"number must not be negative") arg3 = (XMLSize_t)lua_tonumber(L, 3); - arg4 = Lua2XMLString(4); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMCharacterData_replaceData",4,SWIGTYPE_p_uint16_t); + } (arg1)->replaceData(arg2,arg3,(XMLCh const *)arg4); - - delete[] arg4; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg4; - lua_error(L); return SWIG_arg; } @@ -6565,27 +6422,24 @@ static int _wrap_DOMCharacterData_setData(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMCharacterData::setData",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMCharacterData::setData",1,"XERCES_CPP_NAMESPACE::DOMCharacterData *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMCharacterData::setData",2,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMCharacterData,0))){ SWIG_fail_ptr("DOMCharacterData_setData",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMCharacterData); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMCharacterData_setData",2,SWIGTYPE_p_uint16_t); + } (arg1)->setData((XMLCh const *)arg2); - - delete[] arg2; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -6742,9 +6596,7 @@ static int _wrap_DOMText_getWholeText(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMText const *)arg1)->getWholeText(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -6763,27 +6615,24 @@ static int _wrap_DOMText_replaceWholeText(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMText::replaceWholeText",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMText::replaceWholeText",1,"XERCES_CPP_NAMESPACE::DOMText *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMText::replaceWholeText",2,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMText,0))){ SWIG_fail_ptr("DOMText_replaceWholeText",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMText); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMText_replaceWholeText",2,SWIGTYPE_p_uint16_t); + } result = (XERCES_CPP_NAMESPACE::DOMText *)(arg1)->replaceWholeText((XMLCh const *)arg2); SWIG_NewPointerObj(L,result,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMText,0); SWIG_arg++; - - delete[] arg2; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -7065,30 +6914,27 @@ static int _wrap_DOMNamedNodeMap_getNamedItem(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMNamedNodeMap::getNamedItem",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNamedNodeMap::getNamedItem",1,"XERCES_CPP_NAMESPACE::DOMNamedNodeMap const *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNamedNodeMap::getNamedItem",2,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNamedNodeMap,0))){ SWIG_fail_ptr("DOMNamedNodeMap_getNamedItem",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNamedNodeMap); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMNamedNodeMap_getNamedItem",2,SWIGTYPE_p_uint16_t); + } result = (XERCES_CPP_NAMESPACE::DOMNode *)((XERCES_CPP_NAMESPACE::DOMNamedNodeMap const *)arg1)->getNamedItem((XMLCh const *)arg2); { swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode, (void **) &result); SWIG_NewPointerObj(L,(void*)result,ty,0); SWIG_arg++; } - - delete[] arg2; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -7126,30 +6972,27 @@ static int _wrap_DOMNamedNodeMap_removeNamedItem(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMNamedNodeMap::removeNamedItem",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNamedNodeMap::removeNamedItem",1,"XERCES_CPP_NAMESPACE::DOMNamedNodeMap *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNamedNodeMap::removeNamedItem",2,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNamedNodeMap,0))){ SWIG_fail_ptr("DOMNamedNodeMap_removeNamedItem",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNamedNodeMap); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMNamedNodeMap_removeNamedItem",2,SWIGTYPE_p_uint16_t); + } result = (XERCES_CPP_NAMESPACE::DOMNode *)(arg1)->removeNamedItem((XMLCh const *)arg2); { swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode, (void **) &result); SWIG_NewPointerObj(L,(void*)result,ty,0); SWIG_arg++; } - - delete[] arg2; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -7164,39 +7007,33 @@ static int _wrap_DOMNamedNodeMap_getNamedItemNS(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMNamedNodeMap::getNamedItemNS",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNamedNodeMap::getNamedItemNS",1,"XERCES_CPP_NAMESPACE::DOMNamedNodeMap const *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNamedNodeMap::getNamedItemNS",2,"XMLCh const *"); + if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNamedNodeMap::getNamedItemNS",3,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNamedNodeMap,0))){ SWIG_fail_ptr("DOMNamedNodeMap_getNamedItemNS",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNamedNodeMap); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMNamedNodeMap_getNamedItemNS",2,SWIGTYPE_p_uint16_t); + } - arg3 = Lua2XMLString(3); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMNamedNodeMap_getNamedItemNS",3,SWIGTYPE_p_uint16_t); + } result = (XERCES_CPP_NAMESPACE::DOMNode *)((XERCES_CPP_NAMESPACE::DOMNamedNodeMap const *)arg1)->getNamedItemNS((XMLCh const *)arg2,(XMLCh const *)arg3); { swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode, (void **) &result); SWIG_NewPointerObj(L,(void*)result,ty,0); SWIG_arg++; } - - delete[] arg2; - - - delete[] arg3; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - - - delete[] arg3; - lua_error(L); return SWIG_arg; } @@ -7245,39 +7082,33 @@ static int _wrap_DOMNamedNodeMap_removeNamedItemNS(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMNamedNodeMap::removeNamedItemNS",3,3) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNamedNodeMap::removeNamedItemNS",1,"XERCES_CPP_NAMESPACE::DOMNamedNodeMap *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNamedNodeMap::removeNamedItemNS",2,"XMLCh const *"); + if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMNamedNodeMap::removeNamedItemNS",3,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNamedNodeMap,0))){ SWIG_fail_ptr("DOMNamedNodeMap_removeNamedItemNS",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNamedNodeMap); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMNamedNodeMap_removeNamedItemNS",2,SWIGTYPE_p_uint16_t); + } - arg3 = Lua2XMLString(3); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMNamedNodeMap_removeNamedItemNS",3,SWIGTYPE_p_uint16_t); + } result = (XERCES_CPP_NAMESPACE::DOMNode *)(arg1)->removeNamedItemNS((XMLCh const *)arg2,(XMLCh const *)arg3); { swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMNode, (void **) &result); SWIG_NewPointerObj(L,(void*)result,ty,0); SWIG_arg++; } - - delete[] arg2; - - - delete[] arg3; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - - - delete[] arg3; - lua_error(L); return SWIG_arg; } @@ -7421,9 +7252,7 @@ static int _wrap_DOMNotation_getPublicId(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMNotation const *)arg1)->getPublicId(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -7447,9 +7276,7 @@ static int _wrap_DOMNotation_getSystemId(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMNotation const *)arg1)->getSystemId(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -7514,9 +7341,7 @@ static int _wrap_DOMProcessingInstruction_getTarget(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMProcessingInstruction const *)arg1)->getTarget(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -7540,9 +7365,7 @@ static int _wrap_DOMProcessingInstruction_getData(lua_State* L) { } result = (XMLCh *)((XERCES_CPP_NAMESPACE::DOMProcessingInstruction const *)arg1)->getData(); - - result = XMLString2Lua(result); - + SWIG_NewPointerObj(L,result,SWIGTYPE_p_uint16_t,0); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -7560,27 +7383,24 @@ static int _wrap_DOMProcessingInstruction_setData(lua_State* L) { SWIG_check_num_args("XERCES_CPP_NAMESPACE::DOMProcessingInstruction::setData",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMProcessingInstruction::setData",1,"XERCES_CPP_NAMESPACE::DOMProcessingInstruction *"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("XERCES_CPP_NAMESPACE::DOMProcessingInstruction::setData",2,"XMLCh const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMProcessingInstruction,0))){ SWIG_fail_ptr("DOMProcessingInstruction_setData",1,SWIGTYPE_p_XERCES_CPP_NAMESPACE__DOMProcessingInstruction); } - arg2 = Lua2XMLString(2); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_uint16_t,0))){ + SWIG_fail_ptr("DOMProcessingInstruction_setData",2,SWIGTYPE_p_uint16_t); + } (arg1)->setData((XMLCh const *)arg2); - - delete[] arg2; - return SWIG_arg; if(0) SWIG_fail; fail: - - delete[] arg2; - lua_error(L); return SWIG_arg; } @@ -7733,6 +7553,33 @@ static int _wrap_new_Event(lua_State* L) { } +static int _wrap_Event_fromData(lua_State* L) { + int SWIG_arg = 0; + Data *arg1 = 0 ; + uscxml::Event result; + + SWIG_check_num_args("uscxml::Event::fromData",1,1) + if(!lua_isuserdata(L,1)) SWIG_fail_arg("uscxml::Event::fromData",1,"Data const &"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Data,0))){ + SWIG_fail_ptr("Event_fromData",1,SWIGTYPE_p_Data); + } + + result = uscxml::Event::fromData((Data const &)*arg1); + { + uscxml::Event * resultptr = new uscxml::Event((const uscxml::Event &) result); + SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_uscxml__Event,1); SWIG_arg++; + } + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + static int _wrap_Event___lt(lua_State* L) { int SWIG_arg = 0; uscxml::Event *arg1 = (uscxml::Event *) 0 ; @@ -8004,6 +7851,30 @@ static int _wrap_Event_getParam(lua_State* L) { } +static int _wrap_Event_getUUID(lua_State* L) { + int SWIG_arg = 0; + uscxml::Event *arg1 = (uscxml::Event *) 0 ; + std::string *result = 0 ; + + SWIG_check_num_args("uscxml::Event::getUUID",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("uscxml::Event::getUUID",1,"uscxml::Event const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_uscxml__Event,0))){ + SWIG_fail_ptr("Event_getUUID",1,SWIGTYPE_p_uscxml__Event); + } + + result = (std::string *) &((uscxml::Event const *)arg1)->getUUID(); + lua_pushlstring(L,result->data(),result->size()); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + static int _wrap_Event_raw_set(lua_State* L) { int SWIG_arg = 0; uscxml::Event *arg1 = (uscxml::Event *) 0 ; @@ -8177,6 +8048,7 @@ static swig_lua_attribute swig_Event_attributes[] = { static swig_lua_method swig_Event_methods[]= { { "__lt", _wrap_Event___lt}, { "__eq", _wrap_Event___eq}, + { "getUUID", _wrap_Event_getUUID}, {0,0} }; static swig_lua_method swig_Event_meta[] = { @@ -8195,6 +8067,7 @@ static swig_lua_const_info swig_Event_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; static swig_lua_method swig_Event_Sf_SwigStatic_methods[]= { + { "fromData", _wrap_Event_fromData}, { "getParam", _wrap_Event_getParam}, {0,0} }; @@ -8375,6 +8248,7 @@ static swig_lua_const_info swig_SwigModule_constants[]= { {0,0,0,0,0,0} }; static swig_lua_method swig_SwigModule_methods[]= { + { "Event_fromData", _wrap_Event_fromData}, { "Event_getParam", _wrap_Event_getParam}, {0,0} }; |