removing generated interface
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6792 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2da2e15a53
commit
71bcf51ef0
1 changed files with 0 additions and 69 deletions
|
|
@ -1,69 +0,0 @@
|
|||
# This file was created automatically by SWIG.
|
||||
# Don't modify this file, modify the SWIG interface instead.
|
||||
# This file is compatible with both classic and new-style classes.
|
||||
|
||||
import _swigobject
|
||||
|
||||
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
|
||||
if (name == "this"):
|
||||
if isinstance(value, class_type):
|
||||
self.__dict__[name] = value.this
|
||||
if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
|
||||
del value.thisown
|
||||
return
|
||||
method = class_type.__swig_setmethods__.get(name,None)
|
||||
if method: return method(self,value)
|
||||
if (not static) or hasattr(self,name) or (name == "thisown"):
|
||||
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):
|
||||
method = class_type.__swig_getmethods__.get(name,None)
|
||||
if method: return method(self)
|
||||
raise AttributeError,name
|
||||
|
||||
import types
|
||||
try:
|
||||
_object = types.ObjectType
|
||||
_newclass = 1
|
||||
except AttributeError:
|
||||
class _object : pass
|
||||
_newclass = 0
|
||||
del types
|
||||
|
||||
|
||||
class A(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, A, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, A, name)
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ A instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
__swig_setmethods__["name"] = _swigobject.A_name_set
|
||||
__swig_getmethods__["name"] = _swigobject.A_name_get
|
||||
if _newclass:name = property(_swigobject.A_name_get, _swigobject.A_name_set)
|
||||
def __init__(self, *args):
|
||||
_swig_setattr(self, A, 'this', _swigobject.new_A(*args))
|
||||
_swig_setattr(self, A, 'thisown', 1)
|
||||
def __del__(self, destroy=_swigobject.delete_A):
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
|
||||
class APtr(A):
|
||||
def __init__(self, this):
|
||||
_swig_setattr(self, A, 'this', this)
|
||||
if not hasattr(self,"thisown"): _swig_setattr(self, A, 'thisown', 0)
|
||||
_swig_setattr(self, A,self.__class__,A)
|
||||
_swigobject.A_swigregister(APtr)
|
||||
|
||||
|
||||
pointer_str = _swigobject.pointer_str
|
||||
|
||||
a_ptr = _swigobject.a_ptr
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue