#include "Python.h"#include <string.h>#include "BeamData.h"Go to the source code of this file.
Classes | |
| struct | swig_type_info |
| struct | swig_const_info |
| struct | swig_globalvar |
| struct | swig_varlinkobject |
Defines | |
| #define | SWIGPYTHON |
| #define | SWIGEXPORT(a) a |
| #define | SWIGIMPORT(a) a |
| #define | SWIGRUNTIME(a) static a |
| #define | SWIG_PY_INT 1 |
| #define | SWIG_PY_FLOAT 2 |
| #define | SWIG_PY_STRING 3 |
| #define | SWIG_PY_POINTER 4 |
| #define | SWIG_PY_BINARY 5 |
| #define | SWIG_POINTER_EXCEPTION 0x1 |
| #define | SWIG_POINTER_DISOWN 0x2 |
| #define | SWIG_fail goto fail |
| #define | SWIGTYPE_p_BeamData swig_types[0] |
| #define | SWIG_init init_beamdata |
| #define | SWIG_name "_beamdata" |
Typedefs | |
| typedef void *(* | swig_converter_func )(void *) |
| typedef swig_type_info *(* | swig_dycast_func )(void **) |
| typedef swig_type_info | swig_type_info |
| typedef swig_const_info | swig_const_info |
| typedef swig_globalvar | swig_globalvar |
| typedef swig_varlinkobject | swig_varlinkobject |
Functions | |
| SWIG_TypeRegister (swig_type_info *ti) | |
| SWIG_TypeCheck (char *c, swig_type_info *ty) | |
| SWIG_TypeCast (swig_type_info *ty, void *ptr) | |
| SWIG_TypeDynamicCast (swig_type_info *ty, void **ptr) | |
| SWIG_TypeName (const swig_type_info *ty) | |
| SWIG_TypeQuery (const char *name) | |
| SWIG_TypeClientData (swig_type_info *ti, void *clientdata) | |
| PyObject * | swig_varlink_repr (swig_varlinkobject *v) |
| int | swig_varlink_print (swig_varlinkobject *v, FILE *fp, int flags) |
| PyObject * | swig_varlink_getattr (swig_varlinkobject *v, char *n) |
| int | swig_varlink_setattr (swig_varlinkobject *v, char *n, PyObject *p) |
| SWIG_newvarlink (void) | |
| SWIG_addvarlink (PyObject *p, char *name, PyObject *(*get_attr)(void), int(*set_attr)(PyObject *p)) | |
| SWIG_PackData (char *c, void *ptr, int sz) | |
| SWIG_UnpackData (char *c, void *ptr, int sz) | |
| SWIG_ConvertPtr (PyObject *obj, void **ptr, swig_type_info *ty, int flags) | |
| SWIG_ConvertPacked (PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags) | |
| SWIG_NewPointerObj (void *ptr, swig_type_info *type, int own) | |
| SWIG_NewPackedObj (void *ptr, int sz, swig_type_info *type) | |
| SWIG_InstallConstants (PyObject *d, swig_const_info constants[]) | |
| PyObject * | _wrap_new_BeamData (PyObject *self, PyObject *args) |
| PyObject * | _wrap_delete_BeamData (PyObject *self, PyObject *args) |
| PyObject * | _wrap_BeamData_open_connection (PyObject *self, PyObject *args) |
| PyObject * | _wrap_BeamData_close_connection (PyObject *self, PyObject *args) |
| PyObject * | _wrap_BeamData_open_file (PyObject *self, PyObject *args) |
| PyObject * | _wrap_BeamData_close_file (PyObject *self, PyObject *args) |
| PyObject * | _wrap_BeamData_send_data (PyObject *self, PyObject *args) |
| PyObject * | _wrap_BeamData_start_block (PyObject *self, PyObject *args) |
| PyObject * | _wrap_BeamData_set_device_header (PyObject *self, PyObject *args) |
| PyObject * | _wrap_BeamData_add_device_value (PyObject *self, PyObject *args) |
| PyObject * | _wrap_BeamData_current_filename (PyObject *self, PyObject *args) |
| PyObject * | _wrap_BeamData_error (PyObject *self, PyObject *args) |
| PyObject * | BeamData_swigregister (PyObject *self, PyObject *args) |
| SWIGEXPORT (void) SWIG_init(void) | |
Variables | |
| swig_type_info * | swig_type_list = 0 |
| statichere PyTypeObject | varlinktype |
| swig_type_info * | swig_types [2] |
| PyMethodDef | SwigMethods [] |
| swig_type_info | _swigt__p_BeamData [] = {{"_p_BeamData", 0, "BeamData *", 0},{"_p_BeamData"},{0}} |
| swig_type_info * | swig_types_initial [] |
| swig_const_info | swig_const_table [] |
|
|
Definition at line 265 of file beamdata_wrap.cxx. |
|
|
Definition at line 666 of file beamdata_wrap.cxx. |
|
|
Definition at line 668 of file beamdata_wrap.cxx. Referenced by SWIGEXPORT(). |
|
|
Definition at line 262 of file beamdata_wrap.cxx. |
|
|
|
Definition at line 257 of file beamdata_wrap.cxx. Referenced by SWIG_InstallConstants(). |
|
|
Definition at line 254 of file beamdata_wrap.cxx. Referenced by SWIG_InstallConstants(). |
|
|
Definition at line 253 of file beamdata_wrap.cxx. Referenced by SWIG_InstallConstants(). |
|
|
Definition at line 256 of file beamdata_wrap.cxx. Referenced by SWIG_InstallConstants(). |
|
|
Definition at line 255 of file beamdata_wrap.cxx. Referenced by SWIG_InstallConstants(). |
|
|
Definition at line 64 of file beamdata_wrap.cxx. |
|
|
Definition at line 65 of file beamdata_wrap.cxx. |
|
|
Definition at line 11 of file beamdata_wrap.cxx. |
|
|
Definition at line 71 of file beamdata_wrap.cxx. |
|
|
|
|
|
|
Definition at line 78 of file beamdata_wrap.cxx. |
|
|
Definition at line 79 of file beamdata_wrap.cxx. |
|
|
|
|
|
Referenced by SWIG_TypeRegister(). |
|
|
|
|
||||||||||||
|
Definition at line 833 of file beamdata_wrap.cxx. References BeamData::add_device_value(), SWIG_ConvertPtr(), SWIG_POINTER_EXCEPTION, and SWIGTYPE_p_BeamData. 00833 {
00834 PyObject *resultobj;
00835 BeamData *arg1 = (BeamData *) 0 ;
00836 char *arg2 ;
00837 double arg3 ;
00838 PyObject * obj0 = 0 ;
00839
00840 if(!PyArg_ParseTuple(args,(char *)"Osd:BeamData_add_device_value",&obj0,&arg2,&arg3)) goto fail;
00841 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BeamData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
00842 (arg1)->add_device_value((char const *)arg2,arg3);
00843
00844 Py_INCREF(Py_None); resultobj = Py_None;
00845 return resultobj;
00846 fail:
00847 return NULL;
00848 }
|
|
||||||||||||
|
Definition at line 723 of file beamdata_wrap.cxx. References BeamData::close_connection(), SWIG_ConvertPtr(), SWIG_POINTER_EXCEPTION, and SWIGTYPE_p_BeamData. 00723 {
00724 PyObject *resultobj;
00725 BeamData *arg1 = (BeamData *) 0 ;
00726 int result;
00727 PyObject * obj0 = 0 ;
00728
00729 if(!PyArg_ParseTuple(args,(char *)"O:BeamData_close_connection",&obj0)) goto fail;
00730 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BeamData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
00731 result = (int)(arg1)->close_connection();
00732
00733 resultobj = PyInt_FromLong((long)result);
00734 return resultobj;
00735 fail:
00736 return NULL;
00737 }
|
|
||||||||||||
|
Definition at line 759 of file beamdata_wrap.cxx. References BeamData::close_file(), SWIG_ConvertPtr(), SWIG_POINTER_EXCEPTION, and SWIGTYPE_p_BeamData. 00759 {
00760 PyObject *resultobj;
00761 BeamData *arg1 = (BeamData *) 0 ;
00762 int result;
00763 PyObject * obj0 = 0 ;
00764
00765 if(!PyArg_ParseTuple(args,(char *)"O:BeamData_close_file",&obj0)) goto fail;
00766 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BeamData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
00767 result = (int)(arg1)->close_file();
00768
00769 resultobj = PyInt_FromLong((long)result);
00770 return resultobj;
00771 fail:
00772 return NULL;
00773 }
|
|
||||||||||||
|
Definition at line 851 of file beamdata_wrap.cxx. References BeamData::current_filename(), SWIG_ConvertPtr(), SWIG_POINTER_EXCEPTION, and SWIGTYPE_p_BeamData. 00851 {
00852 PyObject *resultobj;
00853 BeamData *arg1 = (BeamData *) 0 ;
00854 char *result;
00855 PyObject * obj0 = 0 ;
00856
00857 if(!PyArg_ParseTuple(args,(char *)"O:BeamData_current_filename",&obj0)) goto fail;
00858 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BeamData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
00859 result = (char *)(arg1)->current_filename();
00860
00861 resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
00862 return resultobj;
00863 fail:
00864 return NULL;
00865 }
|
|
||||||||||||
|
Definition at line 868 of file beamdata_wrap.cxx. References BeamData::error(), SWIG_ConvertPtr(), SWIG_POINTER_EXCEPTION, and SWIGTYPE_p_BeamData. 00868 {
00869 PyObject *resultobj;
00870 BeamData *arg1 = (BeamData *) 0 ;
00871 int arg2 ;
00872 char *result;
00873 PyObject * obj0 = 0 ;
00874
00875 if(!PyArg_ParseTuple(args,(char *)"Oi:BeamData_error",&obj0,&arg2)) goto fail;
00876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BeamData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
00877 result = (char *)(arg1)->error(arg2);
00878
00879 resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
00880 return resultobj;
00881 fail:
00882 return NULL;
00883 }
|
|
||||||||||||
|
Definition at line 705 of file beamdata_wrap.cxx. References BeamData::open_connection(), SWIG_ConvertPtr(), SWIG_POINTER_EXCEPTION, and SWIGTYPE_p_BeamData. 00705 {
00706 PyObject *resultobj;
00707 BeamData *arg1 = (BeamData *) 0 ;
00708 char *arg2 ;
00709 int result;
00710 PyObject * obj0 = 0 ;
00711
00712 if(!PyArg_ParseTuple(args,(char *)"Os:BeamData_open_connection",&obj0,&arg2)) goto fail;
00713 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BeamData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
00714 result = (int)(arg1)->open_connection((char const *)arg2);
00715
00716 resultobj = PyInt_FromLong((long)result);
00717 return resultobj;
00718 fail:
00719 return NULL;
00720 }
|
|
||||||||||||
|
Definition at line 740 of file beamdata_wrap.cxx. References BeamData::open_file(), SWIG_ConvertPtr(), SWIG_POINTER_EXCEPTION, and SWIGTYPE_p_BeamData. 00740 {
00741 PyObject *resultobj;
00742 BeamData *arg1 = (BeamData *) 0 ;
00743 int arg2 ;
00744 int arg3 ;
00745 int result;
00746 PyObject * obj0 = 0 ;
00747
00748 if(!PyArg_ParseTuple(args,(char *)"Oii:BeamData_open_file",&obj0,&arg2,&arg3)) goto fail;
00749 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BeamData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
00750 result = (int)(arg1)->open_file(arg2,arg3);
00751
00752 resultobj = PyInt_FromLong((long)result);
00753 return resultobj;
00754 fail:
00755 return NULL;
00756 }
|
|
||||||||||||
|
Definition at line 776 of file beamdata_wrap.cxx. References BeamData::send_data(), SWIG_ConvertPtr(), SWIG_POINTER_EXCEPTION, and SWIGTYPE_p_BeamData. 00776 {
00777 PyObject *resultobj;
00778 BeamData *arg1 = (BeamData *) 0 ;
00779 int result;
00780 PyObject * obj0 = 0 ;
00781
00782 if(!PyArg_ParseTuple(args,(char *)"O:BeamData_send_data",&obj0)) goto fail;
00783 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BeamData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
00784 result = (int)(arg1)->send_data();
00785
00786 resultobj = PyInt_FromLong((long)result);
00787 return resultobj;
00788 fail:
00789 return NULL;
00790 }
|
|
||||||||||||
|
Definition at line 814 of file beamdata_wrap.cxx. References BeamData::set_device_header(), SWIG_ConvertPtr(), SWIG_POINTER_EXCEPTION, and SWIGTYPE_p_BeamData. 00814 {
00815 PyObject *resultobj;
00816 BeamData *arg1 = (BeamData *) 0 ;
00817 char *arg2 ;
00818 int arg3 ;
00819 int arg4 ;
00820 PyObject * obj0 = 0 ;
00821
00822 if(!PyArg_ParseTuple(args,(char *)"Osii:BeamData_set_device_header",&obj0,&arg2,&arg3,&arg4)) goto fail;
00823 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BeamData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
00824 (arg1)->set_device_header((char const *)arg2,arg3,arg4);
00825
00826 Py_INCREF(Py_None); resultobj = Py_None;
00827 return resultobj;
00828 fail:
00829 return NULL;
00830 }
|
|
||||||||||||
|
Definition at line 793 of file beamdata_wrap.cxx. References BeamData::start_block(), SWIG_ConvertPtr(), SWIG_POINTER_EXCEPTION, and SWIGTYPE_p_BeamData. 00793 {
00794 PyObject *resultobj;
00795 BeamData *arg1 = (BeamData *) 0 ;
00796 int arg2 ;
00797 int arg3 ;
00798 int arg4 ;
00799 int arg5 ;
00800 int arg6 ;
00801 PyObject * obj0 = 0 ;
00802
00803 if(!PyArg_ParseTuple(args,(char *)"Oiiiii:BeamData_start_block",&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail;
00804 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BeamData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
00805 (arg1)->start_block(arg2,arg3,arg4,arg5,arg6);
00806
00807 Py_INCREF(Py_None); resultobj = Py_None;
00808 return resultobj;
00809 fail:
00810 return NULL;
00811 }
|
|
||||||||||||
|
Definition at line 689 of file beamdata_wrap.cxx. References SWIG_ConvertPtr(), SWIG_POINTER_EXCEPTION, and SWIGTYPE_p_BeamData. 00689 {
00690 PyObject *resultobj;
00691 BeamData *arg1 = (BeamData *) 0 ;
00692 PyObject * obj0 = 0 ;
00693
00694 if(!PyArg_ParseTuple(args,(char *)"O:delete_BeamData",&obj0)) goto fail;
00695 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BeamData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
00696 delete arg1;
00697
00698 Py_INCREF(Py_None); resultobj = Py_None;
00699 return resultobj;
00700 fail:
00701 return NULL;
00702 }
|
|
||||||||||||
|
Definition at line 675 of file beamdata_wrap.cxx. References SWIG_NewPointerObj(), and SWIGTYPE_p_BeamData. 00675 {
00676 PyObject *resultobj;
00677 BeamData *result;
00678
00679 if(!PyArg_ParseTuple(args,(char *)":new_BeamData")) goto fail;
00680 result = (BeamData *)new BeamData();
00681
00682 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BeamData, 1);
00683 return resultobj;
00684 fail:
00685 return NULL;
00686 }
|
|
||||||||||||
|
Definition at line 886 of file beamdata_wrap.cxx. References SWIG_TypeClientData(), and SWIGTYPE_p_BeamData. 00886 {
00887 PyObject *obj;
00888 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
00889 SWIG_TypeClientData(SWIGTYPE_p_BeamData, obj);
00890 Py_INCREF(obj);
00891 return Py_BuildValue((char *)"");
00892 }
|
|
||||||||||||||||||||
|
Definition at line 382 of file beamdata_wrap.cxx. References swig_globalvar::get_attr, swig_globalvar::name, swig_globalvar::next, swig_globalvar::set_attr, and swig_varlinkobject::vars. 00383 {
00384 swig_varlinkobject *v;
00385 swig_globalvar *gv;
00386 v= (swig_varlinkobject *) p;
00387 gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
00388 gv->name = (char *) malloc(strlen(name)+1);
00389 strcpy(gv->name,name);
00390 gv->get_attr = get_attr;
00391 gv->set_attr = set_attr;
00392 gv->next = v->vars;
00393 v->vars = gv;
00394 }
|
|
||||||||||||||||||||||||
|
Definition at line 528 of file beamdata_wrap.cxx. References SWIG_TypeCheck(), SWIG_UnpackData(), and tc. 00528 {
00529 swig_type_info *tc;
00530 char *c;
00531
00532 if ((!obj) || (!PyString_Check(obj))) goto type_error;
00533 c = PyString_AsString(obj);
00534 /* Pointer values must start with leading underscore */
00535 if (*c != '_') goto type_error;
00536 c++;
00537 c = SWIG_UnpackData(c,ptr,sz);
00538 if (ty) {
00539 tc = SWIG_TypeCheck(c,ty);
00540 if (!tc) goto type_error;
00541 }
00542 return 0;
00543
00544 type_error:
00545
00546 if (flags) {
00547 if (ty) {
00548 char *temp = (char *) malloc(64+strlen(ty->name));
00549 sprintf(temp,"Type error. Expected %s", ty->name);
00550 PyErr_SetString(PyExc_TypeError, temp);
00551 free((char *) temp);
00552 } else {
00553 PyErr_SetString(PyExc_TypeError,"Expected a pointer");
00554 }
00555 }
00556 return -1;
00557 }
|
|
||||||||||||||||||||
|
Definition at line 436 of file beamdata_wrap.cxx. References SWIG_TypeCast(), SWIG_TypeCheck(), SWIG_UnpackData(), and tc. Referenced by _wrap_BeamData_add_device_value(), _wrap_BeamData_close_connection(), _wrap_BeamData_close_file(), _wrap_BeamData_current_filename(), _wrap_BeamData_error(), _wrap_BeamData_open_connection(), _wrap_BeamData_open_file(), _wrap_BeamData_send_data(), _wrap_BeamData_set_device_header(), _wrap_BeamData_start_block(), and _wrap_delete_BeamData(). 00436 {
00437 swig_type_info *tc;
00438 char *c;
00439 static PyObject *SWIG_this = 0;
00440 int newref = 0;
00441 PyObject *pyobj = 0;
00442
00443 if (!obj) return 0;
00444 if (obj == Py_None) {
00445 *ptr = 0;
00446 return 0;
00447 }
00448 #ifdef SWIG_COBJECT_TYPES
00449 if (!(PyCObject_Check(obj))) {
00450 if (!SWIG_this)
00451 SWIG_this = PyString_FromString("this");
00452 pyobj = obj;
00453 obj = PyObject_GetAttr(obj,SWIG_this);
00454 newref = 1;
00455 if (!obj) goto type_error;
00456 if (!PyCObject_Check(obj)) {
00457 Py_DECREF(obj);
00458 goto type_error;
00459 }
00460 }
00461 *ptr = PyCObject_AsVoidPtr(obj);
00462 c = (char *) PyCObject_GetDesc(obj);
00463 if (newref) Py_DECREF(obj);
00464 goto cobject;
00465 #else
00466 if (!(PyString_Check(obj))) {
00467 if (!SWIG_this)
00468 SWIG_this = PyString_FromString("this");
00469 pyobj = obj;
00470 obj = PyObject_GetAttr(obj,SWIG_this);
00471 newref = 1;
00472 if (!obj) goto type_error;
00473 if (!PyString_Check(obj)) {
00474 Py_DECREF(obj);
00475 goto type_error;
00476 }
00477 }
00478 c = PyString_AsString(obj);
00479 /* Pointer values must start with leading underscore */
00480 if (*c != '_') {
00481 *ptr = (void *) 0;
00482 if (strcmp(c,"NULL") == 0) {
00483 if (newref) { Py_DECREF(obj); }
00484 return 0;
00485 } else {
00486 if (newref) { Py_DECREF(obj); }
00487 goto type_error;
00488 }
00489 }
00490 c++;
00491 c = SWIG_UnpackData(c,ptr,sizeof(void *));
00492 if (newref) { Py_DECREF(obj); }
00493 #endif
00494
00495 #ifdef SWIG_COBJECT_TYPES
00496 cobject:
00497 #endif
00498
00499 if (ty) {
00500 tc = SWIG_TypeCheck(c,ty);
00501 if (!tc) goto type_error;
00502 *ptr = SWIG_TypeCast(tc,(void*) *ptr);
00503 }
00504
00505 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
00506 PyObject *zero = PyInt_FromLong(0);
00507 PyObject_SetAttrString(pyobj,(char*)"thisown",zero);
00508 Py_DECREF(zero);
00509 }
00510 return 0;
00511
00512 type_error:
00513 if (flags & SWIG_POINTER_EXCEPTION) {
00514 if (ty) {
00515 char *temp = (char *) malloc(64+strlen(ty->name));
00516 sprintf(temp,"Type error. Expected %s", ty->name);
00517 PyErr_SetString(PyExc_TypeError, temp);
00518 free((char *) temp);
00519 } else {
00520 PyErr_SetString(PyExc_TypeError,"Expected a pointer");
00521 }
00522 }
00523 return -1;
00524 }
|
|
||||||||||||
|
Definition at line 611 of file beamdata_wrap.cxx. References SWIG_NewPackedObj(), SWIG_NewPointerObj(), SWIG_PY_BINARY, SWIG_PY_FLOAT, SWIG_PY_INT, SWIG_PY_POINTER, and SWIG_PY_STRING. Referenced by SWIGEXPORT(). 00611 {
00612 int i;
00613 PyObject *obj;
00614 for (i = 0; constants[i].type; i++) {
00615 switch(constants[i].type) {
00616 case SWIG_PY_INT:
00617 obj = PyInt_FromLong(constants[i].lvalue);
00618 break;
00619 case SWIG_PY_FLOAT:
00620 obj = PyFloat_FromDouble(constants[i].dvalue);
00621 break;
00622 case SWIG_PY_STRING:
00623 obj = PyString_FromString((char *) constants[i].pvalue);
00624 break;
00625 case SWIG_PY_POINTER:
00626 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
00627 break;
00628 case SWIG_PY_BINARY:
00629 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
00630 break;
00631 default:
00632 obj = 0;
00633 break;
00634 }
00635 if (obj) {
00636 PyDict_SetItemString(d,constants[i].name,obj);
00637 Py_DECREF(obj);
00638 }
00639 }
00640 }
|
|
||||||||||||||||
|
Definition at line 599 of file beamdata_wrap.cxx. References SWIG_PackData(). Referenced by SWIG_InstallConstants(). 00599 {
00600 char result[1024];
00601 char *r = result;
00602 if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
00603 *(r++) = '_';
00604 r = SWIG_PackData(r,ptr,sz);
00605 strcpy(r,type->name);
00606 return PyString_FromString(result);
00607 }
|
|
||||||||||||||||
|
Definition at line 561 of file beamdata_wrap.cxx. References SWIG_PackData(). Referenced by _wrap_new_BeamData(), and SWIG_InstallConstants(). 00561 {
00562 PyObject *robj;
00563 if (!ptr) {
00564 Py_INCREF(Py_None);
00565 return Py_None;
00566 }
00567 #ifdef SWIG_COBJECT_TYPES
00568 robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) type->name, NULL);
00569 #else
00570 {
00571 char result[1024];
00572 char *r = result;
00573 *(r++) = '_';
00574 r = SWIG_PackData(r,&ptr,sizeof(void *));
00575 strcpy(r,type->name);
00576 robj = PyString_FromString(result);
00577 }
00578 #endif
00579 if (!robj || (robj == Py_None)) return robj;
00580 if (type->clientdata) {
00581 PyObject *inst;
00582 PyObject *args = Py_BuildValue((char*)"(O)", robj);
00583 Py_DECREF(robj);
00584 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
00585 Py_DECREF(args);
00586 if (inst) {
00587 if (own) {
00588 PyObject *n = PyInt_FromLong(1);
00589 PyObject_SetAttrString(inst,(char*)"thisown",n);
00590 Py_DECREF(n);
00591 }
00592 robj = inst;
00593 }
00594 }
00595 return robj;
00596 }
|
|
|
Definition at line 370 of file beamdata_wrap.cxx. References varlinktype, and swig_varlinkobject::vars. Referenced by SWIGEXPORT(). 00370 {
00371 swig_varlinkobject *result = 0;
00372 result = PyMem_NEW(swig_varlinkobject,1);
00373 varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */
00374 result->ob_type = &varlinktype;
00375 result->vars = 0;
00376 result->ob_refcnt = 0;
00377 Py_XINCREF((PyObject *) result);
00378 return ((PyObject*) result);
00379 }
|
|
||||||||||||||||
|
Definition at line 398 of file beamdata_wrap.cxx. Referenced by SWIG_NewPackedObj(), and SWIG_NewPointerObj(). 00398 {
00399 static char hex[17] = "0123456789abcdef";
00400 int i;
00401 unsigned char *u = (unsigned char *) ptr;
00402 register unsigned char uu;
00403 for (i = 0; i < sz; i++,u++) {
00404 uu = *u;
00405 *(c++) = hex[(uu & 0xf0) >> 4];
00406 *(c++) = hex[uu & 0xf];
00407 }
00408 return c;
00409 }
|
|
||||||||||||
|
Definition at line 174 of file beamdata_wrap.cxx. Referenced by SWIG_ConvertPtr(). 00175 {
00176 if ((!ty) || (!ty->converter)) return ptr;
00177 return (*ty->converter)(ptr);
00178 }
|
|
||||||||||||
|
Definition at line 147 of file beamdata_wrap.cxx. References swig_type_info::name, swig_type_info::next, swig_type_info::prev, and s(). Referenced by SWIG_ConvertPacked(), and SWIG_ConvertPtr(). 00148 {
00149 swig_type_info *s;
00150 if (!ty) return 0; /* Void pointer */
00151 s = ty->next; /* First element always just a name */
00152 do {
00153 if (strcmp(s->name,c) == 0) {
00154 if (s == ty->next) return s;
00155 /* Move s to the top of the linked list */
00156 s->prev->next = s->next;
00157 if (s->next) {
00158 s->next->prev = s->prev;
00159 }
00160 /* Insert s as second element in the list */
00161 s->next = ty->next;
00162 if (ty->next) ty->next->prev = s;
00163 ty->next = s;
00164 s->prev = ty;
00165 return s;
00166 }
00167 s = s->next;
00168 } while (s && (s != ty->next));
00169 return 0;
00170 }
|
|
||||||||||||
|
Definition at line 213 of file beamdata_wrap.cxx. References swig_type_info::clientdata, swig_type_info::converter, swig_type_info::name, swig_type_info::next, swig_type_info::prev, and tc. Referenced by BeamData_swigregister(). 00213 {
00214 swig_type_info *tc, *equiv;
00215 if (ti->clientdata == clientdata) return;
00216 ti->clientdata = clientdata;
00217 equiv = ti->next;
00218 while (equiv) {
00219 if (!equiv->converter) {
00220 tc = swig_type_list;
00221 while (tc) {
00222 if ((strcmp(tc->name, equiv->name) == 0))
00223 SWIG_TypeClientData(tc,clientdata);
00224 tc = tc->prev;
00225 }
00226 }
00227 equiv = equiv->next;
00228 }
00229 }
|
|
||||||||||||
|
Definition at line 182 of file beamdata_wrap.cxx. 00183 {
00184 swig_type_info *lastty = ty;
00185 if (!ty || !ty->dcast) return ty;
00186 while (ty && (ty->dcast)) {
00187 ty = (*ty->dcast)(ptr);
00188 if (ty) lastty = ty;
00189 }
00190 return lastty;
00191 }
|
|
|
Definition at line 195 of file beamdata_wrap.cxx. References swig_type_info::name. 00195 {
00196 return ty->name;
00197 }
|
|
|
Definition at line 201 of file beamdata_wrap.cxx. References swig_type_info::name, swig_type_info::prev, and swig_type_info::str. 00201 {
00202 swig_type_info *ty = swig_type_list;
00203 while (ty) {
00204 if (ty->str && (strcmp(name,ty->str) == 0)) return ty;
00205 if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
00206 ty = ty->prev;
00207 }
00208 return 0;
00209 }
|
|
|
Definition at line 107 of file beamdata_wrap.cxx. References swig_type_info::clientdata, swig_type_info::name, swig_type_info::next, swig_type_info::prev, swig_type_info, swig_type_list, and tc. Referenced by SWIGEXPORT(). 00108 {
00109 swig_type_info *tc, *head, *ret, *next;
00110 /* Check to see if this type has already been registered */
00111 tc = swig_type_list;
00112 while (tc) {
00113 if (strcmp(tc->name, ti->name) == 0) {
00114 /* Already exists in the table. Just add additional types to the list */
00115 if (tc->clientdata) ti->clientdata = tc->clientdata;
00116 head = tc;
00117 next = tc->next;
00118 goto l1;
00119 }
00120 tc = tc->prev;
00121 }
00122 head = ti;
00123 next = 0;
00124
00125 /* Place in list */
00126 ti->prev = swig_type_list;
00127 swig_type_list = ti;
00128
00129 /* Build linked lists */
00130 l1:
00131 ret = head;
00132 tc = ti + 1;
00133 /* Patch up the rest of the links */
00134 while (tc->name) {
00135 head->next = tc;
00136 tc->prev = head;
00137 head = tc;
00138 tc++;
00139 }
00140 if (next) next->prev = head;
00141 head->next = next;
00142 return ret;
00143 }
|
|
||||||||||||||||
|
Definition at line 413 of file beamdata_wrap.cxx. Referenced by SWIG_ConvertPacked(), and SWIG_ConvertPtr(). 00413 {
00414 register unsigned char uu = 0;
00415 register int d;
00416 unsigned char *u = (unsigned char *) ptr;
00417 int i;
00418 for (i = 0; i < sz; i++, u++) {
00419 d = *(c++);
00420 if ((d >= '0') && (d <= '9'))
00421 uu = ((d - '0') << 4);
00422 else if ((d >= 'a') && (d <= 'f'))
00423 uu = ((d - ('a'-10)) << 4);
00424 d = *(c++);
00425 if ((d >= '0') && (d <= '9'))
00426 uu |= (d - '0');
00427 else if ((d >= 'a') && (d <= 'f'))
00428 uu |= (d - ('a'-10));
00429 *u = uu;
00430 }
00431 return c;
00432 }
|
|
||||||||||||
|
Definition at line 326 of file beamdata_wrap.cxx. References swig_globalvar::get_attr, swig_globalvar::name, swig_globalvar::next, and swig_varlinkobject::vars. 00326 {
00327 swig_globalvar *var = v->vars;
00328 while (var) {
00329 if (strcmp(var->name,n) == 0) {
00330 return (*var->get_attr)();
00331 }
00332 var = var->next;
00333 }
00334 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
00335 return NULL;
00336 }
|
|
||||||||||||||||
|
Definition at line 313 of file beamdata_wrap.cxx. References swig_globalvar::name, swig_globalvar::next, and swig_varlinkobject::vars. 00313 {
00314 swig_globalvar *var;
00315 flags = flags;
00316 fprintf(fp,"Global variables { ");
00317 for (var = v->vars; var; var=var->next) {
00318 fprintf(fp,"%s", var->name);
00319 if (var->next) fprintf(fp,", ");
00320 }
00321 fprintf(fp," }\n");
00322 return 0;
00323 }
|
|
|
Definition at line 307 of file beamdata_wrap.cxx. 00307 {
00308 v = v;
00309 return PyString_FromString("<Global variables>");
00310 }
|
|
||||||||||||||||
|
Definition at line 339 of file beamdata_wrap.cxx. References swig_globalvar::name, swig_globalvar::next, swig_globalvar::set_attr, and swig_varlinkobject::vars. 00339 {
00340 swig_globalvar *var = v->vars;
00341 while (var) {
00342 if (strcmp(var->name,n) == 0) {
00343 return (*var->set_attr)(p);
00344 }
00345 var = var->next;
00346 }
00347 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
00348 return 1;
00349 }
|
|
|
Definition at line 933 of file beamdata_wrap.cxx. References swig_const_table, SWIG_InstallConstants(), SWIG_name, SWIG_newvarlink(), SWIG_TypeRegister(), swig_types, swig_types_initial, and SwigMethods. 00933 {
00934 static PyObject *SWIG_globals = 0;
00935 static int typeinit = 0;
00936 PyObject *m, *d;
00937 int i;
00938 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
00939 m = Py_InitModule((char *) SWIG_name, SwigMethods);
00940 d = PyModule_GetDict(m);
00941
00942 if (!typeinit) {
00943 for (i = 0; swig_types_initial[i]; i++) {
00944 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
00945 }
00946 typeinit = 1;
00947 }
00948 SWIG_InstallConstants(d,swig_const_table);
00949
00950 }
|
|
|
Definition at line 913 of file beamdata_wrap.cxx. |
|
|
Initial value: {
{0}}
Definition at line 923 of file beamdata_wrap.cxx. Referenced by SWIGEXPORT(). |
|
|
Definition at line 103 of file beamdata_wrap.cxx. Referenced by SWIG_TypeRegister(). |
|
|
Definition at line 658 of file beamdata_wrap.cxx. Referenced by SWIGEXPORT(). |
|
|
Initial value: {
_swigt__p_BeamData,
0
}
Definition at line 915 of file beamdata_wrap.cxx. Referenced by SWIGEXPORT(). |
|
|
Initial value: {
{ (char *)"new_BeamData", _wrap_new_BeamData, METH_VARARGS },
{ (char *)"delete_BeamData", _wrap_delete_BeamData, METH_VARARGS },
{ (char *)"BeamData_open_connection", _wrap_BeamData_open_connection, METH_VARARGS },
{ (char *)"BeamData_close_connection", _wrap_BeamData_close_connection, METH_VARARGS },
{ (char *)"BeamData_open_file", _wrap_BeamData_open_file, METH_VARARGS },
{ (char *)"BeamData_close_file", _wrap_BeamData_close_file, METH_VARARGS },
{ (char *)"BeamData_send_data", _wrap_BeamData_send_data, METH_VARARGS },
{ (char *)"BeamData_start_block", _wrap_BeamData_start_block, METH_VARARGS },
{ (char *)"BeamData_set_device_header", _wrap_BeamData_set_device_header, METH_VARARGS },
{ (char *)"BeamData_add_device_value", _wrap_BeamData_add_device_value, METH_VARARGS },
{ (char *)"BeamData_current_filename", _wrap_BeamData_current_filename, METH_VARARGS },
{ (char *)"BeamData_error", _wrap_BeamData_error, METH_VARARGS },
{ (char *)"BeamData_swigregister", BeamData_swigregister, METH_VARARGS },
{ NULL, NULL }
}
Definition at line 893 of file beamdata_wrap.cxx. Referenced by SWIGEXPORT(). |
|
|
Initial value: {
PyObject_HEAD_INIT(0)
0,
(char *)"swigvarlink",
sizeof(swig_varlinkobject),
0,
0,
(printfunc) swig_varlink_print,
(getattrfunc) swig_varlink_getattr,
(setattrfunc) swig_varlink_setattr,
0,
(reprfunc) swig_varlink_repr,
0,
0,
0,
}
Definition at line 351 of file beamdata_wrap.cxx. Referenced by SWIG_newvarlink(). |
1.3.9.1