/* * Interface wrapper code. * * Generated by SIP 4.12-snapshot-eac351f5cca7 on Wed Nov 10 15:32:07 2010 * * Copyright: (c) 2010 by Total Control Software * Licence: wxWindows license */ #include "sipAPI_core.h" extern "C" {static void assign_wxString(void *, SIP_SSIZE_T, const void *);} static void assign_wxString(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc) { reinterpret_cast(sipDst)[sipDstIdx] = *reinterpret_cast(sipSrc); } extern "C" {static void *array_wxString(SIP_SSIZE_T);} static void *array_wxString(SIP_SSIZE_T sipNrElem) { return new wxString[sipNrElem]; } extern "C" {static void *copy_wxString(const void *, SIP_SSIZE_T);} static void *copy_wxString(const void *sipSrc, SIP_SSIZE_T sipSrcIdx) { return new wxString(reinterpret_cast(sipSrc)[sipSrcIdx]); } /* Call the mapped type's destructor. */ extern "C" {static void release_wxString(void *, int);} static void release_wxString(void *ptr, int) { delete reinterpret_cast(ptr); } extern "C" {static int convertTo_wxString(PyObject *, void **, int *, PyObject *);} static int convertTo_wxString(PyObject *,void **,int *,PyObject *) { #line 23 "src/string.sip" // TODO #line 51 "sip_corewxString.cpp" } extern "C" {static PyObject *convertFrom_wxString(void *, PyObject *);} static PyObject *convertFrom_wxString(void *sipCppV,PyObject *) { wxString *sipCpp = reinterpret_cast(sipCppV); #line 28 "src/string.sip" // TODO #line 62 "sip_corewxString.cpp" } sipMappedTypeDef sipTypeDef__core_wxString = { { -1, 0, 0, SIP_TYPE_MAPPED, sipNameNr_wxString, {0} }, { -1, {0, 0, 1}, 0, 0, 0, 0, 0, 0, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0} }, assign_wxString, array_wxString, copy_wxString, release_wxString, convertTo_wxString, convertFrom_wxString };