Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
b205207c
Commit
b205207c
authored
Jul 22, 2015
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(python): перегенерировались py-файлы (новый swig 3.0.6)
parent
233cdbe5
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
556 additions
and
214 deletions
+556
-214
UConnector_wrap.cxx
python/lib/pyUniSet/UConnector_wrap.cxx
+57
-15
UExceptions_wrap.cxx
python/lib/pyUniSet/UExceptions_wrap.cxx
+57
-15
UInterface_wrap.cxx
python/lib/pyUniSet/UInterface_wrap.cxx
+57
-15
UModbus_wrap.cxx
python/lib/pyUniSet/UModbus_wrap.cxx
+57
-15
pyUConnector.py
python/lib/pyUniSet/pyUConnector.py
+72
-30
pyUExceptions.py
python/lib/pyUniSet/pyUExceptions.py
+59
-28
pyUModbus.py
python/lib/pyUniSet/pyUModbus.py
+113
-48
pyUniSet.py
python/lib/pyUniSet/pyUniSet.py
+84
-48
No files found.
python/lib/pyUniSet/UConnector_wrap.cxx
View file @
b205207c
/* ----------------------------------------------------------------------------
* 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
* coding conventions designed to improve portability and efficiency. Do not make
...
...
@@ -144,6 +144,19 @@ template <typename T> T SwigValueInit() {
# define _SCL_SECURE_NO_DEPRECATE
#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)
...
...
@@ -1533,6 +1546,23 @@ typedef struct {
#endif
}
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
*
SwigPyObject_long
(
SwigPyObject
*
v
)
{
...
...
@@ -1803,7 +1833,7 @@ swigobject_methods[] = {
static
PyMethodDef
swigobject_methods
[]
=
{
{(
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
*
)
"a
c
quires 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
*
)
"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
newobj
=
(
SwigPyObject
*
)
newobj
->
next
;
newobj
->
next
=
next_self
;
newobj
=
(
SwigPyObject
*
)
next_self
;
#ifdef SWIGPYTHON_BUILTIN
newobj
->
dict
=
0
;
#endif
}
}
else
{
newobj
=
PyObject_New
(
SwigPyObject
,
clientdata
->
pytype
);
#ifdef SWIGPYTHON_BUILTIN
newobj
->
dict
=
0
;
#endif
}
if
(
newobj
)
{
newobj
->
ptr
=
ptr
;
newobj
->
ty
=
type
;
newobj
->
own
=
own
;
newobj
->
next
=
0
;
#ifdef SWIGPYTHON_BUILTIN
newobj
->
dict
=
0
;
#endif
return
(
PyObject
*
)
newobj
;
}
return
SWIG_Py_Void
();
...
...
@@ -2965,7 +2998,7 @@ static swig_module_info swig_module = {swig_types, 5, 0, 0, 0, 0};
#endif
#define SWIG_name "_pyUConnector"
#define SWIGVERSION 0x03000
2
#define SWIGVERSION 0x03000
6
#define SWIG_VERSION SWIGVERSION
...
...
@@ -2988,27 +3021,35 @@ namespace swig {
SwigPtr_PyObject
(
const
SwigPtr_PyObject
&
item
)
:
_obj
(
item
.
_obj
)
{
SWIG_PYTHON_THREAD_BEGIN_BLOCK
;
Py_XINCREF
(
_obj
);
SWIG_PYTHON_THREAD_END_BLOCK
;
}
SwigPtr_PyObject
(
PyObject
*
obj
,
bool
initial_ref
=
true
)
:
_obj
(
obj
)
{
if
(
initial_ref
)
{
SWIG_PYTHON_THREAD_BEGIN_BLOCK
;
Py_XINCREF
(
_obj
);
SWIG_PYTHON_THREAD_END_BLOCK
;
}
}
SwigPtr_PyObject
&
operator
=
(
const
SwigPtr_PyObject
&
item
)
{
SWIG_PYTHON_THREAD_BEGIN_BLOCK
;
Py_XINCREF
(
item
.
_obj
);
Py_XDECREF
(
_obj
);
_obj
=
item
.
_obj
;
SWIG_PYTHON_THREAD_END_BLOCK
;
return
*
this
;
}
~
SwigPtr_PyObject
()
{
SWIG_PYTHON_THREAD_BEGIN_BLOCK
;
Py_XDECREF
(
_obj
);
SWIG_PYTHON_THREAD_END_BLOCK
;
}
operator
PyObject
*
()
const
...
...
@@ -4139,7 +4180,7 @@ SWIGRUNTIME void
SWIG_InitializeModule
(
void
*
clientdata
)
{
size_t
i
;
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 */
if
(
swig_module
.
next
==
0
)
{
...
...
@@ -4158,22 +4199,18 @@ SWIG_InitializeModule(void *clientdata) {
/* This is the first module loaded for this interpreter */
/* so set the swig module into the interpreter */
SWIG_SetModule
(
clientdata
,
&
swig_module
);
module_head
=
&
swig_module
;
}
else
{
/* the interpreter has loaded a SWIG module, but has it loaded this one? */
found
=
0
;
iter
=
module_head
;
do
{
if
(
iter
==&
swig_module
)
{
found
=
1
;
break
;
/* Our module is already in the list, so there's nothing more to do. */
return
;
}
iter
=
iter
->
next
;
}
while
(
iter
!=
module_head
);
/* if the is found in the list, then all is done and we may leave */
if
(
found
)
return
;
/* otherwise we must add out module into the list */
/* otherwise we must add our module into the list */
swig_module
.
next
=
module_head
->
next
;
module_head
->
next
=
&
swig_module
;
}
...
...
@@ -4584,7 +4621,9 @@ extern "C" {
size_t
i
;
for
(
i
=
0
;
methods
[
i
].
ml_name
;
++
i
)
{
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
;
swig_const_info
*
ci
=
0
;
const
char
*
name
=
c
+
10
;
...
...
@@ -4686,6 +4725,7 @@ SWIG_init(void) {
PyObject
*
public_interface
,
*
public_symbol
;
PyObject
*
this_descr
;
PyObject
*
thisown_descr
;
PyObject
*
self
=
0
;
int
i
;
(
void
)
builtin_pytype
;
...
...
@@ -4693,6 +4733,7 @@ SWIG_init(void) {
(
void
)
builtin_basetype
;
(
void
)
tuple
;
(
void
)
static_getset
;
(
void
)
self
;
/* metatype is used to implement static member variables. */
metatype_args
=
Py_BuildValue
(
"(s(O){})"
,
"SwigPyObjectType"
,
&
PyType_Type
);
...
...
@@ -4712,6 +4753,7 @@ SWIG_init(void) {
#else
m
=
Py_InitModule
((
char
*
)
SWIG_name
,
SwigMethods
);
#endif
md
=
d
=
PyModule_GetDict
(
m
);
(
void
)
md
;
...
...
python/lib/pyUniSet/UExceptions_wrap.cxx
View file @
b205207c
/* ----------------------------------------------------------------------------
* 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
* coding conventions designed to improve portability and efficiency. Do not make
...
...
@@ -144,6 +144,19 @@ template <typename T> T SwigValueInit() {
# define _SCL_SECURE_NO_DEPRECATE
#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)
...
...
@@ -1533,6 +1546,23 @@ typedef struct {
#endif
}
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
*
SwigPyObject_long
(
SwigPyObject
*
v
)
{
...
...
@@ -1803,7 +1833,7 @@ swigobject_methods[] = {
static
PyMethodDef
swigobject_methods
[]
=
{
{(
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
*
)
"a
c
quires 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
*
)
"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
newobj
=
(
SwigPyObject
*
)
newobj
->
next
;
newobj
->
next
=
next_self
;
newobj
=
(
SwigPyObject
*
)
next_self
;
#ifdef SWIGPYTHON_BUILTIN
newobj
->
dict
=
0
;
#endif
}
}
else
{
newobj
=
PyObject_New
(
SwigPyObject
,
clientdata
->
pytype
);
#ifdef SWIGPYTHON_BUILTIN
newobj
->
dict
=
0
;
#endif
}
if
(
newobj
)
{
newobj
->
ptr
=
ptr
;
newobj
->
ty
=
type
;
newobj
->
own
=
own
;
newobj
->
next
=
0
;
#ifdef SWIGPYTHON_BUILTIN
newobj
->
dict
=
0
;
#endif
return
(
PyObject
*
)
newobj
;
}
return
SWIG_Py_Void
();
...
...
@@ -2965,7 +2998,7 @@ static swig_module_info swig_module = {swig_types, 5, 0, 0, 0, 0};
#endif
#define SWIG_name "_pyUExceptions"
#define SWIGVERSION 0x03000
2
#define SWIGVERSION 0x03000
6
#define SWIG_VERSION SWIGVERSION
...
...
@@ -2988,27 +3021,35 @@ namespace swig {
SwigPtr_PyObject
(
const
SwigPtr_PyObject
&
item
)
:
_obj
(
item
.
_obj
)
{
SWIG_PYTHON_THREAD_BEGIN_BLOCK
;
Py_XINCREF
(
_obj
);
SWIG_PYTHON_THREAD_END_BLOCK
;
}
SwigPtr_PyObject
(
PyObject
*
obj
,
bool
initial_ref
=
true
)
:
_obj
(
obj
)
{
if
(
initial_ref
)
{
SWIG_PYTHON_THREAD_BEGIN_BLOCK
;
Py_XINCREF
(
_obj
);
SWIG_PYTHON_THREAD_END_BLOCK
;
}
}
SwigPtr_PyObject
&
operator
=
(
const
SwigPtr_PyObject
&
item
)
{
SWIG_PYTHON_THREAD_BEGIN_BLOCK
;
Py_XINCREF
(
item
.
_obj
);
Py_XDECREF
(
_obj
);
_obj
=
item
.
_obj
;
SWIG_PYTHON_THREAD_END_BLOCK
;
return
*
this
;
}
~
SwigPtr_PyObject
()
{
SWIG_PYTHON_THREAD_BEGIN_BLOCK
;
Py_XDECREF
(
_obj
);
SWIG_PYTHON_THREAD_END_BLOCK
;
}
operator
PyObject
*
()
const
...
...
@@ -3694,7 +3735,7 @@ SWIGRUNTIME void
SWIG_InitializeModule
(
void
*
clientdata
)
{
size_t
i
;
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 */
if
(
swig_module
.
next
==
0
)
{
...
...
@@ -3713,22 +3754,18 @@ SWIG_InitializeModule(void *clientdata) {
/* This is the first module loaded for this interpreter */
/* so set the swig module into the interpreter */
SWIG_SetModule
(
clientdata
,
&
swig_module
);
module_head
=
&
swig_module
;
}
else
{
/* the interpreter has loaded a SWIG module, but has it loaded this one? */
found
=
0
;
iter
=
module_head
;
do
{
if
(
iter
==&
swig_module
)
{
found
=
1
;
break
;
/* Our module is already in the list, so there's nothing more to do. */
return
;
}
iter
=
iter
->
next
;
}
while
(
iter
!=
module_head
);
/* if the is found in the list, then all is done and we may leave */
if
(
found
)
return
;
/* otherwise we must add out module into the list */
/* otherwise we must add our module into the list */
swig_module
.
next
=
module_head
->
next
;
module_head
->
next
=
&
swig_module
;
}
...
...
@@ -4139,7 +4176,9 @@ extern "C" {
size_t
i
;
for
(
i
=
0
;
methods
[
i
].
ml_name
;
++
i
)
{
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
;
swig_const_info
*
ci
=
0
;
const
char
*
name
=
c
+
10
;
...
...
@@ -4241,6 +4280,7 @@ SWIG_init(void) {
PyObject
*
public_interface
,
*
public_symbol
;
PyObject
*
this_descr
;
PyObject
*
thisown_descr
;
PyObject
*
self
=
0
;
int
i
;
(
void
)
builtin_pytype
;
...
...
@@ -4248,6 +4288,7 @@ SWIG_init(void) {
(
void
)
builtin_basetype
;
(
void
)
tuple
;
(
void
)
static_getset
;
(
void
)
self
;
/* metatype is used to implement static member variables. */
metatype_args
=
Py_BuildValue
(
"(s(O){})"
,
"SwigPyObjectType"
,
&
PyType_Type
);
...
...
@@ -4267,6 +4308,7 @@ SWIG_init(void) {
#else
m
=
Py_InitModule
((
char
*
)
SWIG_name
,
SwigMethods
);
#endif
md
=
d
=
PyModule_GetDict
(
m
);
(
void
)
md
;
...
...
python/lib/pyUniSet/UInterface_wrap.cxx
View file @
b205207c
/* ----------------------------------------------------------------------------
* 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
* coding conventions designed to improve portability and efficiency. Do not make
...
...
@@ -144,6 +144,19 @@ template <typename T> T SwigValueInit() {
# define _SCL_SECURE_NO_DEPRECATE
#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)
...
...
@@ -1533,6 +1546,23 @@ typedef struct {
#endif
}
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
*
SwigPyObject_long
(
SwigPyObject
*
v
)
{
...
...
@@ -1803,7 +1833,7 @@ swigobject_methods[] = {
static
PyMethodDef
swigobject_methods
[]
=
{
{(
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
*
)
"a
c
quires 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
*
)
"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
newobj
=
(
SwigPyObject
*
)
newobj
->
next
;
newobj
->
next
=
next_self
;
newobj
=
(
SwigPyObject
*
)
next_self
;
#ifdef SWIGPYTHON_BUILTIN
newobj
->
dict
=
0
;
#endif
}
}
else
{
newobj
=
PyObject_New
(
SwigPyObject
,
clientdata
->
pytype
);
#ifdef SWIGPYTHON_BUILTIN
newobj
->
dict
=
0
;
#endif
}
if
(
newobj
)
{
newobj
->
ptr
=
ptr
;
newobj
->
ty
=
type
;
newobj
->
own
=
own
;
newobj
->
next
=
0
;
#ifdef SWIGPYTHON_BUILTIN
newobj
->
dict
=
0
;
#endif
return
(
PyObject
*
)
newobj
;
}
return
SWIG_Py_Void
();
...
...
@@ -2967,7 +3000,7 @@ static swig_module_info swig_module = {swig_types, 7, 0, 0, 0, 0};
#endif
#define SWIG_name "_pyUniSet"
#define SWIGVERSION 0x03000
2
#define SWIGVERSION 0x03000
6
#define SWIG_VERSION SWIGVERSION
...
...
@@ -2990,27 +3023,35 @@ namespace swig {
SwigPtr_PyObject
(
const
SwigPtr_PyObject
&
item
)
:
_obj
(
item
.
_obj
)
{
SWIG_PYTHON_THREAD_BEGIN_BLOCK
;
Py_XINCREF
(
_obj
);
SWIG_PYTHON_THREAD_END_BLOCK
;
}
SwigPtr_PyObject
(
PyObject
*
obj
,
bool
initial_ref
=
true
)
:
_obj
(
obj
)
{
if
(
initial_ref
)
{
SWIG_PYTHON_THREAD_BEGIN_BLOCK
;
Py_XINCREF
(
_obj
);
SWIG_PYTHON_THREAD_END_BLOCK
;
}
}
SwigPtr_PyObject
&
operator
=
(
const
SwigPtr_PyObject
&
item
)
{
SWIG_PYTHON_THREAD_BEGIN_BLOCK
;
Py_XINCREF
(
item
.
_obj
);
Py_XDECREF
(
_obj
);
_obj
=
item
.
_obj
;
SWIG_PYTHON_THREAD_END_BLOCK
;
return
*
this
;
}
~
SwigPtr_PyObject
()
{
SWIG_PYTHON_THREAD_BEGIN_BLOCK
;
Py_XDECREF
(
_obj
);
SWIG_PYTHON_THREAD_END_BLOCK
;
}
operator
PyObject
*
()
const
...
...
@@ -4352,7 +4393,7 @@ SWIGRUNTIME void
SWIG_InitializeModule
(
void
*
clientdata
)
{
size_t
i
;
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 */
if
(
swig_module
.
next
==
0
)
{
...
...
@@ -4371,22 +4412,18 @@ SWIG_InitializeModule(void *clientdata) {
/* This is the first module loaded for this interpreter */
/* so set the swig module into the interpreter */
SWIG_SetModule
(
clientdata
,
&
swig_module
);
module_head
=
&
swig_module
;
}
else
{
/* the interpreter has loaded a SWIG module, but has it loaded this one? */
found
=
0
;
iter
=
module_head
;
do
{
if
(
iter
==&
swig_module
)
{
found
=
1
;
break
;
/* Our module is already in the list, so there's nothing more to do. */
return
;
}
iter
=
iter
->
next
;
}
while
(
iter
!=
module_head
);
/* if the is found in the list, then all is done and we may leave */
if
(
found
)
return
;
/* otherwise we must add out module into the list */
/* otherwise we must add our module into the list */
swig_module
.
next
=
module_head
->
next
;
module_head
->
next
=
&
swig_module
;
}
...
...
@@ -4797,7 +4834,9 @@ extern "C" {
size_t
i
;
for
(
i
=
0
;
methods
[
i
].
ml_name
;
++
i
)
{
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
;
swig_const_info
*
ci
=
0
;
const
char
*
name
=
c
+
10
;
...
...
@@ -4899,6 +4938,7 @@ SWIG_init(void) {
PyObject
*
public_interface
,
*
public_symbol
;
PyObject
*
this_descr
;
PyObject
*
thisown_descr
;
PyObject
*
self
=
0
;
int
i
;
(
void
)
builtin_pytype
;
...
...
@@ -4906,6 +4946,7 @@ SWIG_init(void) {
(
void
)
builtin_basetype
;
(
void
)
tuple
;
(
void
)
static_getset
;
(
void
)
self
;
/* metatype is used to implement static member variables. */
metatype_args
=
Py_BuildValue
(
"(s(O){})"
,
"SwigPyObjectType"
,
&
PyType_Type
);
...
...
@@ -4925,6 +4966,7 @@ SWIG_init(void) {
#else
m
=
Py_InitModule
((
char
*
)
SWIG_name
,
SwigMethods
);
#endif
md
=
d
=
PyModule_GetDict
(
m
);
(
void
)
md
;
...
...
python/lib/pyUniSet/UModbus_wrap.cxx
View file @
b205207c
/* ----------------------------------------------------------------------------
* 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
* coding conventions designed to improve portability and efficiency. Do not make
...
...
@@ -144,6 +144,19 @@ template <typename T> T SwigValueInit() {
# define _SCL_SECURE_NO_DEPRECATE
#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)
...
...
@@ -1533,6 +1546,23 @@ typedef struct {
#endif
}
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
*
SwigPyObject_long
(
SwigPyObject
*
v
)
{
...
...
@@ -1803,7 +1833,7 @@ swigobject_methods[] = {
static
PyMethodDef
swigobject_methods
[]
=
{
{(
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
*
)
"a
c
quires 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
*
)
"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
newobj
=
(
SwigPyObject
*
)
newobj
->
next
;
newobj
->
next
=
next_self
;
newobj
=
(
SwigPyObject
*
)
next_self
;
#ifdef SWIGPYTHON_BUILTIN
newobj
->
dict
=
0
;
#endif
}
}
else
{
newobj
=
PyObject_New
(
SwigPyObject
,
clientdata
->
pytype
);
#ifdef SWIGPYTHON_BUILTIN
newobj
->
dict
=
0
;
#endif
}
if
(
newobj
)
{
newobj
->
ptr
=
ptr
;
newobj
->
ty
=
type
;
newobj
->
own
=
own
;
newobj
->
next
=
0
;
#ifdef SWIGPYTHON_BUILTIN
newobj
->
dict
=
0
;
#endif
return
(
PyObject
*
)
newobj
;
}
return
SWIG_Py_Void
();
...
...
@@ -2968,7 +3001,7 @@ static swig_module_info swig_module = {swig_types, 8, 0, 0, 0, 0};
#endif
#define SWIG_name "_pyUModbus"
#define SWIGVERSION 0x03000
2
#define SWIGVERSION 0x03000
6
#define SWIG_VERSION SWIGVERSION
...
...
@@ -2991,27 +3024,35 @@ namespace swig {
SwigPtr_PyObject
(
const
SwigPtr_PyObject
&
item
)
:
_obj
(
item
.
_obj
)
{
SWIG_PYTHON_THREAD_BEGIN_BLOCK
;
Py_XINCREF
(
_obj
);
SWIG_PYTHON_THREAD_END_BLOCK
;
}
SwigPtr_PyObject
(
PyObject
*
obj
,
bool
initial_ref
=
true
)
:
_obj
(
obj
)
{
if
(
initial_ref
)
{
SWIG_PYTHON_THREAD_BEGIN_BLOCK
;
Py_XINCREF
(
_obj
);
SWIG_PYTHON_THREAD_END_BLOCK
;
}
}
SwigPtr_PyObject
&
operator
=
(
const
SwigPtr_PyObject
&
item
)
{
SWIG_PYTHON_THREAD_BEGIN_BLOCK
;
Py_XINCREF
(
item
.
_obj
);
Py_XDECREF
(
_obj
);
_obj
=
item
.
_obj
;
SWIG_PYTHON_THREAD_END_BLOCK
;
return
*
this
;
}
~
SwigPtr_PyObject
()
{
SWIG_PYTHON_THREAD_BEGIN_BLOCK
;
Py_XDECREF
(
_obj
);
SWIG_PYTHON_THREAD_END_BLOCK
;
}
operator
PyObject
*
()
const
...
...
@@ -5764,7 +5805,7 @@ SWIGRUNTIME void
SWIG_InitializeModule
(
void
*
clientdata
)
{
size_t
i
;
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 */
if
(
swig_module
.
next
==
0
)
{
...
...
@@ -5783,22 +5824,18 @@ SWIG_InitializeModule(void *clientdata) {
/* This is the first module loaded for this interpreter */
/* so set the swig module into the interpreter */
SWIG_SetModule
(
clientdata
,
&
swig_module
);
module_head
=
&
swig_module
;
}
else
{
/* the interpreter has loaded a SWIG module, but has it loaded this one? */
found
=
0
;
iter
=
module_head
;
do
{
if
(
iter
==&
swig_module
)
{
found
=
1
;
break
;
/* Our module is already in the list, so there's nothing more to do. */
return
;
}
iter
=
iter
->
next
;
}
while
(
iter
!=
module_head
);
/* if the is found in the list, then all is done and we may leave */
if
(
found
)
return
;
/* otherwise we must add out module into the list */
/* otherwise we must add our module into the list */
swig_module
.
next
=
module_head
->
next
;
module_head
->
next
=
&
swig_module
;
}
...
...
@@ -6209,7 +6246,9 @@ extern "C" {
size_t
i
;
for
(
i
=
0
;
methods
[
i
].
ml_name
;
++
i
)
{
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
;
swig_const_info
*
ci
=
0
;
const
char
*
name
=
c
+
10
;
...
...
@@ -6311,6 +6350,7 @@ SWIG_init(void) {
PyObject
*
public_interface
,
*
public_symbol
;
PyObject
*
this_descr
;
PyObject
*
thisown_descr
;
PyObject
*
self
=
0
;
int
i
;
(
void
)
builtin_pytype
;
...
...
@@ -6318,6 +6358,7 @@ SWIG_init(void) {
(
void
)
builtin_basetype
;
(
void
)
tuple
;
(
void
)
static_getset
;
(
void
)
self
;
/* metatype is used to implement static member variables. */
metatype_args
=
Py_BuildValue
(
"(s(O){})"
,
"SwigPyObjectType"
,
&
PyType_Type
);
...
...
@@ -6337,6 +6378,7 @@ SWIG_init(void) {
#else
m
=
Py_InitModule
((
char
*
)
SWIG_name
,
SwigMethods
);
#endif
md
=
d
=
PyModule_GetDict
(
m
);
(
void
)
md
;
...
...
python/lib/pyUniSet/pyUConnector.py
View file @
b205207c
# 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
# the SWIG interface file instead.
...
...
@@ -9,7 +9,7 @@
from
sys
import
version_info
if
version_info
>=
(
2
,
6
,
0
):
if
version_info
>=
(
2
,
6
,
0
):
def
swig_import_helper
():
from
os.path
import
dirname
import
imp
...
...
@@ -30,31 +30,47 @@ if version_info >= (2,6,0):
else
:
import
_pyUConnector
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
type
(
value
)
.
__name__
==
'SwigPyObject'
:
self
.
__dict__
[
name
]
=
value
return
method
=
class_type
.
__swig_setmethods__
.
get
(
name
,
None
)
if
method
:
return
method
(
self
,
value
)
method
=
class_type
.
__swig_setmethods__
.
get
(
name
,
None
)
if
method
:
return
method
(
self
,
value
)
if
(
not
static
):
self
.
__dict__
[
name
]
=
value
else
:
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
):
if
(
name
==
"thisown"
):
return
self
.
this
.
own
()
method
=
class_type
.
__swig_getmethods__
.
get
(
name
,
None
)
if
method
:
return
method
(
self
)
def
_swig_setattr
(
self
,
class_type
,
name
,
value
):
return
_swig_setattr_nondynamic
(
self
,
class_type
,
name
,
value
,
0
)
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
):
try
:
strthis
=
"proxy of "
+
self
.
this
.
__repr__
()
except
:
strthis
=
""
try
:
strthis
=
"proxy of "
+
self
.
this
.
__repr__
()
except
:
strthis
=
""
return
"<
%
s.
%
s;
%
s >"
%
(
self
.
__class__
.
__module__
,
self
.
__class__
.
__name__
,
strthis
,)
class
Params
:
...
...
@@ -64,18 +80,23 @@ class Params:
__getattr__
=
lambda
self
,
name
:
_swig_getattr
(
self
,
Params
,
name
)
__repr__
=
_swig_repr
max
=
_pyUConnector
.
Params_max
def
__init__
(
self
):
this
=
_pyUConnector
.
new_Params
()
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
def
add
(
self
,
*
args
):
return
_pyUConnector
.
Params_add
(
self
,
*
args
)
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
def
add
(
self
,
s
):
return
_pyUConnector
.
Params_add
(
self
,
s
)
__swig_setmethods__
[
"argc"
]
=
_pyUConnector
.
Params_argc_set
__swig_getmethods__
[
"argc"
]
=
_pyUConnector
.
Params_argc_get
__swig_setmethods__
[
"argv"
]
=
_pyUConnector
.
Params_argv_set
__swig_getmethods__
[
"argv"
]
=
_pyUConnector
.
Params_argv_get
__swig_getmethods__
[
"inst"
]
=
lambda
x
:
_pyUConnector
.
Params_inst
__swig_destroy__
=
_pyUConnector
.
delete_Params
__del__
=
lambda
self
:
None
;
__del__
=
lambda
self
:
None
Params_swigregister
=
_pyUConnector
.
Params_swigregister
Params_swigregister
(
Params
)
cvar
=
_pyUConnector
.
cvar
...
...
@@ -91,21 +112,42 @@ class UConnector:
__swig_getmethods__
=
{}
__getattr__
=
lambda
self
,
name
:
_swig_getattr
(
self
,
UConnector
,
name
)
__repr__
=
_swig_repr
def
__init__
(
self
,
*
args
):
this
=
_pyUConnector
.
new_UConnector
(
*
args
)
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
__swig_destroy__
=
_pyUConnector
.
delete_UConnector
__del__
=
lambda
self
:
None
;
def
getUIType
(
self
):
return
_pyUConnector
.
UConnector_getUIType
(
self
)
def
getConfFileName
(
self
):
return
_pyUConnector
.
UConnector_getConfFileName
(
self
)
def
getValue
(
self
,
*
args
):
return
_pyUConnector
.
UConnector_getValue
(
self
,
*
args
)
def
setValue
(
self
,
*
args
):
return
_pyUConnector
.
UConnector_setValue
(
self
,
*
args
)
def
getSensorID
(
self
,
*
args
):
return
_pyUConnector
.
UConnector_getSensorID
(
self
,
*
args
)
def
getNodeID
(
self
,
*
args
):
return
_pyUConnector
.
UConnector_getNodeID
(
self
,
*
args
)
def
getShortName
(
self
,
*
args
):
return
_pyUConnector
.
UConnector_getShortName
(
self
,
*
args
)
def
getName
(
self
,
*
args
):
return
_pyUConnector
.
UConnector_getName
(
self
,
*
args
)
def
getTextName
(
self
,
*
args
):
return
_pyUConnector
.
UConnector_getTextName
(
self
,
*
args
)
__del__
=
lambda
self
:
None
def
getUIType
(
self
):
return
_pyUConnector
.
UConnector_getUIType
(
self
)
def
getConfFileName
(
self
):
return
_pyUConnector
.
UConnector_getConfFileName
(
self
)
def
getValue
(
self
,
id
,
node
):
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
(
UConnector
)
...
...
python/lib/pyUniSet/pyUExceptions.py
View file @
b205207c
# 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
# the SWIG interface file instead.
...
...
@@ -9,7 +9,7 @@
from
sys
import
version_info
if
version_info
>=
(
2
,
6
,
0
):
if
version_info
>=
(
2
,
6
,
0
):
def
swig_import_helper
():
from
os.path
import
dirname
import
imp
...
...
@@ -30,31 +30,47 @@ if version_info >= (2,6,0):
else
:
import
_pyUExceptions
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
type
(
value
)
.
__name__
==
'SwigPyObject'
:
self
.
__dict__
[
name
]
=
value
return
method
=
class_type
.
__swig_setmethods__
.
get
(
name
,
None
)
if
method
:
return
method
(
self
,
value
)
method
=
class_type
.
__swig_setmethods__
.
get
(
name
,
None
)
if
method
:
return
method
(
self
,
value
)
if
(
not
static
):
self
.
__dict__
[
name
]
=
value
else
:
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
):
if
(
name
==
"thisown"
):
return
self
.
this
.
own
()
method
=
class_type
.
__swig_getmethods__
.
get
(
name
,
None
)
if
method
:
return
method
(
self
)
def
_swig_setattr
(
self
,
class_type
,
name
,
value
):
return
_swig_setattr_nondynamic
(
self
,
class_type
,
name
,
value
,
0
)
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
):
try
:
strthis
=
"proxy of "
+
self
.
this
.
__repr__
()
except
:
strthis
=
""
try
:
strthis
=
"proxy of "
+
self
.
this
.
__repr__
()
except
:
strthis
=
""
return
"<
%
s.
%
s;
%
s >"
%
(
self
.
__class__
.
__module__
,
self
.
__class__
.
__name__
,
strthis
,)
class
UException
:
...
...
@@ -63,13 +79,18 @@ class UException:
__swig_getmethods__
=
{}
__getattr__
=
lambda
self
,
name
:
_swig_getattr
(
self
,
UException
,
name
)
__repr__
=
_swig_repr
def
__init__
(
self
,
*
args
):
this
=
_pyUExceptions
.
new_UException
(
*
args
)
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
__swig_destroy__
=
_pyUExceptions
.
delete_UException
__del__
=
lambda
self
:
None
;
def
getError
(
self
):
return
_pyUExceptions
.
UException_getError
(
self
)
__del__
=
lambda
self
:
None
def
getError
(
self
):
return
_pyUExceptions
.
UException_getError
(
self
)
__swig_setmethods__
[
"err"
]
=
_pyUExceptions
.
UException_err_set
__swig_getmethods__
[
"err"
]
=
_pyUExceptions
.
UException_err_get
UException_swigregister
=
_pyUExceptions
.
UException_swigregister
...
...
@@ -77,35 +98,45 @@ UException_swigregister(UException)
class
UTimeOut
(
UException
):
__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
)
__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
)
__repr__
=
_swig_repr
def
__init__
(
self
,
*
args
):
this
=
_pyUExceptions
.
new_UTimeOut
(
*
args
)
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
__swig_destroy__
=
_pyUExceptions
.
delete_UTimeOut
__del__
=
lambda
self
:
None
;
__del__
=
lambda
self
:
None
UTimeOut_swigregister
=
_pyUExceptions
.
UTimeOut_swigregister
UTimeOut_swigregister
(
UTimeOut
)
class
USysError
(
UException
):
__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
)
__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
)
__repr__
=
_swig_repr
def
__init__
(
self
,
*
args
):
this
=
_pyUExceptions
.
new_USysError
(
*
args
)
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
__swig_destroy__
=
_pyUExceptions
.
delete_USysError
__del__
=
lambda
self
:
None
;
__del__
=
lambda
self
:
None
USysError_swigregister
=
_pyUExceptions
.
USysError_swigregister
USysError_swigregister
(
USysError
)
...
...
python/lib/pyUniSet/pyUModbus.py
View file @
b205207c
# 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
# the SWIG interface file instead.
...
...
@@ -9,7 +9,7 @@
from
sys
import
version_info
if
version_info
>=
(
2
,
6
,
0
):
if
version_info
>=
(
2
,
6
,
0
):
def
swig_import_helper
():
from
os.path
import
dirname
import
imp
...
...
@@ -30,31 +30,47 @@ if version_info >= (2,6,0):
else
:
import
_pyUModbus
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
type
(
value
)
.
__name__
==
'SwigPyObject'
:
self
.
__dict__
[
name
]
=
value
return
method
=
class_type
.
__swig_setmethods__
.
get
(
name
,
None
)
if
method
:
return
method
(
self
,
value
)
method
=
class_type
.
__swig_setmethods__
.
get
(
name
,
None
)
if
method
:
return
method
(
self
,
value
)
if
(
not
static
):
self
.
__dict__
[
name
]
=
value
else
:
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
):
if
(
name
==
"thisown"
):
return
self
.
this
.
own
()
method
=
class_type
.
__swig_getmethods__
.
get
(
name
,
None
)
if
method
:
return
method
(
self
)
def
_swig_setattr
(
self
,
class_type
,
name
,
value
):
return
_swig_setattr_nondynamic
(
self
,
class_type
,
name
,
value
,
0
)
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
):
try
:
strthis
=
"proxy of "
+
self
.
this
.
__repr__
()
except
:
strthis
=
""
try
:
strthis
=
"proxy of "
+
self
.
this
.
__repr__
()
except
:
strthis
=
""
return
"<
%
s.
%
s;
%
s >"
%
(
self
.
__class__
.
__module__
,
self
.
__class__
.
__name__
,
strthis
,)
class
UModbus
:
...
...
@@ -63,25 +79,54 @@ class UModbus:
__swig_getmethods__
=
{}
__getattr__
=
lambda
self
,
name
:
_swig_getattr
(
self
,
UModbus
,
name
)
__repr__
=
_swig_repr
def
__init__
(
self
):
this
=
_pyUModbus
.
new_UModbus
()
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
__swig_destroy__
=
_pyUModbus
.
delete_UModbus
__del__
=
lambda
self
:
None
;
def
getUIType
(
self
):
return
_pyUModbus
.
UModbus_getUIType
(
self
)
def
isWriteFunction
(
self
,
*
args
):
return
_pyUModbus
.
UModbus_isWriteFunction
(
self
,
*
args
)
def
prepare
(
self
,
*
args
):
return
_pyUModbus
.
UModbus_prepare
(
self
,
*
args
)
def
connect
(
self
,
*
args
):
return
_pyUModbus
.
UModbus_connect
(
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
,
*
args
):
return
_pyUModbus
.
UModbus_setTimeout
(
self
,
*
args
)
def
mbread
(
self
,
*
args
):
return
_pyUModbus
.
UModbus_mbread
(
self
,
*
args
)
def
getWord
(
self
,
*
args
):
return
_pyUModbus
.
UModbus_getWord
(
self
,
*
args
)
def
getByte
(
self
,
*
args
):
return
_pyUModbus
.
UModbus_getByte
(
self
,
*
args
)
def
getBit
(
self
,
*
args
):
return
_pyUModbus
.
UModbus_getBit
(
self
,
*
args
)
def
mbwrite
(
self
,
*
args
):
return
_pyUModbus
.
UModbus_mbwrite
(
self
,
*
args
)
__del__
=
lambda
self
:
None
def
getUIType
(
self
):
return
_pyUModbus
.
UModbus_getUIType
(
self
)
def
isWriteFunction
(
self
,
mbfunc
):
return
_pyUModbus
.
UModbus_isWriteFunction
(
self
,
mbfunc
)
def
prepare
(
self
,
ip
,
port
):
return
_pyUModbus
.
UModbus_prepare
(
self
,
ip
,
port
)
def
connect
(
self
,
ip
,
port
):
return
_pyUModbus
.
UModbus_connect
(
self
,
ip
,
port
)
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
(
UModbus
)
...
...
@@ -92,18 +137,23 @@ class Params:
__getattr__
=
lambda
self
,
name
:
_swig_getattr
(
self
,
Params
,
name
)
__repr__
=
_swig_repr
max
=
_pyUModbus
.
Params_max
def
__init__
(
self
):
this
=
_pyUModbus
.
new_Params
()
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
def
add
(
self
,
*
args
):
return
_pyUModbus
.
Params_add
(
self
,
*
args
)
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
def
add
(
self
,
s
):
return
_pyUModbus
.
Params_add
(
self
,
s
)
__swig_setmethods__
[
"argc"
]
=
_pyUModbus
.
Params_argc_set
__swig_getmethods__
[
"argc"
]
=
_pyUModbus
.
Params_argc_get
__swig_setmethods__
[
"argv"
]
=
_pyUModbus
.
Params_argv_set
__swig_getmethods__
[
"argv"
]
=
_pyUModbus
.
Params_argv_get
__swig_getmethods__
[
"inst"
]
=
lambda
x
:
_pyUModbus
.
Params_inst
__swig_destroy__
=
_pyUModbus
.
delete_Params
__del__
=
lambda
self
:
None
;
__del__
=
lambda
self
:
None
Params_swigregister
=
_pyUModbus
.
Params_swigregister
Params_swigregister
(
Params
)
cvar
=
_pyUModbus
.
cvar
...
...
@@ -119,13 +169,18 @@ class UException(Exception):
__swig_getmethods__
=
{}
__getattr__
=
lambda
self
,
name
:
_swig_getattr
(
self
,
UException
,
name
)
__repr__
=
_swig_repr
def
__init__
(
self
,
*
args
):
this
=
_pyUModbus
.
new_UException
(
*
args
)
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
__swig_destroy__
=
_pyUModbus
.
delete_UException
__del__
=
lambda
self
:
None
;
def
getError
(
self
):
return
_pyUModbus
.
UException_getError
(
self
)
__del__
=
lambda
self
:
None
def
getError
(
self
):
return
_pyUModbus
.
UException_getError
(
self
)
__swig_setmethods__
[
"err"
]
=
_pyUModbus
.
UException_err_set
__swig_getmethods__
[
"err"
]
=
_pyUModbus
.
UException_err_get
UException_swigregister
=
_pyUModbus
.
UException_swigregister
...
...
@@ -133,35 +188,45 @@ UException_swigregister(UException)
class
UTimeOut
(
UException
):
__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
)
__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
)
__repr__
=
_swig_repr
def
__init__
(
self
,
*
args
):
this
=
_pyUModbus
.
new_UTimeOut
(
*
args
)
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
__swig_destroy__
=
_pyUModbus
.
delete_UTimeOut
__del__
=
lambda
self
:
None
;
__del__
=
lambda
self
:
None
UTimeOut_swigregister
=
_pyUModbus
.
UTimeOut_swigregister
UTimeOut_swigregister
(
UTimeOut
)
class
USysError
(
UException
):
__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
)
__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
)
__repr__
=
_swig_repr
def
__init__
(
self
,
*
args
):
this
=
_pyUModbus
.
new_USysError
(
*
args
)
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
__swig_destroy__
=
_pyUModbus
.
delete_USysError
__del__
=
lambda
self
:
None
;
__del__
=
lambda
self
:
None
USysError_swigregister
=
_pyUModbus
.
USysError_swigregister
USysError_swigregister
(
USysError
)
...
...
python/lib/pyUniSet/pyUniSet.py
View file @
b205207c
# 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
# the SWIG interface file instead.
...
...
@@ -9,7 +9,7 @@
from
sys
import
version_info
if
version_info
>=
(
2
,
6
,
0
):
if
version_info
>=
(
2
,
6
,
0
):
def
swig_import_helper
():
from
os.path
import
dirname
import
imp
...
...
@@ -30,64 +30,80 @@ if version_info >= (2,6,0):
else
:
import
_pyUniSet
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
type
(
value
)
.
__name__
==
'SwigPyObject'
:
self
.
__dict__
[
name
]
=
value
return
method
=
class_type
.
__swig_setmethods__
.
get
(
name
,
None
)
if
method
:
return
method
(
self
,
value
)
method
=
class_type
.
__swig_setmethods__
.
get
(
name
,
None
)
if
method
:
return
method
(
self
,
value
)
if
(
not
static
):
self
.
__dict__
[
name
]
=
value
else
:
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
):
if
(
name
==
"thisown"
):
return
self
.
this
.
own
()
method
=
class_type
.
__swig_getmethods__
.
get
(
name
,
None
)
if
method
:
return
method
(
self
)
def
_swig_setattr
(
self
,
class_type
,
name
,
value
):
return
_swig_setattr_nondynamic
(
self
,
class_type
,
name
,
value
,
0
)
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
):
try
:
strthis
=
"proxy of "
+
self
.
this
.
__repr__
()
except
:
strthis
=
""
try
:
strthis
=
"proxy of "
+
self
.
this
.
__repr__
()
except
:
strthis
=
""
return
"<
%
s.
%
s;
%
s >"
%
(
self
.
__class__
.
__module__
,
self
.
__class__
.
__name__
,
strthis
,)
def
uniset_init_params
(
*
args
):
return
_pyUniSet
.
uniset_init_params
(
*
args
)
def
uniset_init_params
(
p
,
xmlfile
):
return
_pyUniSet
.
uniset_init_params
(
p
,
xmlfile
)
uniset_init_params
=
_pyUniSet
.
uniset_init_params
def
uniset_init
(
*
args
):
return
_pyUniSet
.
uniset_init
(
*
args
)
def
uniset_init
(
argc
,
argv
,
xmlfile
):
return
_pyUniSet
.
uniset_init
(
argc
,
argv
,
xmlfile
)
uniset_init
=
_pyUniSet
.
uniset_init
def
getValue
(
*
args
):
return
_pyUniSet
.
getValue
(
*
args
)
def
getValue
(
id
):
return
_pyUniSet
.
getValue
(
id
)
getValue
=
_pyUniSet
.
getValue
def
setValue
(
*
args
):
return
_pyUniSet
.
setValue
(
*
args
)
def
setValue
(
id
,
val
):
return
_pyUniSet
.
setValue
(
id
,
val
)
setValue
=
_pyUniSet
.
setValue
def
getSensorID
(
*
args
):
return
_pyUniSet
.
getSensorID
(
*
args
)
def
getSensorID
(
arg1
):
return
_pyUniSet
.
getSensorID
(
arg1
)
getSensorID
=
_pyUniSet
.
getSensorID
def
getShortName
(
*
args
):
return
_pyUniSet
.
getShortName
(
*
args
)
def
getShortName
(
id
):
return
_pyUniSet
.
getShortName
(
id
)
getShortName
=
_pyUniSet
.
getShortName
def
getName
(
*
args
):
return
_pyUniSet
.
getName
(
*
args
)
def
getName
(
id
):
return
_pyUniSet
.
getName
(
id
)
getName
=
_pyUniSet
.
getName
def
getTextName
(
*
args
):
return
_pyUniSet
.
getTextName
(
*
args
)
def
getTextName
(
id
):
return
_pyUniSet
.
getTextName
(
id
)
getTextName
=
_pyUniSet
.
getTextName
def
getConfFileName
():
...
...
@@ -100,18 +116,23 @@ class Params:
__getattr__
=
lambda
self
,
name
:
_swig_getattr
(
self
,
Params
,
name
)
__repr__
=
_swig_repr
max
=
_pyUniSet
.
Params_max
def
__init__
(
self
):
this
=
_pyUniSet
.
new_Params
()
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
def
add
(
self
,
*
args
):
return
_pyUniSet
.
Params_add
(
self
,
*
args
)
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
def
add
(
self
,
s
):
return
_pyUniSet
.
Params_add
(
self
,
s
)
__swig_setmethods__
[
"argc"
]
=
_pyUniSet
.
Params_argc_set
__swig_getmethods__
[
"argc"
]
=
_pyUniSet
.
Params_argc_get
__swig_setmethods__
[
"argv"
]
=
_pyUniSet
.
Params_argv_set
__swig_getmethods__
[
"argv"
]
=
_pyUniSet
.
Params_argv_get
__swig_getmethods__
[
"inst"
]
=
lambda
x
:
_pyUniSet
.
Params_inst
__swig_destroy__
=
_pyUniSet
.
delete_Params
__del__
=
lambda
self
:
None
;
__del__
=
lambda
self
:
None
Params_swigregister
=
_pyUniSet
.
Params_swigregister
Params_swigregister
(
Params
)
cvar
=
_pyUniSet
.
cvar
...
...
@@ -127,13 +148,18 @@ class UException(Exception):
__swig_getmethods__
=
{}
__getattr__
=
lambda
self
,
name
:
_swig_getattr
(
self
,
UException
,
name
)
__repr__
=
_swig_repr
def
__init__
(
self
,
*
args
):
this
=
_pyUniSet
.
new_UException
(
*
args
)
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
__swig_destroy__
=
_pyUniSet
.
delete_UException
__del__
=
lambda
self
:
None
;
def
getError
(
self
):
return
_pyUniSet
.
UException_getError
(
self
)
__del__
=
lambda
self
:
None
def
getError
(
self
):
return
_pyUniSet
.
UException_getError
(
self
)
__swig_setmethods__
[
"err"
]
=
_pyUniSet
.
UException_err_set
__swig_getmethods__
[
"err"
]
=
_pyUniSet
.
UException_err_get
UException_swigregister
=
_pyUniSet
.
UException_swigregister
...
...
@@ -141,35 +167,45 @@ UException_swigregister(UException)
class
UTimeOut
(
UException
):
__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
)
__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
)
__repr__
=
_swig_repr
def
__init__
(
self
,
*
args
):
this
=
_pyUniSet
.
new_UTimeOut
(
*
args
)
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
__swig_destroy__
=
_pyUniSet
.
delete_UTimeOut
__del__
=
lambda
self
:
None
;
__del__
=
lambda
self
:
None
UTimeOut_swigregister
=
_pyUniSet
.
UTimeOut_swigregister
UTimeOut_swigregister
(
UTimeOut
)
class
USysError
(
UException
):
__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
)
__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
)
__repr__
=
_swig_repr
def
__init__
(
self
,
*
args
):
this
=
_pyUniSet
.
new_USysError
(
*
args
)
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
try
:
self
.
this
.
append
(
this
)
except
:
self
.
this
=
this
__swig_destroy__
=
_pyUniSet
.
delete_USysError
__del__
=
lambda
self
:
None
;
__del__
=
lambda
self
:
None
USysError_swigregister
=
_pyUniSet
.
USysError_swigregister
USysError_swigregister
(
USysError
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment