Advertisement
Guest User

generated by swig

a guest
Jan 30th, 2013
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.09 KB | None | 0 0
  1. # This file was automatically generated by SWIG (http://www.swig.org).
  2. # Version 2.0.4
  3. #
  4. # Do not make changes to this file unless you know what you are doing--modify
  5. # the SWIG interface file instead.
  6.  
  7.  
  8.  
  9. from sys import version_info
  10. if version_info >= (2,6,0):
  11.     def swig_import_helper():
  12.         from os.path import dirname
  13.         import imp
  14.         fp = None
  15.         try:
  16.             fp, pathname, description = imp.find_module('_LibraryInstance', [dirname(__file__)])
  17.         except ImportError:
  18.             import _LibraryInstance
  19.             return _LibraryInstance
  20.         if fp is not None:
  21.             try:
  22.                 _mod = imp.load_module('_LibraryInstance', fp, pathname, description)
  23.             finally:
  24.                 fp.close()
  25.             return _mod
  26.     _LibraryInstance = swig_import_helper()
  27.     del swig_import_helper
  28. else:
  29.     import _LibraryInstance
  30. del version_info
  31. try:
  32.     _swig_property = property
  33. except NameError:
  34.     pass # Python < 2.2 doesn't have 'property'.
  35. def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
  36.     if (name == "thisown"): return self.this.own(value)
  37.     if (name == "this"):
  38.         if type(value).__name__ == 'SwigPyObject':
  39.             self.__dict__[name] = value
  40.             return
  41.     method = class_type.__swig_setmethods__.get(name,None)
  42.     if method: return method(self,value)
  43.     if (not static):
  44.         self.__dict__[name] = value
  45.     else:
  46.         raise AttributeError("You cannot add attributes to %s" % self)
  47.  
  48. def _swig_setattr(self,class_type,name,value):
  49.     return _swig_setattr_nondynamic(self,class_type,name,value,0)
  50.  
  51. def _swig_getattr(self,class_type,name):
  52.     if (name == "thisown"): return self.this.own()
  53.     method = class_type.__swig_getmethods__.get(name,None)
  54.     if method: return method(self)
  55.     raise AttributeError(name)
  56.  
  57. def _swig_repr(self):
  58.     try: strthis = "proxy of " + self.this.__repr__()
  59.     except: strthis = ""
  60.     return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
  61.  
  62. try:
  63.     _object = object
  64.     _newclass = 1
  65. except AttributeError:
  66.     class _object : pass
  67.     _newclass = 0
  68.  
  69.  
  70. class LibraryInstance(_object):
  71.     __swig_setmethods__ = {}
  72.     __setattr__ = lambda self, name, value: _swig_setattr(self, LibraryInstance, name, value)
  73.     __swig_getmethods__ = {}
  74.     __getattr__ = lambda self, name: _swig_getattr(self, LibraryInstance, name)
  75.     __repr__ = _swig_repr
  76.     def init(self): return _LibraryInstance.LibraryInstance_init(self)
  77.     def terminate(self): return _LibraryInstance.LibraryInstance_terminate(self)
  78. _LibraryInstance.LibraryInstance_consumeWeekData(self, *args)
  79.     def __init__(self):
  80.         this = _LibraryInstance.new_LibraryInstance()
  81.         try: self.this.append(this)
  82.         except: self.this = this
  83.     __swig_destroy__ = _LibraryInstance.delete_LibraryInstance
  84.     __del__ = lambda self : None;
  85. LibraryInstance_swigregister = _LibraryInstance.LibraryInstance_swigregister
  86. LibraryInstance_swigregister(LibraryInstance)
  87.  
  88. # This file is compatible with both classic and new-style classes.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement