Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

beamdata_wrap.cxx

Go to the documentation of this file.
00001 /* ----------------------------------------------------------------------------
00002  * This file was automatically generated by SWIG (http://www.swig.org).
00003  * Version 1.3.19
00004  * 
00005  * This file is not intended to be easily readable and contains a number of 
00006  * coding conventions designed to improve portability and efficiency. Do not make
00007  * changes to this file unless you know what you are doing--modify the SWIG 
00008  * interface file instead. 
00009  * ----------------------------------------------------------------------------- */
00010 
00011 #define SWIGPYTHON
00012 
00013 #ifdef __cplusplus
00014 template<class T> class SwigValueWrapper {
00015     T *tt;
00016 public:
00017     inline SwigValueWrapper() : tt(0) { }
00018     inline ~SwigValueWrapper() { if (tt) delete tt; } 
00019     inline SwigValueWrapper& operator=(const T& t) { tt = new T(t); return *this; }
00020     inline operator T&() const { return *tt; }
00021     inline T *operator&() { return tt; }
00022 };                                                    
00023 #endif
00024 
00025 
00026 #include "Python.h"
00027 
00028 /***********************************************************************
00029  * common.swg
00030  *
00031  *     This file contains generic SWIG runtime support for pointer
00032  *     type checking as well as a few commonly used macros to control
00033  *     external linkage.
00034  *
00035  * Author : David Beazley (beazley@cs.uchicago.edu)
00036  *
00037  * Copyright (c) 1999-2000, The University of Chicago
00038  * 
00039  * This file may be freely redistributed without license or fee provided
00040  * this copyright message remains intact.
00041  ************************************************************************/
00042 
00043 #include <string.h>
00044 
00045 #if defined(_WIN32) || defined(__WIN32__)
00046 #       if defined(_MSC_VER)
00047 #               if defined(STATIC_LINKED)
00048 #                       define SWIGEXPORT(a) a
00049 #                       define SWIGIMPORT(a) extern a
00050 #               else
00051 #                       define SWIGEXPORT(a) __declspec(dllexport) a
00052 #                       define SWIGIMPORT(a) extern a
00053 #               endif
00054 #       else
00055 #               if defined(__BORLANDC__)
00056 #                       define SWIGEXPORT(a) a _export
00057 #                       define SWIGIMPORT(a) a _export
00058 #               else
00059 #                       define SWIGEXPORT(a) a
00060 #                       define SWIGIMPORT(a) a
00061 #               endif
00062 #       endif
00063 #else
00064 #       define SWIGEXPORT(a) a
00065 #       define SWIGIMPORT(a) a
00066 #endif
00067 
00068 #ifdef SWIG_GLOBAL
00069 #define SWIGRUNTIME(a) SWIGEXPORT(a)
00070 #else
00071 #define SWIGRUNTIME(a) static a
00072 #endif
00073 
00074 #ifdef __cplusplus
00075 extern "C" {
00076 #endif
00077 
00078 typedef void *(*swig_converter_func)(void *);
00079 typedef struct swig_type_info *(*swig_dycast_func)(void **);
00080 
00081 typedef struct swig_type_info {
00082   const char             *name;                 
00083   swig_converter_func     converter;
00084   const char             *str;
00085   void                   *clientdata;   
00086   swig_dycast_func        dcast;
00087   struct swig_type_info  *next;
00088   struct swig_type_info  *prev;
00089 } swig_type_info;
00090 
00091 #ifdef SWIG_NOINCLUDE
00092 
00093 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
00094 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
00095 SWIGIMPORT(void *)           SWIG_TypeCast(swig_type_info *, void *);
00096 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
00097 SWIGIMPORT(const char *)     SWIG_TypeName(const swig_type_info *);
00098 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
00099 SWIGIMPORT(void)             SWIG_TypeClientData(swig_type_info *, void *);
00100 
00101 #else
00102 
00103 static swig_type_info *swig_type_list = 0;
00104 
00105 /* Register a type mapping with the type-checking */
00106 SWIGRUNTIME(swig_type_info *)
00107 SWIG_TypeRegister(swig_type_info *ti)
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 }
00144 
00145 /* Check the typename */
00146 SWIGRUNTIME(swig_type_info *) 
00147 SWIG_TypeCheck(char *c, swig_type_info *ty)
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 }
00171 
00172 /* Cast a pointer up an inheritance hierarchy */
00173 SWIGRUNTIME(void *) 
00174 SWIG_TypeCast(swig_type_info *ty, void *ptr) 
00175 {
00176   if ((!ty) || (!ty->converter)) return ptr;
00177   return (*ty->converter)(ptr);
00178 }
00179 
00180 /* Dynamic pointer casting. Down an inheritance hierarchy */
00181 SWIGRUNTIME(swig_type_info *) 
00182 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) 
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 }
00192 
00193 /* Return the name associated with this type */
00194 SWIGRUNTIME(const char *)
00195 SWIG_TypeName(const swig_type_info *ty) {
00196   return ty->name;
00197 }
00198 
00199 /* Search for a swig_type_info structure */
00200 SWIGRUNTIME(swig_type_info *)
00201 SWIG_TypeQuery(const char *name) {
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 }
00210 
00211 /* Set the clientdata field for a type */
00212 SWIGRUNTIME(void)
00213 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
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 }
00230 #endif
00231 
00232 #ifdef __cplusplus
00233 }
00234 
00235 #endif
00236 
00237 /***********************************************************************
00238  * python.swg
00239  *
00240  *     This file contains the runtime support for Python modules
00241  *     and includes code for managing global variables and pointer
00242  *     type checking.
00243  *
00244  * Author : David Beazley (beazley@cs.uchicago.edu)
00245  ************************************************************************/
00246 
00247 #include "Python.h"
00248 
00249 #ifdef __cplusplus
00250 extern "C" {
00251 #endif
00252 
00253 #define SWIG_PY_INT     1
00254 #define SWIG_PY_FLOAT   2
00255 #define SWIG_PY_STRING  3
00256 #define SWIG_PY_POINTER 4
00257 #define SWIG_PY_BINARY  5
00258 
00259 /* Flags for pointer conversion */
00260 
00261 #define SWIG_POINTER_EXCEPTION     0x1
00262 #define SWIG_POINTER_DISOWN        0x2
00263 
00264 /* Exception handling in wrappers */
00265 #define SWIG_fail   goto fail
00266 
00267 /* Constant information structure */
00268 typedef struct swig_const_info {
00269     int type;
00270     char *name;
00271     long lvalue;
00272     double dvalue;
00273     void   *pvalue;
00274     swig_type_info **ptype;
00275 } swig_const_info;
00276 
00277 #ifdef SWIG_NOINCLUDE
00278 
00279 SWIGEXPORT(PyObject *)        SWIG_newvarlink(void);
00280 SWIGEXPORT(void)              SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
00281 SWIGEXPORT(int)               SWIG_ConvertPtr(PyObject *, void **, swig_type_info *, int);
00282 SWIGEXPORT(int)               SWIG_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
00283 SWIGEXPORT(char *)            SWIG_PackData(char *c, void *, int);
00284 SWIGEXPORT(char *)            SWIG_UnpackData(char *c, void *, int);
00285 SWIGEXPORT(PyObject *)        SWIG_NewPointerObj(void *, swig_type_info *,int own);
00286 SWIGEXPORT(PyObject *)        SWIG_NewPackedObj(void *, int sz, swig_type_info *);
00287 SWIGEXPORT(void)              SWIG_InstallConstants(PyObject *d, swig_const_info constants[]);
00288 #else
00289 
00290 /* -----------------------------------------------------------------------------
00291  * global variable support code.
00292  * ----------------------------------------------------------------------------- */
00293 
00294 typedef struct swig_globalvar {   
00295   char       *name;                  /* Name of global variable */
00296   PyObject *(*get_attr)(void);       /* Return the current value */
00297   int       (*set_attr)(PyObject *); /* Set the value */
00298   struct swig_globalvar *next;
00299 } swig_globalvar;
00300 
00301 typedef struct swig_varlinkobject {
00302   PyObject_HEAD
00303   swig_globalvar *vars;
00304 } swig_varlinkobject;
00305 
00306 static PyObject *
00307 swig_varlink_repr(swig_varlinkobject *v) {
00308   v = v;
00309   return PyString_FromString("<Global variables>");
00310 }
00311 
00312 static int
00313 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
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 }
00324 
00325 static PyObject *
00326 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
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 }
00337 
00338 static int
00339 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
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 }
00350 
00351 statichere PyTypeObject varlinktype = {
00352   PyObject_HEAD_INIT(0)              
00353   0,
00354   (char *)"swigvarlink",                      /* Type name    */
00355   sizeof(swig_varlinkobject),         /* Basic size   */
00356   0,                                  /* Itemsize     */
00357   0,                                  /* Deallocator  */ 
00358   (printfunc) swig_varlink_print,     /* Print        */
00359   (getattrfunc) swig_varlink_getattr, /* get attr     */
00360   (setattrfunc) swig_varlink_setattr, /* Set attr     */
00361   0,                                  /* tp_compare   */
00362   (reprfunc) swig_varlink_repr,       /* tp_repr      */    
00363   0,                                  /* tp_as_number */
00364   0,                                  /* tp_as_mapping*/
00365   0,                                  /* tp_hash      */
00366 };
00367 
00368 /* Create a variable linking object for use later */
00369 SWIGRUNTIME(PyObject *)
00370 SWIG_newvarlink(void) {
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 }
00380 
00381 SWIGRUNTIME(void)
00382 SWIG_addvarlink(PyObject *p, char *name,
00383            PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
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 }
00395 
00396 /* Pack binary data into a string */
00397 SWIGRUNTIME(char *)
00398 SWIG_PackData(char *c, void *ptr, int sz) {
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 }
00410 
00411 /* Unpack binary data from a string */
00412 SWIGRUNTIME(char *)
00413 SWIG_UnpackData(char *c, void *ptr, int sz) {
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 }
00433 
00434 /* Convert a pointer value */
00435 SWIGRUNTIME(int)
00436 SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
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 }
00525 
00526 /* Convert a packed value value */
00527 SWIGRUNTIME(int)
00528 SWIG_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags) {
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 }
00558 
00559 /* Create a new pointer object */
00560 SWIGRUNTIME(PyObject *)
00561 SWIG_NewPointerObj(void *ptr, swig_type_info *type, int own) {
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 }
00597 
00598 SWIGRUNTIME(PyObject *)
00599 SWIG_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
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 }
00608 
00609 /* Install Constants */
00610 SWIGRUNTIME(void)
00611 SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) {
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 }
00641 
00642 #endif
00643 
00644 #ifdef __cplusplus
00645 }
00646 #endif
00647 
00648 
00649 
00650 
00651 
00652 
00653 
00654 
00655 /* -------- TYPES TABLE (BEGIN) -------- */
00656 
00657 #define  SWIGTYPE_p_BeamData swig_types[0] 
00658 static swig_type_info *swig_types[2];
00659 
00660 /* -------- TYPES TABLE (END) -------- */
00661 
00662 
00663 /*-----------------------------------------------
00664               @(target):= _beamdata.so
00665   ------------------------------------------------*/
00666 #define SWIG_init    init_beamdata
00667 
00668 #define SWIG_name    "_beamdata"
00669 
00670 #include "BeamData.h"
00671 
00672 #ifdef __cplusplus
00673 extern "C" {
00674 #endif
00675 static PyObject *_wrap_new_BeamData(PyObject *self, PyObject *args) {
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 }
00687 
00688 
00689 static PyObject *_wrap_delete_BeamData(PyObject *self, PyObject *args) {
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 }
00703 
00704 
00705 static PyObject *_wrap_BeamData_open_connection(PyObject *self, PyObject *args) {
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 }
00721 
00722 
00723 static PyObject *_wrap_BeamData_close_connection(PyObject *self, PyObject *args) {
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 }
00738 
00739 
00740 static PyObject *_wrap_BeamData_open_file(PyObject *self, PyObject *args) {
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 }
00757 
00758 
00759 static PyObject *_wrap_BeamData_close_file(PyObject *self, PyObject *args) {
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 }
00774 
00775 
00776 static PyObject *_wrap_BeamData_send_data(PyObject *self, PyObject *args) {
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 }
00791 
00792 
00793 static PyObject *_wrap_BeamData_start_block(PyObject *self, PyObject *args) {
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 }
00812 
00813 
00814 static PyObject *_wrap_BeamData_set_device_header(PyObject *self, PyObject *args) {
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 }
00831 
00832 
00833 static PyObject *_wrap_BeamData_add_device_value(PyObject *self, PyObject *args) {
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 }
00849 
00850 
00851 static PyObject *_wrap_BeamData_current_filename(PyObject *self, PyObject *args) {
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 }
00866 
00867 
00868 static PyObject *_wrap_BeamData_error(PyObject *self, PyObject *args) {
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 }
00884 
00885 
00886 static PyObject * BeamData_swigregister(PyObject *self, PyObject *args) {
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 }
00893 static PyMethodDef SwigMethods[] = {
00894          { (char *)"new_BeamData", _wrap_new_BeamData, METH_VARARGS },
00895          { (char *)"delete_BeamData", _wrap_delete_BeamData, METH_VARARGS },
00896          { (char *)"BeamData_open_connection", _wrap_BeamData_open_connection, METH_VARARGS },
00897          { (char *)"BeamData_close_connection", _wrap_BeamData_close_connection, METH_VARARGS },
00898          { (char *)"BeamData_open_file", _wrap_BeamData_open_file, METH_VARARGS },
00899          { (char *)"BeamData_close_file", _wrap_BeamData_close_file, METH_VARARGS },
00900          { (char *)"BeamData_send_data", _wrap_BeamData_send_data, METH_VARARGS },
00901          { (char *)"BeamData_start_block", _wrap_BeamData_start_block, METH_VARARGS },
00902          { (char *)"BeamData_set_device_header", _wrap_BeamData_set_device_header, METH_VARARGS },
00903          { (char *)"BeamData_add_device_value", _wrap_BeamData_add_device_value, METH_VARARGS },
00904          { (char *)"BeamData_current_filename", _wrap_BeamData_current_filename, METH_VARARGS },
00905          { (char *)"BeamData_error", _wrap_BeamData_error, METH_VARARGS },
00906          { (char *)"BeamData_swigregister", BeamData_swigregister, METH_VARARGS },
00907          { NULL, NULL }
00908 };
00909 
00910 
00911 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
00912 
00913 static swig_type_info _swigt__p_BeamData[] = {{"_p_BeamData", 0, "BeamData *", 0},{"_p_BeamData"},{0}};
00914 
00915 static swig_type_info *swig_types_initial[] = {
00916 _swigt__p_BeamData, 
00917 0
00918 };
00919 
00920 
00921 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
00922 
00923 static swig_const_info swig_const_table[] = {
00924 {0}};
00925 
00926 #ifdef __cplusplus
00927 }
00928 #endif
00929 
00930 #ifdef __cplusplus
00931 extern "C"
00932 #endif
00933 SWIGEXPORT(void) SWIG_init(void) {
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 }
00951 

Generated on Mon Feb 15 11:06:24 2010 for loon by  doxygen 1.3.9.1