PLplot
5.10.0
|
00001 /* 00002 * Interface wrapper code. 00003 * 00004 * Generated by SIP 4.16.4 on Wed Dec 10 03:55:21 2014 00005 */ 00006 00007 #include "sipAPIplplot_pyqt4.h" 00008 00009 #line 33 "/usr/src/RPM/BUILD/plplot-5.10.0/bindings/qt_gui/pyqt4/plplot_pyqt4.sip" 00010 #include "qt.h" 00011 #line 12 "./sipplplot_pyqt4QtPLDriver.cpp" 00012 00013 00014 00015 class sipQtPLDriver : public QtPLDriver 00016 { 00017 public: 00018 sipQtPLDriver(int,int); 00019 sipQtPLDriver(const QtPLDriver&); 00020 ~sipQtPLDriver(); 00021 00022 public: 00023 sipSimpleWrapper *sipPySelf; 00024 00025 private: 00026 sipQtPLDriver(const sipQtPLDriver &); 00027 sipQtPLDriver &operator = (const sipQtPLDriver &); 00028 }; 00029 00030 sipQtPLDriver::sipQtPLDriver(int a0,int a1): QtPLDriver(a0,a1), sipPySelf(0) 00031 { 00032 } 00033 00034 sipQtPLDriver::sipQtPLDriver(const QtPLDriver& a0): QtPLDriver(a0), sipPySelf(0) 00035 { 00036 } 00037 00038 sipQtPLDriver::~sipQtPLDriver() 00039 { 00040 sipCommonDtor(sipPySelf); 00041 } 00042 00043 00044 /* Cast a pointer to a type somewhere in its superclass hierarchy. */ 00045 extern "C" {static void *cast_QtPLDriver(void *, const sipTypeDef *);} 00046 static void *cast_QtPLDriver(void *ptr, const sipTypeDef *targetType) 00047 { 00048 if (targetType == sipType_QtPLDriver) 00049 return ptr; 00050 00051 return NULL; 00052 } 00053 00054 00055 /* Call the instance's destructor. */ 00056 extern "C" {static void release_QtPLDriver(void *, int);} 00057 static void release_QtPLDriver(void *sipCppV,int sipState) 00058 { 00059 Py_BEGIN_ALLOW_THREADS 00060 00061 if (sipState & SIP_DERIVED_CLASS) 00062 delete reinterpret_cast<sipQtPLDriver *>(sipCppV); 00063 else 00064 delete reinterpret_cast<QtPLDriver *>(sipCppV); 00065 00066 Py_END_ALLOW_THREADS 00067 } 00068 00069 00070 extern "C" {static void assign_QtPLDriver(void *, SIP_SSIZE_T, const void *);} 00071 static void assign_QtPLDriver(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc) 00072 { 00073 reinterpret_cast<QtPLDriver *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QtPLDriver *>(sipSrc); 00074 } 00075 00076 00077 extern "C" {static void *array_QtPLDriver(SIP_SSIZE_T);} 00078 static void *array_QtPLDriver(SIP_SSIZE_T sipNrElem) 00079 { 00080 return new QtPLDriver[sipNrElem]; 00081 } 00082 00083 00084 extern "C" {static void *copy_QtPLDriver(const void *, SIP_SSIZE_T);} 00085 static void *copy_QtPLDriver(const void *sipSrc, SIP_SSIZE_T sipSrcIdx) 00086 { 00087 return new QtPLDriver(reinterpret_cast<const QtPLDriver *>(sipSrc)[sipSrcIdx]); 00088 } 00089 00090 00091 extern "C" {static void dealloc_QtPLDriver(sipSimpleWrapper *);} 00092 static void dealloc_QtPLDriver(sipSimpleWrapper *sipSelf) 00093 { 00094 if (sipIsDerived(sipSelf)) 00095 reinterpret_cast<sipQtPLDriver *>(sipGetAddress(sipSelf))->sipPySelf = NULL; 00096 00097 if (sipIsPyOwned(sipSelf)) 00098 { 00099 release_QtPLDriver(sipGetAddress(sipSelf),sipSelf->flags); 00100 } 00101 } 00102 00103 00104 extern "C" {static void *init_type_QtPLDriver(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);} 00105 static void *init_type_QtPLDriver(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr) 00106 { 00107 sipQtPLDriver *sipCpp = 0; 00108 00109 { 00110 int a0 = QT_DEFAULT_X; 00111 int a1 = QT_DEFAULT_Y; 00112 00113 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|ii", &a0, &a1)) 00114 { 00115 Py_BEGIN_ALLOW_THREADS 00116 sipCpp = new sipQtPLDriver(a0,a1); 00117 Py_END_ALLOW_THREADS 00118 00119 sipCpp->sipPySelf = sipSelf; 00120 00121 return sipCpp; 00122 } 00123 } 00124 00125 { 00126 const QtPLDriver* a0; 00127 00128 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QtPLDriver, &a0)) 00129 { 00130 Py_BEGIN_ALLOW_THREADS 00131 sipCpp = new sipQtPLDriver(*a0); 00132 Py_END_ALLOW_THREADS 00133 00134 sipCpp->sipPySelf = sipSelf; 00135 00136 return sipCpp; 00137 } 00138 } 00139 00140 return NULL; 00141 } 00142 00143 00144 pyqt4ClassTypeDef sipTypeDef_plplot_pyqt4_QtPLDriver = { 00145 { 00146 { 00147 -1, 00148 0, 00149 0, 00150 SIP_TYPE_CLASS, 00151 sipNameNr_QtPLDriver, 00152 {0} 00153 }, 00154 { 00155 sipNameNr_QtPLDriver, 00156 {0, 0, 1}, 00157 0, 0, 00158 0, 0, 00159 0, 0, 00160 {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 00161 }, 00162 0, 00163 sipNameNr_PyQt4_QtCore_pyqtWrapperType, 00164 -1, 00165 0, 00166 0, 00167 init_type_QtPLDriver, 00168 0, 00169 0, 00170 #if PY_MAJOR_VERSION >= 3 00171 0, 00172 0, 00173 #else 00174 0, 00175 0, 00176 0, 00177 0, 00178 #endif 00179 dealloc_QtPLDriver, 00180 assign_QtPLDriver, 00181 array_QtPLDriver, 00182 copy_QtPLDriver, 00183 release_QtPLDriver, 00184 cast_QtPLDriver, 00185 0, 00186 0, 00187 0, 00188 0, 00189 0, 00190 0 00191 }, 00192 0, 00193 0, 00194 0 00195 };