textual
[RRG-proxmark3.git] / client / src / pm3.py
blob1c321a2ec47e73b91c4495a19c415696777dc66d
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 4.0.1
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
7 from sys import version_info as _swig_python_version_info
8 if _swig_python_version_info < (2, 7, 0):
9 raise RuntimeError("Python 2.7 or later required")
11 # Import the low-level C/C++ module
12 if __package__ or "." in __name__:
13 from . import _pm3
14 else:
15 import _pm3
17 try:
18 import builtins as __builtin__
19 except ImportError:
20 import __builtin__
22 def _swig_repr(self):
23 try:
24 strthis = "proxy of " + self.this.__repr__()
25 except __builtin__.Exception:
26 strthis = ""
27 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
30 def _swig_setattr_nondynamic_instance_variable(set):
31 def set_instance_attr(self, name, value):
32 if name == "thisown":
33 self.this.own(value)
34 elif name == "this":
35 set(self, name, value)
36 elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
37 set(self, name, value)
38 else:
39 raise AttributeError("You cannot add instance attributes to %s" % self)
40 return set_instance_attr
43 def _swig_setattr_nondynamic_class_variable(set):
44 def set_class_attr(cls, name, value):
45 if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
46 set(cls, name, value)
47 else:
48 raise AttributeError("You cannot add class attributes to %s" % cls)
49 return set_class_attr
52 def _swig_add_metaclass(metaclass):
53 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
54 def wrapper(cls):
55 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
56 return wrapper
59 class _SwigNonDynamicMeta(type):
60 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
64 class pm3(object):
65 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
66 __repr__ = _swig_repr
68 def __init__(self, *args):
69 _pm3.pm3_swiginit(self, _pm3.new_pm3(*args))
70 __swig_destroy__ = _pm3.delete_pm3
72 def console(self, cmd):
73 return _pm3.pm3_console(self, cmd)
74 name = property(_pm3.pm3_name_get)
76 # Register pm3 in _pm3:
77 _pm3.pm3_swigregister(pm3)