2
0

ESL.py 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. # This file was automatically generated by SWIG (http://www.swig.org).
  2. # Version 3.0.2
  3. #
  4. # Do not make changes to this file unless you know what you are doing--modify
  5. # the SWIG interface file instead.
  6. from sys import version_info
  7. if version_info >= (2,6,0):
  8. def swig_import_helper():
  9. from os.path import dirname
  10. import imp
  11. fp = None
  12. try:
  13. fp, pathname, description = imp.find_module('_ESL', [dirname(__file__)])
  14. except ImportError:
  15. import _ESL
  16. return _ESL
  17. if fp is not None:
  18. try:
  19. _mod = imp.load_module('_ESL', fp, pathname, description)
  20. finally:
  21. fp.close()
  22. return _mod
  23. _ESL = swig_import_helper()
  24. del swig_import_helper
  25. else:
  26. import _ESL
  27. del version_info
  28. def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
  29. if (name == "thisown"): return self.this.own(value)
  30. if (name == "this"):
  31. if type(value).__name__ == 'SwigPyObject':
  32. self.__dict__[name] = value
  33. return
  34. method = class_type.__swig_setmethods__.get(name,None)
  35. if method: return method(self,value)
  36. if (not static):
  37. self.__dict__[name] = value
  38. else:
  39. raise AttributeError("You cannot add attributes to %s" % self)
  40. def _swig_setattr(self,class_type,name,value):
  41. return _swig_setattr_nondynamic(self,class_type,name,value,0)
  42. def _swig_getattr(self,class_type,name):
  43. if (name == "thisown"): return self.this.own()
  44. method = class_type.__swig_getmethods__.get(name,None)
  45. if method: return method(self)
  46. raise AttributeError(name)
  47. def _swig_repr(self):
  48. try: strthis = "proxy of " + self.this.__repr__()
  49. except: strthis = ""
  50. return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
  51. class ESLevent:
  52. __swig_setmethods__ = {}
  53. __setattr__ = lambda self, name, value: _swig_setattr(self, ESLevent, name, value)
  54. __swig_getmethods__ = {}
  55. __getattr__ = lambda self, name: _swig_getattr(self, ESLevent, name)
  56. __repr__ = _swig_repr
  57. __swig_setmethods__["event"] = _ESL.ESLevent_event_set
  58. __swig_getmethods__["event"] = _ESL.ESLevent_event_get
  59. __swig_setmethods__["serialized_string"] = _ESL.ESLevent_serialized_string_set
  60. __swig_getmethods__["serialized_string"] = _ESL.ESLevent_serialized_string_get
  61. __swig_setmethods__["mine"] = _ESL.ESLevent_mine_set
  62. __swig_getmethods__["mine"] = _ESL.ESLevent_mine_get
  63. def __init__(self, *args):
  64. this = _ESL.new_ESLevent(*args)
  65. try: self.this.append(this)
  66. except: self.this = this
  67. __swig_destroy__ = _ESL.delete_ESLevent
  68. __del__ = lambda self : None;
  69. def serialize(self, format=None): return _ESL.ESLevent_serialize(self, format)
  70. def setPriority(self, *args): return _ESL.ESLevent_setPriority(self, *args)
  71. def getHeader(self, *args): return _ESL.ESLevent_getHeader(self, *args)
  72. def getBody(self): return _ESL.ESLevent_getBody(self)
  73. def getType(self): return _ESL.ESLevent_getType(self)
  74. def addBody(self, *args): return _ESL.ESLevent_addBody(self, *args)
  75. def addHeader(self, *args): return _ESL.ESLevent_addHeader(self, *args)
  76. def pushHeader(self, *args): return _ESL.ESLevent_pushHeader(self, *args)
  77. def unshiftHeader(self, *args): return _ESL.ESLevent_unshiftHeader(self, *args)
  78. def delHeader(self, *args): return _ESL.ESLevent_delHeader(self, *args)
  79. def firstHeader(self): return _ESL.ESLevent_firstHeader(self)
  80. def nextHeader(self): return _ESL.ESLevent_nextHeader(self)
  81. ESLevent_swigregister = _ESL.ESLevent_swigregister
  82. ESLevent_swigregister(ESLevent)
  83. class ESLconnection:
  84. __swig_setmethods__ = {}
  85. __setattr__ = lambda self, name, value: _swig_setattr(self, ESLconnection, name, value)
  86. __swig_getmethods__ = {}
  87. __getattr__ = lambda self, name: _swig_getattr(self, ESLconnection, name)
  88. __repr__ = _swig_repr
  89. def __init__(self, *args):
  90. this = _ESL.new_ESLconnection(*args)
  91. try: self.this.append(this)
  92. except: self.this = this
  93. __swig_destroy__ = _ESL.delete_ESLconnection
  94. __del__ = lambda self : None;
  95. def socketDescriptor(self): return _ESL.ESLconnection_socketDescriptor(self)
  96. def connected(self): return _ESL.ESLconnection_connected(self)
  97. def getInfo(self): return _ESL.ESLconnection_getInfo(self)
  98. def send(self, *args): return _ESL.ESLconnection_send(self, *args)
  99. def sendRecv(self, *args): return _ESL.ESLconnection_sendRecv(self, *args)
  100. def api(self, *args): return _ESL.ESLconnection_api(self, *args)
  101. def bgapi(self, *args): return _ESL.ESLconnection_bgapi(self, *args)
  102. def sendEvent(self, *args): return _ESL.ESLconnection_sendEvent(self, *args)
  103. def sendMSG(self, *args): return _ESL.ESLconnection_sendMSG(self, *args)
  104. def recvEvent(self): return _ESL.ESLconnection_recvEvent(self)
  105. def recvEventTimed(self, *args): return _ESL.ESLconnection_recvEventTimed(self, *args)
  106. def filter(self, *args): return _ESL.ESLconnection_filter(self, *args)
  107. def events(self, *args): return _ESL.ESLconnection_events(self, *args)
  108. def execute(self, *args): return _ESL.ESLconnection_execute(self, *args)
  109. def executeAsync(self, *args): return _ESL.ESLconnection_executeAsync(self, *args)
  110. def setAsyncExecute(self, *args): return _ESL.ESLconnection_setAsyncExecute(self, *args)
  111. def setEventLock(self, *args): return _ESL.ESLconnection_setEventLock(self, *args)
  112. def disconnect(self): return _ESL.ESLconnection_disconnect(self)
  113. ESLconnection_swigregister = _ESL.ESLconnection_swigregister
  114. ESLconnection_swigregister(ESLconnection)
  115. def eslSetLogLevel(*args):
  116. return _ESL.eslSetLogLevel(*args)
  117. eslSetLogLevel = _ESL.eslSetLogLevel
  118. # This file is compatible with both classic and new-style classes.