Commit b205207c authored by Pavel Vainerman's avatar Pavel Vainerman

(python): перегенерировались py-файлы (новый swig 3.0.6)

parent 233cdbe5
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.2 * Version 3.0.6
* *
* This file is not intended to be easily readable and contains a number of * 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 * coding conventions designed to improve portability and efficiency. Do not make
...@@ -144,6 +144,19 @@ template <typename T> T SwigValueInit() { ...@@ -144,6 +144,19 @@ template <typename T> T SwigValueInit() {
# define _SCL_SECURE_NO_DEPRECATE # define _SCL_SECURE_NO_DEPRECATE
#endif #endif
/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
#endif
/* Intel's compiler complains if a variable which was never initialised is
* cast to void, which is a common idiom which we use to indicate that we
* are aware a variable isn't used. So we just silence that warning.
* See: https://github.com/swig/swig/issues/192 for more discussion.
*/
#ifdef __INTEL_COMPILER
# pragma warning disable 592
#endif
#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
...@@ -1533,6 +1546,23 @@ typedef struct { ...@@ -1533,6 +1546,23 @@ typedef struct {
#endif #endif
} SwigPyObject; } SwigPyObject;
#ifdef SWIGPYTHON_BUILTIN
SWIGRUNTIME PyObject *
SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
{
SwigPyObject *sobj = (SwigPyObject *)v;
if (!sobj->dict)
sobj->dict = PyDict_New();
Py_INCREF(sobj->dict);
return sobj->dict;
}
#endif
SWIGRUNTIME PyObject * SWIGRUNTIME PyObject *
SwigPyObject_long(SwigPyObject *v) SwigPyObject_long(SwigPyObject *v)
{ {
...@@ -1803,7 +1833,7 @@ swigobject_methods[] = { ...@@ -1803,7 +1833,7 @@ swigobject_methods[] = {
static PyMethodDef static PyMethodDef
swigobject_methods[] = { swigobject_methods[] = {
{(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
{(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"acquires ownership of the pointer"},
{(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
{(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
{(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
...@@ -2572,18 +2602,21 @@ SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int f ...@@ -2572,18 +2602,21 @@ SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int f
newobj = (SwigPyObject *) newobj->next; newobj = (SwigPyObject *) newobj->next;
newobj->next = next_self; newobj->next = next_self;
newobj = (SwigPyObject *)next_self; newobj = (SwigPyObject *)next_self;
#ifdef SWIGPYTHON_BUILTIN
newobj->dict = 0;
#endif
} }
} else { } else {
newobj = PyObject_New(SwigPyObject, clientdata->pytype); newobj = PyObject_New(SwigPyObject, clientdata->pytype);
#ifdef SWIGPYTHON_BUILTIN
newobj->dict = 0;
#endif
} }
if (newobj) { if (newobj) {
newobj->ptr = ptr; newobj->ptr = ptr;
newobj->ty = type; newobj->ty = type;
newobj->own = own; newobj->own = own;
newobj->next = 0; newobj->next = 0;
#ifdef SWIGPYTHON_BUILTIN
newobj->dict = 0;
#endif
return (PyObject*) newobj; return (PyObject*) newobj;
} }
return SWIG_Py_Void(); return SWIG_Py_Void();
...@@ -2965,7 +2998,7 @@ static swig_module_info swig_module = {swig_types, 5, 0, 0, 0, 0}; ...@@ -2965,7 +2998,7 @@ static swig_module_info swig_module = {swig_types, 5, 0, 0, 0, 0};
#endif #endif
#define SWIG_name "_pyUConnector" #define SWIG_name "_pyUConnector"
#define SWIGVERSION 0x030002 #define SWIGVERSION 0x030006
#define SWIG_VERSION SWIGVERSION #define SWIG_VERSION SWIGVERSION
...@@ -2988,27 +3021,35 @@ namespace swig { ...@@ -2988,27 +3021,35 @@ namespace swig {
SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
{ {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
Py_XINCREF(_obj); Py_XINCREF(_obj);
SWIG_PYTHON_THREAD_END_BLOCK;
} }
SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
{ {
if (initial_ref) { if (initial_ref) {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
Py_XINCREF(_obj); Py_XINCREF(_obj);
SWIG_PYTHON_THREAD_END_BLOCK;
} }
} }
SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
{ {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
Py_XINCREF(item._obj); Py_XINCREF(item._obj);
Py_XDECREF(_obj); Py_XDECREF(_obj);
_obj = item._obj; _obj = item._obj;
SWIG_PYTHON_THREAD_END_BLOCK;
return *this; return *this;
} }
~SwigPtr_PyObject() ~SwigPtr_PyObject()
{ {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
Py_XDECREF(_obj); Py_XDECREF(_obj);
SWIG_PYTHON_THREAD_END_BLOCK;
} }
operator PyObject *() const operator PyObject *() const
...@@ -4139,7 +4180,7 @@ SWIGRUNTIME void ...@@ -4139,7 +4180,7 @@ SWIGRUNTIME void
SWIG_InitializeModule(void *clientdata) { SWIG_InitializeModule(void *clientdata) {
size_t i; size_t i;
swig_module_info *module_head, *iter; swig_module_info *module_head, *iter;
int found, init; int init;
/* check to see if the circular list has been setup, if not, set it up */ /* check to see if the circular list has been setup, if not, set it up */
if (swig_module.next==0) { if (swig_module.next==0) {
...@@ -4158,22 +4199,18 @@ SWIG_InitializeModule(void *clientdata) { ...@@ -4158,22 +4199,18 @@ SWIG_InitializeModule(void *clientdata) {
/* This is the first module loaded for this interpreter */ /* This is the first module loaded for this interpreter */
/* so set the swig module into the interpreter */ /* so set the swig module into the interpreter */
SWIG_SetModule(clientdata, &swig_module); SWIG_SetModule(clientdata, &swig_module);
module_head = &swig_module;
} else { } else {
/* the interpreter has loaded a SWIG module, but has it loaded this one? */ /* the interpreter has loaded a SWIG module, but has it loaded this one? */
found=0;
iter=module_head; iter=module_head;
do { do {
if (iter==&swig_module) { if (iter==&swig_module) {
found=1; /* Our module is already in the list, so there's nothing more to do. */
break; return;
} }
iter=iter->next; iter=iter->next;
} while (iter!= module_head); } while (iter!= module_head);
/* if the is found in the list, then all is done and we may leave */ /* otherwise we must add our module into the list */
if (found) return;
/* otherwise we must add out module into the list */
swig_module.next = module_head->next; swig_module.next = module_head->next;
module_head->next = &swig_module; module_head->next = &swig_module;
} }
...@@ -4584,7 +4621,9 @@ extern "C" { ...@@ -4584,7 +4621,9 @@ extern "C" {
size_t i; size_t i;
for (i = 0; methods[i].ml_name; ++i) { for (i = 0; methods[i].ml_name; ++i) {
const char *c = methods[i].ml_doc; const char *c = methods[i].ml_doc;
if (c && (c = strstr(c, "swig_ptr: "))) { if (!c) continue;
c = strstr(c, "swig_ptr: ");
if (c) {
int j; int j;
swig_const_info *ci = 0; swig_const_info *ci = 0;
const char *name = c + 10; const char *name = c + 10;
...@@ -4686,6 +4725,7 @@ SWIG_init(void) { ...@@ -4686,6 +4725,7 @@ SWIG_init(void) {
PyObject *public_interface, *public_symbol; PyObject *public_interface, *public_symbol;
PyObject *this_descr; PyObject *this_descr;
PyObject *thisown_descr; PyObject *thisown_descr;
PyObject *self = 0;
int i; int i;
(void)builtin_pytype; (void)builtin_pytype;
...@@ -4693,6 +4733,7 @@ SWIG_init(void) { ...@@ -4693,6 +4733,7 @@ SWIG_init(void) {
(void)builtin_basetype; (void)builtin_basetype;
(void)tuple; (void)tuple;
(void)static_getset; (void)static_getset;
(void)self;
/* metatype is used to implement static member variables. */ /* metatype is used to implement static member variables. */
metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type); metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type);
...@@ -4712,6 +4753,7 @@ SWIG_init(void) { ...@@ -4712,6 +4753,7 @@ SWIG_init(void) {
#else #else
m = Py_InitModule((char *) SWIG_name, SwigMethods); m = Py_InitModule((char *) SWIG_name, SwigMethods);
#endif #endif
md = d = PyModule_GetDict(m); md = d = PyModule_GetDict(m);
(void)md; (void)md;
......
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.2 * Version 3.0.6
* *
* This file is not intended to be easily readable and contains a number of * 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 * coding conventions designed to improve portability and efficiency. Do not make
...@@ -144,6 +144,19 @@ template <typename T> T SwigValueInit() { ...@@ -144,6 +144,19 @@ template <typename T> T SwigValueInit() {
# define _SCL_SECURE_NO_DEPRECATE # define _SCL_SECURE_NO_DEPRECATE
#endif #endif
/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
#endif
/* Intel's compiler complains if a variable which was never initialised is
* cast to void, which is a common idiom which we use to indicate that we
* are aware a variable isn't used. So we just silence that warning.
* See: https://github.com/swig/swig/issues/192 for more discussion.
*/
#ifdef __INTEL_COMPILER
# pragma warning disable 592
#endif
#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
...@@ -1533,6 +1546,23 @@ typedef struct { ...@@ -1533,6 +1546,23 @@ typedef struct {
#endif #endif
} SwigPyObject; } SwigPyObject;
#ifdef SWIGPYTHON_BUILTIN
SWIGRUNTIME PyObject *
SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
{
SwigPyObject *sobj = (SwigPyObject *)v;
if (!sobj->dict)
sobj->dict = PyDict_New();
Py_INCREF(sobj->dict);
return sobj->dict;
}
#endif
SWIGRUNTIME PyObject * SWIGRUNTIME PyObject *
SwigPyObject_long(SwigPyObject *v) SwigPyObject_long(SwigPyObject *v)
{ {
...@@ -1803,7 +1833,7 @@ swigobject_methods[] = { ...@@ -1803,7 +1833,7 @@ swigobject_methods[] = {
static PyMethodDef static PyMethodDef
swigobject_methods[] = { swigobject_methods[] = {
{(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
{(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"acquires ownership of the pointer"},
{(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
{(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
{(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
...@@ -2572,18 +2602,21 @@ SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int f ...@@ -2572,18 +2602,21 @@ SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int f
newobj = (SwigPyObject *) newobj->next; newobj = (SwigPyObject *) newobj->next;
newobj->next = next_self; newobj->next = next_self;
newobj = (SwigPyObject *)next_self; newobj = (SwigPyObject *)next_self;
#ifdef SWIGPYTHON_BUILTIN
newobj->dict = 0;
#endif
} }
} else { } else {
newobj = PyObject_New(SwigPyObject, clientdata->pytype); newobj = PyObject_New(SwigPyObject, clientdata->pytype);
#ifdef SWIGPYTHON_BUILTIN
newobj->dict = 0;
#endif
} }
if (newobj) { if (newobj) {
newobj->ptr = ptr; newobj->ptr = ptr;
newobj->ty = type; newobj->ty = type;
newobj->own = own; newobj->own = own;
newobj->next = 0; newobj->next = 0;
#ifdef SWIGPYTHON_BUILTIN
newobj->dict = 0;
#endif
return (PyObject*) newobj; return (PyObject*) newobj;
} }
return SWIG_Py_Void(); return SWIG_Py_Void();
...@@ -2965,7 +2998,7 @@ static swig_module_info swig_module = {swig_types, 5, 0, 0, 0, 0}; ...@@ -2965,7 +2998,7 @@ static swig_module_info swig_module = {swig_types, 5, 0, 0, 0, 0};
#endif #endif
#define SWIG_name "_pyUExceptions" #define SWIG_name "_pyUExceptions"
#define SWIGVERSION 0x030002 #define SWIGVERSION 0x030006
#define SWIG_VERSION SWIGVERSION #define SWIG_VERSION SWIGVERSION
...@@ -2988,27 +3021,35 @@ namespace swig { ...@@ -2988,27 +3021,35 @@ namespace swig {
SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
{ {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
Py_XINCREF(_obj); Py_XINCREF(_obj);
SWIG_PYTHON_THREAD_END_BLOCK;
} }
SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
{ {
if (initial_ref) { if (initial_ref) {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
Py_XINCREF(_obj); Py_XINCREF(_obj);
SWIG_PYTHON_THREAD_END_BLOCK;
} }
} }
SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
{ {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
Py_XINCREF(item._obj); Py_XINCREF(item._obj);
Py_XDECREF(_obj); Py_XDECREF(_obj);
_obj = item._obj; _obj = item._obj;
SWIG_PYTHON_THREAD_END_BLOCK;
return *this; return *this;
} }
~SwigPtr_PyObject() ~SwigPtr_PyObject()
{ {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
Py_XDECREF(_obj); Py_XDECREF(_obj);
SWIG_PYTHON_THREAD_END_BLOCK;
} }
operator PyObject *() const operator PyObject *() const
...@@ -3694,7 +3735,7 @@ SWIGRUNTIME void ...@@ -3694,7 +3735,7 @@ SWIGRUNTIME void
SWIG_InitializeModule(void *clientdata) { SWIG_InitializeModule(void *clientdata) {
size_t i; size_t i;
swig_module_info *module_head, *iter; swig_module_info *module_head, *iter;
int found, init; int init;
/* check to see if the circular list has been setup, if not, set it up */ /* check to see if the circular list has been setup, if not, set it up */
if (swig_module.next==0) { if (swig_module.next==0) {
...@@ -3713,22 +3754,18 @@ SWIG_InitializeModule(void *clientdata) { ...@@ -3713,22 +3754,18 @@ SWIG_InitializeModule(void *clientdata) {
/* This is the first module loaded for this interpreter */ /* This is the first module loaded for this interpreter */
/* so set the swig module into the interpreter */ /* so set the swig module into the interpreter */
SWIG_SetModule(clientdata, &swig_module); SWIG_SetModule(clientdata, &swig_module);
module_head = &swig_module;
} else { } else {
/* the interpreter has loaded a SWIG module, but has it loaded this one? */ /* the interpreter has loaded a SWIG module, but has it loaded this one? */
found=0;
iter=module_head; iter=module_head;
do { do {
if (iter==&swig_module) { if (iter==&swig_module) {
found=1; /* Our module is already in the list, so there's nothing more to do. */
break; return;
} }
iter=iter->next; iter=iter->next;
} while (iter!= module_head); } while (iter!= module_head);
/* if the is found in the list, then all is done and we may leave */ /* otherwise we must add our module into the list */
if (found) return;
/* otherwise we must add out module into the list */
swig_module.next = module_head->next; swig_module.next = module_head->next;
module_head->next = &swig_module; module_head->next = &swig_module;
} }
...@@ -4139,7 +4176,9 @@ extern "C" { ...@@ -4139,7 +4176,9 @@ extern "C" {
size_t i; size_t i;
for (i = 0; methods[i].ml_name; ++i) { for (i = 0; methods[i].ml_name; ++i) {
const char *c = methods[i].ml_doc; const char *c = methods[i].ml_doc;
if (c && (c = strstr(c, "swig_ptr: "))) { if (!c) continue;
c = strstr(c, "swig_ptr: ");
if (c) {
int j; int j;
swig_const_info *ci = 0; swig_const_info *ci = 0;
const char *name = c + 10; const char *name = c + 10;
...@@ -4241,6 +4280,7 @@ SWIG_init(void) { ...@@ -4241,6 +4280,7 @@ SWIG_init(void) {
PyObject *public_interface, *public_symbol; PyObject *public_interface, *public_symbol;
PyObject *this_descr; PyObject *this_descr;
PyObject *thisown_descr; PyObject *thisown_descr;
PyObject *self = 0;
int i; int i;
(void)builtin_pytype; (void)builtin_pytype;
...@@ -4248,6 +4288,7 @@ SWIG_init(void) { ...@@ -4248,6 +4288,7 @@ SWIG_init(void) {
(void)builtin_basetype; (void)builtin_basetype;
(void)tuple; (void)tuple;
(void)static_getset; (void)static_getset;
(void)self;
/* metatype is used to implement static member variables. */ /* metatype is used to implement static member variables. */
metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type); metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type);
...@@ -4267,6 +4308,7 @@ SWIG_init(void) { ...@@ -4267,6 +4308,7 @@ SWIG_init(void) {
#else #else
m = Py_InitModule((char *) SWIG_name, SwigMethods); m = Py_InitModule((char *) SWIG_name, SwigMethods);
#endif #endif
md = d = PyModule_GetDict(m); md = d = PyModule_GetDict(m);
(void)md; (void)md;
......
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.2 * Version 3.0.6
* *
* This file is not intended to be easily readable and contains a number of * 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 * coding conventions designed to improve portability and efficiency. Do not make
...@@ -144,6 +144,19 @@ template <typename T> T SwigValueInit() { ...@@ -144,6 +144,19 @@ template <typename T> T SwigValueInit() {
# define _SCL_SECURE_NO_DEPRECATE # define _SCL_SECURE_NO_DEPRECATE
#endif #endif
/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
#endif
/* Intel's compiler complains if a variable which was never initialised is
* cast to void, which is a common idiom which we use to indicate that we
* are aware a variable isn't used. So we just silence that warning.
* See: https://github.com/swig/swig/issues/192 for more discussion.
*/
#ifdef __INTEL_COMPILER
# pragma warning disable 592
#endif
#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
...@@ -1533,6 +1546,23 @@ typedef struct { ...@@ -1533,6 +1546,23 @@ typedef struct {
#endif #endif
} SwigPyObject; } SwigPyObject;
#ifdef SWIGPYTHON_BUILTIN
SWIGRUNTIME PyObject *
SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
{
SwigPyObject *sobj = (SwigPyObject *)v;
if (!sobj->dict)
sobj->dict = PyDict_New();
Py_INCREF(sobj->dict);
return sobj->dict;
}
#endif
SWIGRUNTIME PyObject * SWIGRUNTIME PyObject *
SwigPyObject_long(SwigPyObject *v) SwigPyObject_long(SwigPyObject *v)
{ {
...@@ -1803,7 +1833,7 @@ swigobject_methods[] = { ...@@ -1803,7 +1833,7 @@ swigobject_methods[] = {
static PyMethodDef static PyMethodDef
swigobject_methods[] = { swigobject_methods[] = {
{(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
{(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"acquires ownership of the pointer"},
{(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
{(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
{(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
...@@ -2572,18 +2602,21 @@ SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int f ...@@ -2572,18 +2602,21 @@ SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int f
newobj = (SwigPyObject *) newobj->next; newobj = (SwigPyObject *) newobj->next;
newobj->next = next_self; newobj->next = next_self;
newobj = (SwigPyObject *)next_self; newobj = (SwigPyObject *)next_self;
#ifdef SWIGPYTHON_BUILTIN
newobj->dict = 0;
#endif
} }
} else { } else {
newobj = PyObject_New(SwigPyObject, clientdata->pytype); newobj = PyObject_New(SwigPyObject, clientdata->pytype);
#ifdef SWIGPYTHON_BUILTIN
newobj->dict = 0;
#endif
} }
if (newobj) { if (newobj) {
newobj->ptr = ptr; newobj->ptr = ptr;
newobj->ty = type; newobj->ty = type;
newobj->own = own; newobj->own = own;
newobj->next = 0; newobj->next = 0;
#ifdef SWIGPYTHON_BUILTIN
newobj->dict = 0;
#endif
return (PyObject*) newobj; return (PyObject*) newobj;
} }
return SWIG_Py_Void(); return SWIG_Py_Void();
...@@ -2967,7 +3000,7 @@ static swig_module_info swig_module = {swig_types, 7, 0, 0, 0, 0}; ...@@ -2967,7 +3000,7 @@ static swig_module_info swig_module = {swig_types, 7, 0, 0, 0, 0};
#endif #endif
#define SWIG_name "_pyUniSet" #define SWIG_name "_pyUniSet"
#define SWIGVERSION 0x030002 #define SWIGVERSION 0x030006
#define SWIG_VERSION SWIGVERSION #define SWIG_VERSION SWIGVERSION
...@@ -2990,27 +3023,35 @@ namespace swig { ...@@ -2990,27 +3023,35 @@ namespace swig {
SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
{ {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
Py_XINCREF(_obj); Py_XINCREF(_obj);
SWIG_PYTHON_THREAD_END_BLOCK;
} }
SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
{ {
if (initial_ref) { if (initial_ref) {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
Py_XINCREF(_obj); Py_XINCREF(_obj);
SWIG_PYTHON_THREAD_END_BLOCK;
} }
} }
SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
{ {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
Py_XINCREF(item._obj); Py_XINCREF(item._obj);
Py_XDECREF(_obj); Py_XDECREF(_obj);
_obj = item._obj; _obj = item._obj;
SWIG_PYTHON_THREAD_END_BLOCK;
return *this; return *this;
} }
~SwigPtr_PyObject() ~SwigPtr_PyObject()
{ {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
Py_XDECREF(_obj); Py_XDECREF(_obj);
SWIG_PYTHON_THREAD_END_BLOCK;
} }
operator PyObject *() const operator PyObject *() const
...@@ -4352,7 +4393,7 @@ SWIGRUNTIME void ...@@ -4352,7 +4393,7 @@ SWIGRUNTIME void
SWIG_InitializeModule(void *clientdata) { SWIG_InitializeModule(void *clientdata) {
size_t i; size_t i;
swig_module_info *module_head, *iter; swig_module_info *module_head, *iter;
int found, init; int init;
/* check to see if the circular list has been setup, if not, set it up */ /* check to see if the circular list has been setup, if not, set it up */
if (swig_module.next==0) { if (swig_module.next==0) {
...@@ -4371,22 +4412,18 @@ SWIG_InitializeModule(void *clientdata) { ...@@ -4371,22 +4412,18 @@ SWIG_InitializeModule(void *clientdata) {
/* This is the first module loaded for this interpreter */ /* This is the first module loaded for this interpreter */
/* so set the swig module into the interpreter */ /* so set the swig module into the interpreter */
SWIG_SetModule(clientdata, &swig_module); SWIG_SetModule(clientdata, &swig_module);
module_head = &swig_module;
} else { } else {
/* the interpreter has loaded a SWIG module, but has it loaded this one? */ /* the interpreter has loaded a SWIG module, but has it loaded this one? */
found=0;
iter=module_head; iter=module_head;
do { do {
if (iter==&swig_module) { if (iter==&swig_module) {
found=1; /* Our module is already in the list, so there's nothing more to do. */
break; return;
} }
iter=iter->next; iter=iter->next;
} while (iter!= module_head); } while (iter!= module_head);
/* if the is found in the list, then all is done and we may leave */ /* otherwise we must add our module into the list */
if (found) return;
/* otherwise we must add out module into the list */
swig_module.next = module_head->next; swig_module.next = module_head->next;
module_head->next = &swig_module; module_head->next = &swig_module;
} }
...@@ -4797,7 +4834,9 @@ extern "C" { ...@@ -4797,7 +4834,9 @@ extern "C" {
size_t i; size_t i;
for (i = 0; methods[i].ml_name; ++i) { for (i = 0; methods[i].ml_name; ++i) {
const char *c = methods[i].ml_doc; const char *c = methods[i].ml_doc;
if (c && (c = strstr(c, "swig_ptr: "))) { if (!c) continue;
c = strstr(c, "swig_ptr: ");
if (c) {
int j; int j;
swig_const_info *ci = 0; swig_const_info *ci = 0;
const char *name = c + 10; const char *name = c + 10;
...@@ -4899,6 +4938,7 @@ SWIG_init(void) { ...@@ -4899,6 +4938,7 @@ SWIG_init(void) {
PyObject *public_interface, *public_symbol; PyObject *public_interface, *public_symbol;
PyObject *this_descr; PyObject *this_descr;
PyObject *thisown_descr; PyObject *thisown_descr;
PyObject *self = 0;
int i; int i;
(void)builtin_pytype; (void)builtin_pytype;
...@@ -4906,6 +4946,7 @@ SWIG_init(void) { ...@@ -4906,6 +4946,7 @@ SWIG_init(void) {
(void)builtin_basetype; (void)builtin_basetype;
(void)tuple; (void)tuple;
(void)static_getset; (void)static_getset;
(void)self;
/* metatype is used to implement static member variables. */ /* metatype is used to implement static member variables. */
metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type); metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type);
...@@ -4925,6 +4966,7 @@ SWIG_init(void) { ...@@ -4925,6 +4966,7 @@ SWIG_init(void) {
#else #else
m = Py_InitModule((char *) SWIG_name, SwigMethods); m = Py_InitModule((char *) SWIG_name, SwigMethods);
#endif #endif
md = d = PyModule_GetDict(m); md = d = PyModule_GetDict(m);
(void)md; (void)md;
......
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.2 * Version 3.0.6
* *
* This file is not intended to be easily readable and contains a number of * 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 * coding conventions designed to improve portability and efficiency. Do not make
...@@ -144,6 +144,19 @@ template <typename T> T SwigValueInit() { ...@@ -144,6 +144,19 @@ template <typename T> T SwigValueInit() {
# define _SCL_SECURE_NO_DEPRECATE # define _SCL_SECURE_NO_DEPRECATE
#endif #endif
/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
#endif
/* Intel's compiler complains if a variable which was never initialised is
* cast to void, which is a common idiom which we use to indicate that we
* are aware a variable isn't used. So we just silence that warning.
* See: https://github.com/swig/swig/issues/192 for more discussion.
*/
#ifdef __INTEL_COMPILER
# pragma warning disable 592
#endif
#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
...@@ -1533,6 +1546,23 @@ typedef struct { ...@@ -1533,6 +1546,23 @@ typedef struct {
#endif #endif
} SwigPyObject; } SwigPyObject;
#ifdef SWIGPYTHON_BUILTIN
SWIGRUNTIME PyObject *
SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
{
SwigPyObject *sobj = (SwigPyObject *)v;
if (!sobj->dict)
sobj->dict = PyDict_New();
Py_INCREF(sobj->dict);
return sobj->dict;
}
#endif
SWIGRUNTIME PyObject * SWIGRUNTIME PyObject *
SwigPyObject_long(SwigPyObject *v) SwigPyObject_long(SwigPyObject *v)
{ {
...@@ -1803,7 +1833,7 @@ swigobject_methods[] = { ...@@ -1803,7 +1833,7 @@ swigobject_methods[] = {
static PyMethodDef static PyMethodDef
swigobject_methods[] = { swigobject_methods[] = {
{(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
{(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"acquires ownership of the pointer"},
{(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
{(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
{(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
...@@ -2572,18 +2602,21 @@ SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int f ...@@ -2572,18 +2602,21 @@ SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int f
newobj = (SwigPyObject *) newobj->next; newobj = (SwigPyObject *) newobj->next;
newobj->next = next_self; newobj->next = next_self;
newobj = (SwigPyObject *)next_self; newobj = (SwigPyObject *)next_self;
#ifdef SWIGPYTHON_BUILTIN
newobj->dict = 0;
#endif
} }
} else { } else {
newobj = PyObject_New(SwigPyObject, clientdata->pytype); newobj = PyObject_New(SwigPyObject, clientdata->pytype);
#ifdef SWIGPYTHON_BUILTIN
newobj->dict = 0;
#endif
} }
if (newobj) { if (newobj) {
newobj->ptr = ptr; newobj->ptr = ptr;
newobj->ty = type; newobj->ty = type;
newobj->own = own; newobj->own = own;
newobj->next = 0; newobj->next = 0;
#ifdef SWIGPYTHON_BUILTIN
newobj->dict = 0;
#endif
return (PyObject*) newobj; return (PyObject*) newobj;
} }
return SWIG_Py_Void(); return SWIG_Py_Void();
...@@ -2968,7 +3001,7 @@ static swig_module_info swig_module = {swig_types, 8, 0, 0, 0, 0}; ...@@ -2968,7 +3001,7 @@ static swig_module_info swig_module = {swig_types, 8, 0, 0, 0, 0};
#endif #endif
#define SWIG_name "_pyUModbus" #define SWIG_name "_pyUModbus"
#define SWIGVERSION 0x030002 #define SWIGVERSION 0x030006
#define SWIG_VERSION SWIGVERSION #define SWIG_VERSION SWIGVERSION
...@@ -2991,27 +3024,35 @@ namespace swig { ...@@ -2991,27 +3024,35 @@ namespace swig {
SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
{ {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
Py_XINCREF(_obj); Py_XINCREF(_obj);
SWIG_PYTHON_THREAD_END_BLOCK;
} }
SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
{ {
if (initial_ref) { if (initial_ref) {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
Py_XINCREF(_obj); Py_XINCREF(_obj);
SWIG_PYTHON_THREAD_END_BLOCK;
} }
} }
SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
{ {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
Py_XINCREF(item._obj); Py_XINCREF(item._obj);
Py_XDECREF(_obj); Py_XDECREF(_obj);
_obj = item._obj; _obj = item._obj;
SWIG_PYTHON_THREAD_END_BLOCK;
return *this; return *this;
} }
~SwigPtr_PyObject() ~SwigPtr_PyObject()
{ {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
Py_XDECREF(_obj); Py_XDECREF(_obj);
SWIG_PYTHON_THREAD_END_BLOCK;
} }
operator PyObject *() const operator PyObject *() const
...@@ -5764,7 +5805,7 @@ SWIGRUNTIME void ...@@ -5764,7 +5805,7 @@ SWIGRUNTIME void
SWIG_InitializeModule(void *clientdata) { SWIG_InitializeModule(void *clientdata) {
size_t i; size_t i;
swig_module_info *module_head, *iter; swig_module_info *module_head, *iter;
int found, init; int init;
/* check to see if the circular list has been setup, if not, set it up */ /* check to see if the circular list has been setup, if not, set it up */
if (swig_module.next==0) { if (swig_module.next==0) {
...@@ -5783,22 +5824,18 @@ SWIG_InitializeModule(void *clientdata) { ...@@ -5783,22 +5824,18 @@ SWIG_InitializeModule(void *clientdata) {
/* This is the first module loaded for this interpreter */ /* This is the first module loaded for this interpreter */
/* so set the swig module into the interpreter */ /* so set the swig module into the interpreter */
SWIG_SetModule(clientdata, &swig_module); SWIG_SetModule(clientdata, &swig_module);
module_head = &swig_module;
} else { } else {
/* the interpreter has loaded a SWIG module, but has it loaded this one? */ /* the interpreter has loaded a SWIG module, but has it loaded this one? */
found=0;
iter=module_head; iter=module_head;
do { do {
if (iter==&swig_module) { if (iter==&swig_module) {
found=1; /* Our module is already in the list, so there's nothing more to do. */
break; return;
} }
iter=iter->next; iter=iter->next;
} while (iter!= module_head); } while (iter!= module_head);
/* if the is found in the list, then all is done and we may leave */ /* otherwise we must add our module into the list */
if (found) return;
/* otherwise we must add out module into the list */
swig_module.next = module_head->next; swig_module.next = module_head->next;
module_head->next = &swig_module; module_head->next = &swig_module;
} }
...@@ -6209,7 +6246,9 @@ extern "C" { ...@@ -6209,7 +6246,9 @@ extern "C" {
size_t i; size_t i;
for (i = 0; methods[i].ml_name; ++i) { for (i = 0; methods[i].ml_name; ++i) {
const char *c = methods[i].ml_doc; const char *c = methods[i].ml_doc;
if (c && (c = strstr(c, "swig_ptr: "))) { if (!c) continue;
c = strstr(c, "swig_ptr: ");
if (c) {
int j; int j;
swig_const_info *ci = 0; swig_const_info *ci = 0;
const char *name = c + 10; const char *name = c + 10;
...@@ -6311,6 +6350,7 @@ SWIG_init(void) { ...@@ -6311,6 +6350,7 @@ SWIG_init(void) {
PyObject *public_interface, *public_symbol; PyObject *public_interface, *public_symbol;
PyObject *this_descr; PyObject *this_descr;
PyObject *thisown_descr; PyObject *thisown_descr;
PyObject *self = 0;
int i; int i;
(void)builtin_pytype; (void)builtin_pytype;
...@@ -6318,6 +6358,7 @@ SWIG_init(void) { ...@@ -6318,6 +6358,7 @@ SWIG_init(void) {
(void)builtin_basetype; (void)builtin_basetype;
(void)tuple; (void)tuple;
(void)static_getset; (void)static_getset;
(void)self;
/* metatype is used to implement static member variables. */ /* metatype is used to implement static member variables. */
metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type); metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type);
...@@ -6337,6 +6378,7 @@ SWIG_init(void) { ...@@ -6337,6 +6378,7 @@ SWIG_init(void) {
#else #else
m = Py_InitModule((char *) SWIG_name, SwigMethods); m = Py_InitModule((char *) SWIG_name, SwigMethods);
#endif #endif
md = d = PyModule_GetDict(m); md = d = PyModule_GetDict(m);
(void)md; (void)md;
......
# This file was automatically generated by SWIG (http://www.swig.org). # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.2 # Version 3.0.6
# #
# Do not make changes to this file unless you know what you are doing--modify # Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead. # the SWIG interface file instead.
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
from sys import version_info from sys import version_info
if version_info >= (2,6,0): if version_info >= (2, 6, 0):
def swig_import_helper(): def swig_import_helper():
from os.path import dirname from os.path import dirname
import imp import imp
...@@ -30,31 +30,47 @@ if version_info >= (2,6,0): ...@@ -30,31 +30,47 @@ if version_info >= (2,6,0):
else: else:
import _pyUConnector import _pyUConnector
del version_info del version_info
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
if (name == "thisown"): return self.this.own(value) def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if (name == "thisown"):
return self.this.own(value)
if (name == "this"): if (name == "this"):
if type(value).__name__ == 'SwigPyObject': if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value self.__dict__[name] = value
return return
method = class_type.__swig_setmethods__.get(name,None) method = class_type.__swig_setmethods__.get(name, None)
if method: return method(self,value) if method:
return method(self, value)
if (not static): if (not static):
self.__dict__[name] = value self.__dict__[name] = value
else: else:
raise AttributeError("You cannot add attributes to %s" % self) raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self,class_type,name,value):
return _swig_setattr_nondynamic(self,class_type,name,value,0)
def _swig_getattr(self,class_type,name): def _swig_setattr(self, class_type, name, value):
if (name == "thisown"): return self.this.own() return _swig_setattr_nondynamic(self, class_type, name, value, 0)
method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self)
raise AttributeError(name) def _swig_getattr_nondynamic(self, class_type, name, static=1):
if (name == "thisown"):
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
if (not static):
return object.__getattr__(self, name)
else:
raise AttributeError(name)
def _swig_getattr(self, class_type, name):
return _swig_getattr_nondynamic(self, class_type, name, 0)
def _swig_repr(self): def _swig_repr(self):
try: strthis = "proxy of " + self.this.__repr__() try:
except: strthis = "" strthis = "proxy of " + self.this.__repr__()
except:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
class Params: class Params:
...@@ -64,25 +80,30 @@ class Params: ...@@ -64,25 +80,30 @@ class Params:
__getattr__ = lambda self, name: _swig_getattr(self, Params, name) __getattr__ = lambda self, name: _swig_getattr(self, Params, name)
__repr__ = _swig_repr __repr__ = _swig_repr
max = _pyUConnector.Params_max max = _pyUConnector.Params_max
def __init__(self):
def __init__(self):
this = _pyUConnector.new_Params() this = _pyUConnector.new_Params()
try: self.this.append(this) try:
except: self.this = this self.this.append(this)
def add(self, *args): return _pyUConnector.Params_add(self, *args) except:
self.this = this
def add(self, s):
return _pyUConnector.Params_add(self, s)
__swig_setmethods__["argc"] = _pyUConnector.Params_argc_set __swig_setmethods__["argc"] = _pyUConnector.Params_argc_set
__swig_getmethods__["argc"] = _pyUConnector.Params_argc_get __swig_getmethods__["argc"] = _pyUConnector.Params_argc_get
__swig_setmethods__["argv"] = _pyUConnector.Params_argv_set __swig_setmethods__["argv"] = _pyUConnector.Params_argv_set
__swig_getmethods__["argv"] = _pyUConnector.Params_argv_get __swig_getmethods__["argv"] = _pyUConnector.Params_argv_get
__swig_getmethods__["inst"] = lambda x: _pyUConnector.Params_inst __swig_getmethods__["inst"] = lambda x: _pyUConnector.Params_inst
__swig_destroy__ = _pyUConnector.delete_Params __swig_destroy__ = _pyUConnector.delete_Params
__del__ = lambda self : None; __del__ = lambda self: None
Params_swigregister = _pyUConnector.Params_swigregister Params_swigregister = _pyUConnector.Params_swigregister
Params_swigregister(Params) Params_swigregister(Params)
cvar = _pyUConnector.cvar cvar = _pyUConnector.cvar
DefaultID = cvar.DefaultID DefaultID = cvar.DefaultID
def Params_inst(): def Params_inst():
return _pyUConnector.Params_inst() return _pyUConnector.Params_inst()
Params_inst = _pyUConnector.Params_inst Params_inst = _pyUConnector.Params_inst
class UConnector: class UConnector:
...@@ -91,21 +112,42 @@ class UConnector: ...@@ -91,21 +112,42 @@ class UConnector:
__swig_getmethods__ = {} __swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, UConnector, name) __getattr__ = lambda self, name: _swig_getattr(self, UConnector, name)
__repr__ = _swig_repr __repr__ = _swig_repr
def __init__(self, *args):
def __init__(self, *args):
this = _pyUConnector.new_UConnector(*args) this = _pyUConnector.new_UConnector(*args)
try: self.this.append(this) try:
except: self.this = this self.this.append(this)
except:
self.this = this
__swig_destroy__ = _pyUConnector.delete_UConnector __swig_destroy__ = _pyUConnector.delete_UConnector
__del__ = lambda self : None; __del__ = lambda self: None
def getUIType(self): return _pyUConnector.UConnector_getUIType(self)
def getConfFileName(self): return _pyUConnector.UConnector_getConfFileName(self) def getUIType(self):
def getValue(self, *args): return _pyUConnector.UConnector_getValue(self, *args) return _pyUConnector.UConnector_getUIType(self)
def setValue(self, *args): return _pyUConnector.UConnector_setValue(self, *args)
def getSensorID(self, *args): return _pyUConnector.UConnector_getSensorID(self, *args) def getConfFileName(self):
def getNodeID(self, *args): return _pyUConnector.UConnector_getNodeID(self, *args) return _pyUConnector.UConnector_getConfFileName(self)
def getShortName(self, *args): return _pyUConnector.UConnector_getShortName(self, *args)
def getName(self, *args): return _pyUConnector.UConnector_getName(self, *args) def getValue(self, id, node):
def getTextName(self, *args): return _pyUConnector.UConnector_getTextName(self, *args) return _pyUConnector.UConnector_getValue(self, id, node)
def setValue(self, id, val, node):
return _pyUConnector.UConnector_setValue(self, id, val, node)
def getSensorID(self, arg2):
return _pyUConnector.UConnector_getSensorID(self, arg2)
def getNodeID(self, arg2):
return _pyUConnector.UConnector_getNodeID(self, arg2)
def getShortName(self, id):
return _pyUConnector.UConnector_getShortName(self, id)
def getName(self, id):
return _pyUConnector.UConnector_getName(self, id)
def getTextName(self, id):
return _pyUConnector.UConnector_getTextName(self, id)
UConnector_swigregister = _pyUConnector.UConnector_swigregister UConnector_swigregister = _pyUConnector.UConnector_swigregister
UConnector_swigregister(UConnector) UConnector_swigregister(UConnector)
......
# This file was automatically generated by SWIG (http://www.swig.org). # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.2 # Version 3.0.6
# #
# Do not make changes to this file unless you know what you are doing--modify # Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead. # the SWIG interface file instead.
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
from sys import version_info from sys import version_info
if version_info >= (2,6,0): if version_info >= (2, 6, 0):
def swig_import_helper(): def swig_import_helper():
from os.path import dirname from os.path import dirname
import imp import imp
...@@ -30,31 +30,47 @@ if version_info >= (2,6,0): ...@@ -30,31 +30,47 @@ if version_info >= (2,6,0):
else: else:
import _pyUExceptions import _pyUExceptions
del version_info del version_info
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
if (name == "thisown"): return self.this.own(value) def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if (name == "thisown"):
return self.this.own(value)
if (name == "this"): if (name == "this"):
if type(value).__name__ == 'SwigPyObject': if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value self.__dict__[name] = value
return return
method = class_type.__swig_setmethods__.get(name,None) method = class_type.__swig_setmethods__.get(name, None)
if method: return method(self,value) if method:
return method(self, value)
if (not static): if (not static):
self.__dict__[name] = value self.__dict__[name] = value
else: else:
raise AttributeError("You cannot add attributes to %s" % self) raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self,class_type,name,value):
return _swig_setattr_nondynamic(self,class_type,name,value,0)
def _swig_getattr(self,class_type,name): def _swig_setattr(self, class_type, name, value):
if (name == "thisown"): return self.this.own() return _swig_setattr_nondynamic(self, class_type, name, value, 0)
method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self)
raise AttributeError(name) def _swig_getattr_nondynamic(self, class_type, name, static=1):
if (name == "thisown"):
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
if (not static):
return object.__getattr__(self, name)
else:
raise AttributeError(name)
def _swig_getattr(self, class_type, name):
return _swig_getattr_nondynamic(self, class_type, name, 0)
def _swig_repr(self): def _swig_repr(self):
try: strthis = "proxy of " + self.this.__repr__() try:
except: strthis = "" strthis = "proxy of " + self.this.__repr__()
except:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
class UException: class UException:
...@@ -63,13 +79,18 @@ class UException: ...@@ -63,13 +79,18 @@ class UException:
__swig_getmethods__ = {} __swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, UException, name) __getattr__ = lambda self, name: _swig_getattr(self, UException, name)
__repr__ = _swig_repr __repr__ = _swig_repr
def __init__(self, *args):
def __init__(self, *args):
this = _pyUExceptions.new_UException(*args) this = _pyUExceptions.new_UException(*args)
try: self.this.append(this) try:
except: self.this = this self.this.append(this)
except:
self.this = this
__swig_destroy__ = _pyUExceptions.delete_UException __swig_destroy__ = _pyUExceptions.delete_UException
__del__ = lambda self : None; __del__ = lambda self: None
def getError(self): return _pyUExceptions.UException_getError(self)
def getError(self):
return _pyUExceptions.UException_getError(self)
__swig_setmethods__["err"] = _pyUExceptions.UException_err_set __swig_setmethods__["err"] = _pyUExceptions.UException_err_set
__swig_getmethods__["err"] = _pyUExceptions.UException_err_get __swig_getmethods__["err"] = _pyUExceptions.UException_err_get
UException_swigregister = _pyUExceptions.UException_swigregister UException_swigregister = _pyUExceptions.UException_swigregister
...@@ -77,35 +98,45 @@ UException_swigregister(UException) ...@@ -77,35 +98,45 @@ UException_swigregister(UException)
class UTimeOut(UException): class UTimeOut(UException):
__swig_setmethods__ = {} __swig_setmethods__ = {}
for _s in [UException]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) for _s in [UException]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, UTimeOut, name, value) __setattr__ = lambda self, name, value: _swig_setattr(self, UTimeOut, name, value)
__swig_getmethods__ = {} __swig_getmethods__ = {}
for _s in [UException]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) for _s in [UException]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, UTimeOut, name) __getattr__ = lambda self, name: _swig_getattr(self, UTimeOut, name)
__repr__ = _swig_repr __repr__ = _swig_repr
def __init__(self, *args):
def __init__(self, *args):
this = _pyUExceptions.new_UTimeOut(*args) this = _pyUExceptions.new_UTimeOut(*args)
try: self.this.append(this) try:
except: self.this = this self.this.append(this)
except:
self.this = this
__swig_destroy__ = _pyUExceptions.delete_UTimeOut __swig_destroy__ = _pyUExceptions.delete_UTimeOut
__del__ = lambda self : None; __del__ = lambda self: None
UTimeOut_swigregister = _pyUExceptions.UTimeOut_swigregister UTimeOut_swigregister = _pyUExceptions.UTimeOut_swigregister
UTimeOut_swigregister(UTimeOut) UTimeOut_swigregister(UTimeOut)
class USysError(UException): class USysError(UException):
__swig_setmethods__ = {} __swig_setmethods__ = {}
for _s in [UException]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) for _s in [UException]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, USysError, name, value) __setattr__ = lambda self, name, value: _swig_setattr(self, USysError, name, value)
__swig_getmethods__ = {} __swig_getmethods__ = {}
for _s in [UException]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) for _s in [UException]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, USysError, name) __getattr__ = lambda self, name: _swig_getattr(self, USysError, name)
__repr__ = _swig_repr __repr__ = _swig_repr
def __init__(self, *args):
def __init__(self, *args):
this = _pyUExceptions.new_USysError(*args) this = _pyUExceptions.new_USysError(*args)
try: self.this.append(this) try:
except: self.this = this self.this.append(this)
except:
self.this = this
__swig_destroy__ = _pyUExceptions.delete_USysError __swig_destroy__ = _pyUExceptions.delete_USysError
__del__ = lambda self : None; __del__ = lambda self: None
USysError_swigregister = _pyUExceptions.USysError_swigregister USysError_swigregister = _pyUExceptions.USysError_swigregister
USysError_swigregister(USysError) USysError_swigregister(USysError)
......
# This file was automatically generated by SWIG (http://www.swig.org). # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.2 # Version 3.0.6
# #
# Do not make changes to this file unless you know what you are doing--modify # Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead. # the SWIG interface file instead.
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
from sys import version_info from sys import version_info
if version_info >= (2,6,0): if version_info >= (2, 6, 0):
def swig_import_helper(): def swig_import_helper():
from os.path import dirname from os.path import dirname
import imp import imp
...@@ -30,31 +30,47 @@ if version_info >= (2,6,0): ...@@ -30,31 +30,47 @@ if version_info >= (2,6,0):
else: else:
import _pyUModbus import _pyUModbus
del version_info del version_info
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
if (name == "thisown"): return self.this.own(value) def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if (name == "thisown"):
return self.this.own(value)
if (name == "this"): if (name == "this"):
if type(value).__name__ == 'SwigPyObject': if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value self.__dict__[name] = value
return return
method = class_type.__swig_setmethods__.get(name,None) method = class_type.__swig_setmethods__.get(name, None)
if method: return method(self,value) if method:
return method(self, value)
if (not static): if (not static):
self.__dict__[name] = value self.__dict__[name] = value
else: else:
raise AttributeError("You cannot add attributes to %s" % self) raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self,class_type,name,value):
return _swig_setattr_nondynamic(self,class_type,name,value,0)
def _swig_getattr(self,class_type,name): def _swig_setattr(self, class_type, name, value):
if (name == "thisown"): return self.this.own() return _swig_setattr_nondynamic(self, class_type, name, value, 0)
method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self)
raise AttributeError(name) def _swig_getattr_nondynamic(self, class_type, name, static=1):
if (name == "thisown"):
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
if (not static):
return object.__getattr__(self, name)
else:
raise AttributeError(name)
def _swig_getattr(self, class_type, name):
return _swig_getattr_nondynamic(self, class_type, name, 0)
def _swig_repr(self): def _swig_repr(self):
try: strthis = "proxy of " + self.this.__repr__() try:
except: strthis = "" strthis = "proxy of " + self.this.__repr__()
except:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
class UModbus: class UModbus:
...@@ -63,25 +79,54 @@ class UModbus: ...@@ -63,25 +79,54 @@ class UModbus:
__swig_getmethods__ = {} __swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, UModbus, name) __getattr__ = lambda self, name: _swig_getattr(self, UModbus, name)
__repr__ = _swig_repr __repr__ = _swig_repr
def __init__(self):
def __init__(self):
this = _pyUModbus.new_UModbus() this = _pyUModbus.new_UModbus()
try: self.this.append(this) try:
except: self.this = this self.this.append(this)
except:
self.this = this
__swig_destroy__ = _pyUModbus.delete_UModbus __swig_destroy__ = _pyUModbus.delete_UModbus
__del__ = lambda self : None; __del__ = lambda self: None
def getUIType(self): return _pyUModbus.UModbus_getUIType(self)
def isWriteFunction(self, *args): return _pyUModbus.UModbus_isWriteFunction(self, *args) def getUIType(self):
def prepare(self, *args): return _pyUModbus.UModbus_prepare(self, *args) return _pyUModbus.UModbus_getUIType(self)
def connect(self, *args): return _pyUModbus.UModbus_connect(self, *args)
def conn_port(self): return _pyUModbus.UModbus_conn_port(self) def isWriteFunction(self, mbfunc):
def conn_ip(self): return _pyUModbus.UModbus_conn_ip(self) return _pyUModbus.UModbus_isWriteFunction(self, mbfunc)
def isConnection(self): return _pyUModbus.UModbus_isConnection(self)
def setTimeout(self, *args): return _pyUModbus.UModbus_setTimeout(self, *args) def prepare(self, ip, port):
def mbread(self, *args): return _pyUModbus.UModbus_mbread(self, *args) return _pyUModbus.UModbus_prepare(self, ip, port)
def getWord(self, *args): return _pyUModbus.UModbus_getWord(self, *args)
def getByte(self, *args): return _pyUModbus.UModbus_getByte(self, *args) def connect(self, ip, port):
def getBit(self, *args): return _pyUModbus.UModbus_getBit(self, *args) return _pyUModbus.UModbus_connect(self, ip, port)
def mbwrite(self, *args): return _pyUModbus.UModbus_mbwrite(self, *args)
def conn_port(self):
return _pyUModbus.UModbus_conn_port(self)
def conn_ip(self):
return _pyUModbus.UModbus_conn_ip(self)
def isConnection(self):
return _pyUModbus.UModbus_isConnection(self)
def setTimeout(self, msec):
return _pyUModbus.UModbus_setTimeout(self, msec)
def mbread(self, addr, mbreg, mbfunc, vtype, nbit=-1, ip=None, port=-1):
return _pyUModbus.UModbus_mbread(self, addr, mbreg, mbfunc, vtype, nbit, ip, port)
def getWord(self, addr, mbreg, mbfunc=0x4):
return _pyUModbus.UModbus_getWord(self, addr, mbreg, mbfunc)
def getByte(self, addr, mbreg, mbfunc=0x4):
return _pyUModbus.UModbus_getByte(self, addr, mbreg, mbfunc)
def getBit(self, addr, mbreg, mbfunc=0x2):
return _pyUModbus.UModbus_getBit(self, addr, mbreg, mbfunc)
def mbwrite(self, addr, mbreg, val, mbfunc, ip=None, port=-1):
return _pyUModbus.UModbus_mbwrite(self, addr, mbreg, val, mbfunc, ip, port)
UModbus_swigregister = _pyUModbus.UModbus_swigregister UModbus_swigregister = _pyUModbus.UModbus_swigregister
UModbus_swigregister(UModbus) UModbus_swigregister(UModbus)
...@@ -92,25 +137,30 @@ class Params: ...@@ -92,25 +137,30 @@ class Params:
__getattr__ = lambda self, name: _swig_getattr(self, Params, name) __getattr__ = lambda self, name: _swig_getattr(self, Params, name)
__repr__ = _swig_repr __repr__ = _swig_repr
max = _pyUModbus.Params_max max = _pyUModbus.Params_max
def __init__(self):
def __init__(self):
this = _pyUModbus.new_Params() this = _pyUModbus.new_Params()
try: self.this.append(this) try:
except: self.this = this self.this.append(this)
def add(self, *args): return _pyUModbus.Params_add(self, *args) except:
self.this = this
def add(self, s):
return _pyUModbus.Params_add(self, s)
__swig_setmethods__["argc"] = _pyUModbus.Params_argc_set __swig_setmethods__["argc"] = _pyUModbus.Params_argc_set
__swig_getmethods__["argc"] = _pyUModbus.Params_argc_get __swig_getmethods__["argc"] = _pyUModbus.Params_argc_get
__swig_setmethods__["argv"] = _pyUModbus.Params_argv_set __swig_setmethods__["argv"] = _pyUModbus.Params_argv_set
__swig_getmethods__["argv"] = _pyUModbus.Params_argv_get __swig_getmethods__["argv"] = _pyUModbus.Params_argv_get
__swig_getmethods__["inst"] = lambda x: _pyUModbus.Params_inst __swig_getmethods__["inst"] = lambda x: _pyUModbus.Params_inst
__swig_destroy__ = _pyUModbus.delete_Params __swig_destroy__ = _pyUModbus.delete_Params
__del__ = lambda self : None; __del__ = lambda self: None
Params_swigregister = _pyUModbus.Params_swigregister Params_swigregister = _pyUModbus.Params_swigregister
Params_swigregister(Params) Params_swigregister(Params)
cvar = _pyUModbus.cvar cvar = _pyUModbus.cvar
DefaultID = cvar.DefaultID DefaultID = cvar.DefaultID
def Params_inst(): def Params_inst():
return _pyUModbus.Params_inst() return _pyUModbus.Params_inst()
Params_inst = _pyUModbus.Params_inst Params_inst = _pyUModbus.Params_inst
class UException(Exception): class UException(Exception):
...@@ -119,13 +169,18 @@ class UException(Exception): ...@@ -119,13 +169,18 @@ class UException(Exception):
__swig_getmethods__ = {} __swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, UException, name) __getattr__ = lambda self, name: _swig_getattr(self, UException, name)
__repr__ = _swig_repr __repr__ = _swig_repr
def __init__(self, *args):
def __init__(self, *args):
this = _pyUModbus.new_UException(*args) this = _pyUModbus.new_UException(*args)
try: self.this.append(this) try:
except: self.this = this self.this.append(this)
except:
self.this = this
__swig_destroy__ = _pyUModbus.delete_UException __swig_destroy__ = _pyUModbus.delete_UException
__del__ = lambda self : None; __del__ = lambda self: None
def getError(self): return _pyUModbus.UException_getError(self)
def getError(self):
return _pyUModbus.UException_getError(self)
__swig_setmethods__["err"] = _pyUModbus.UException_err_set __swig_setmethods__["err"] = _pyUModbus.UException_err_set
__swig_getmethods__["err"] = _pyUModbus.UException_err_get __swig_getmethods__["err"] = _pyUModbus.UException_err_get
UException_swigregister = _pyUModbus.UException_swigregister UException_swigregister = _pyUModbus.UException_swigregister
...@@ -133,35 +188,45 @@ UException_swigregister(UException) ...@@ -133,35 +188,45 @@ UException_swigregister(UException)
class UTimeOut(UException): class UTimeOut(UException):
__swig_setmethods__ = {} __swig_setmethods__ = {}
for _s in [UException]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) for _s in [UException]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, UTimeOut, name, value) __setattr__ = lambda self, name, value: _swig_setattr(self, UTimeOut, name, value)
__swig_getmethods__ = {} __swig_getmethods__ = {}
for _s in [UException]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) for _s in [UException]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, UTimeOut, name) __getattr__ = lambda self, name: _swig_getattr(self, UTimeOut, name)
__repr__ = _swig_repr __repr__ = _swig_repr
def __init__(self, *args):
def __init__(self, *args):
this = _pyUModbus.new_UTimeOut(*args) this = _pyUModbus.new_UTimeOut(*args)
try: self.this.append(this) try:
except: self.this = this self.this.append(this)
except:
self.this = this
__swig_destroy__ = _pyUModbus.delete_UTimeOut __swig_destroy__ = _pyUModbus.delete_UTimeOut
__del__ = lambda self : None; __del__ = lambda self: None
UTimeOut_swigregister = _pyUModbus.UTimeOut_swigregister UTimeOut_swigregister = _pyUModbus.UTimeOut_swigregister
UTimeOut_swigregister(UTimeOut) UTimeOut_swigregister(UTimeOut)
class USysError(UException): class USysError(UException):
__swig_setmethods__ = {} __swig_setmethods__ = {}
for _s in [UException]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) for _s in [UException]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, USysError, name, value) __setattr__ = lambda self, name, value: _swig_setattr(self, USysError, name, value)
__swig_getmethods__ = {} __swig_getmethods__ = {}
for _s in [UException]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) for _s in [UException]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, USysError, name) __getattr__ = lambda self, name: _swig_getattr(self, USysError, name)
__repr__ = _swig_repr __repr__ = _swig_repr
def __init__(self, *args):
def __init__(self, *args):
this = _pyUModbus.new_USysError(*args) this = _pyUModbus.new_USysError(*args)
try: self.this.append(this) try:
except: self.this = this self.this.append(this)
except:
self.this = this
__swig_destroy__ = _pyUModbus.delete_USysError __swig_destroy__ = _pyUModbus.delete_USysError
__del__ = lambda self : None; __del__ = lambda self: None
USysError_swigregister = _pyUModbus.USysError_swigregister USysError_swigregister = _pyUModbus.USysError_swigregister
USysError_swigregister(USysError) USysError_swigregister(USysError)
......
# This file was automatically generated by SWIG (http://www.swig.org). # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.2 # Version 3.0.6
# #
# Do not make changes to this file unless you know what you are doing--modify # Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead. # the SWIG interface file instead.
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
from sys import version_info from sys import version_info
if version_info >= (2,6,0): if version_info >= (2, 6, 0):
def swig_import_helper(): def swig_import_helper():
from os.path import dirname from os.path import dirname
import imp import imp
...@@ -30,68 +30,84 @@ if version_info >= (2,6,0): ...@@ -30,68 +30,84 @@ if version_info >= (2,6,0):
else: else:
import _pyUniSet import _pyUniSet
del version_info del version_info
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
if (name == "thisown"): return self.this.own(value) def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if (name == "thisown"):
return self.this.own(value)
if (name == "this"): if (name == "this"):
if type(value).__name__ == 'SwigPyObject': if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value self.__dict__[name] = value
return return
method = class_type.__swig_setmethods__.get(name,None) method = class_type.__swig_setmethods__.get(name, None)
if method: return method(self,value) if method:
return method(self, value)
if (not static): if (not static):
self.__dict__[name] = value self.__dict__[name] = value
else: else:
raise AttributeError("You cannot add attributes to %s" % self) raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self,class_type,name,value):
return _swig_setattr_nondynamic(self,class_type,name,value,0)
def _swig_getattr(self,class_type,name): def _swig_setattr(self, class_type, name, value):
if (name == "thisown"): return self.this.own() return _swig_setattr_nondynamic(self, class_type, name, value, 0)
method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self)
raise AttributeError(name) def _swig_getattr_nondynamic(self, class_type, name, static=1):
if (name == "thisown"):
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
if (not static):
return object.__getattr__(self, name)
else:
raise AttributeError(name)
def _swig_getattr(self, class_type, name):
return _swig_getattr_nondynamic(self, class_type, name, 0)
def _swig_repr(self): def _swig_repr(self):
try: strthis = "proxy of " + self.this.__repr__() try:
except: strthis = "" strthis = "proxy of " + self.this.__repr__()
except:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
def uniset_init_params(*args): def uniset_init_params(p, xmlfile):
return _pyUniSet.uniset_init_params(*args) return _pyUniSet.uniset_init_params(p, xmlfile)
uniset_init_params = _pyUniSet.uniset_init_params uniset_init_params = _pyUniSet.uniset_init_params
def uniset_init(*args): def uniset_init(argc, argv, xmlfile):
return _pyUniSet.uniset_init(*args) return _pyUniSet.uniset_init(argc, argv, xmlfile)
uniset_init = _pyUniSet.uniset_init uniset_init = _pyUniSet.uniset_init
def getValue(*args): def getValue(id):
return _pyUniSet.getValue(*args) return _pyUniSet.getValue(id)
getValue = _pyUniSet.getValue getValue = _pyUniSet.getValue
def setValue(*args): def setValue(id, val):
return _pyUniSet.setValue(*args) return _pyUniSet.setValue(id, val)
setValue = _pyUniSet.setValue setValue = _pyUniSet.setValue
def getSensorID(*args): def getSensorID(arg1):
return _pyUniSet.getSensorID(*args) return _pyUniSet.getSensorID(arg1)
getSensorID = _pyUniSet.getSensorID getSensorID = _pyUniSet.getSensorID
def getShortName(*args): def getShortName(id):
return _pyUniSet.getShortName(*args) return _pyUniSet.getShortName(id)
getShortName = _pyUniSet.getShortName getShortName = _pyUniSet.getShortName
def getName(*args): def getName(id):
return _pyUniSet.getName(*args) return _pyUniSet.getName(id)
getName = _pyUniSet.getName getName = _pyUniSet.getName
def getTextName(*args): def getTextName(id):
return _pyUniSet.getTextName(*args) return _pyUniSet.getTextName(id)
getTextName = _pyUniSet.getTextName getTextName = _pyUniSet.getTextName
def getConfFileName(): def getConfFileName():
return _pyUniSet.getConfFileName() return _pyUniSet.getConfFileName()
getConfFileName = _pyUniSet.getConfFileName getConfFileName = _pyUniSet.getConfFileName
class Params: class Params:
__swig_setmethods__ = {} __swig_setmethods__ = {}
...@@ -100,25 +116,30 @@ class Params: ...@@ -100,25 +116,30 @@ class Params:
__getattr__ = lambda self, name: _swig_getattr(self, Params, name) __getattr__ = lambda self, name: _swig_getattr(self, Params, name)
__repr__ = _swig_repr __repr__ = _swig_repr
max = _pyUniSet.Params_max max = _pyUniSet.Params_max
def __init__(self):
def __init__(self):
this = _pyUniSet.new_Params() this = _pyUniSet.new_Params()
try: self.this.append(this) try:
except: self.this = this self.this.append(this)
def add(self, *args): return _pyUniSet.Params_add(self, *args) except:
self.this = this
def add(self, s):
return _pyUniSet.Params_add(self, s)
__swig_setmethods__["argc"] = _pyUniSet.Params_argc_set __swig_setmethods__["argc"] = _pyUniSet.Params_argc_set
__swig_getmethods__["argc"] = _pyUniSet.Params_argc_get __swig_getmethods__["argc"] = _pyUniSet.Params_argc_get
__swig_setmethods__["argv"] = _pyUniSet.Params_argv_set __swig_setmethods__["argv"] = _pyUniSet.Params_argv_set
__swig_getmethods__["argv"] = _pyUniSet.Params_argv_get __swig_getmethods__["argv"] = _pyUniSet.Params_argv_get
__swig_getmethods__["inst"] = lambda x: _pyUniSet.Params_inst __swig_getmethods__["inst"] = lambda x: _pyUniSet.Params_inst
__swig_destroy__ = _pyUniSet.delete_Params __swig_destroy__ = _pyUniSet.delete_Params
__del__ = lambda self : None; __del__ = lambda self: None
Params_swigregister = _pyUniSet.Params_swigregister Params_swigregister = _pyUniSet.Params_swigregister
Params_swigregister(Params) Params_swigregister(Params)
cvar = _pyUniSet.cvar cvar = _pyUniSet.cvar
DefaultID = cvar.DefaultID DefaultID = cvar.DefaultID
def Params_inst(): def Params_inst():
return _pyUniSet.Params_inst() return _pyUniSet.Params_inst()
Params_inst = _pyUniSet.Params_inst Params_inst = _pyUniSet.Params_inst
class UException(Exception): class UException(Exception):
...@@ -127,13 +148,18 @@ class UException(Exception): ...@@ -127,13 +148,18 @@ class UException(Exception):
__swig_getmethods__ = {} __swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, UException, name) __getattr__ = lambda self, name: _swig_getattr(self, UException, name)
__repr__ = _swig_repr __repr__ = _swig_repr
def __init__(self, *args):
def __init__(self, *args):
this = _pyUniSet.new_UException(*args) this = _pyUniSet.new_UException(*args)
try: self.this.append(this) try:
except: self.this = this self.this.append(this)
except:
self.this = this
__swig_destroy__ = _pyUniSet.delete_UException __swig_destroy__ = _pyUniSet.delete_UException
__del__ = lambda self : None; __del__ = lambda self: None
def getError(self): return _pyUniSet.UException_getError(self)
def getError(self):
return _pyUniSet.UException_getError(self)
__swig_setmethods__["err"] = _pyUniSet.UException_err_set __swig_setmethods__["err"] = _pyUniSet.UException_err_set
__swig_getmethods__["err"] = _pyUniSet.UException_err_get __swig_getmethods__["err"] = _pyUniSet.UException_err_get
UException_swigregister = _pyUniSet.UException_swigregister UException_swigregister = _pyUniSet.UException_swigregister
...@@ -141,35 +167,45 @@ UException_swigregister(UException) ...@@ -141,35 +167,45 @@ UException_swigregister(UException)
class UTimeOut(UException): class UTimeOut(UException):
__swig_setmethods__ = {} __swig_setmethods__ = {}
for _s in [UException]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) for _s in [UException]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, UTimeOut, name, value) __setattr__ = lambda self, name, value: _swig_setattr(self, UTimeOut, name, value)
__swig_getmethods__ = {} __swig_getmethods__ = {}
for _s in [UException]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) for _s in [UException]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, UTimeOut, name) __getattr__ = lambda self, name: _swig_getattr(self, UTimeOut, name)
__repr__ = _swig_repr __repr__ = _swig_repr
def __init__(self, *args):
def __init__(self, *args):
this = _pyUniSet.new_UTimeOut(*args) this = _pyUniSet.new_UTimeOut(*args)
try: self.this.append(this) try:
except: self.this = this self.this.append(this)
except:
self.this = this
__swig_destroy__ = _pyUniSet.delete_UTimeOut __swig_destroy__ = _pyUniSet.delete_UTimeOut
__del__ = lambda self : None; __del__ = lambda self: None
UTimeOut_swigregister = _pyUniSet.UTimeOut_swigregister UTimeOut_swigregister = _pyUniSet.UTimeOut_swigregister
UTimeOut_swigregister(UTimeOut) UTimeOut_swigregister(UTimeOut)
class USysError(UException): class USysError(UException):
__swig_setmethods__ = {} __swig_setmethods__ = {}
for _s in [UException]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) for _s in [UException]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, USysError, name, value) __setattr__ = lambda self, name, value: _swig_setattr(self, USysError, name, value)
__swig_getmethods__ = {} __swig_getmethods__ = {}
for _s in [UException]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) for _s in [UException]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, USysError, name) __getattr__ = lambda self, name: _swig_getattr(self, USysError, name)
__repr__ = _swig_repr __repr__ = _swig_repr
def __init__(self, *args):
def __init__(self, *args):
this = _pyUniSet.new_USysError(*args) this = _pyUniSet.new_USysError(*args)
try: self.this.append(this) try:
except: self.this = this self.this.append(this)
except:
self.this = this
__swig_destroy__ = _pyUniSet.delete_USysError __swig_destroy__ = _pyUniSet.delete_USysError
__del__ = lambda self : None; __del__ = lambda self: None
USysError_swigregister = _pyUniSet.USysError_swigregister USysError_swigregister = _pyUniSet.USysError_swigregister
USysError_swigregister(USysError) USysError_swigregister(USysError)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment