ESLPINVOKE.2017.cs 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. //------------------------------------------------------------------------------
  2. // <auto-generated />
  3. //
  4. // This file was automatically generated by SWIG (http://www.swig.org).
  5. // Version 3.0.12
  6. //
  7. // Do not make changes to this file unless you know what you are doing--modify
  8. // the SWIG interface file instead.
  9. //------------------------------------------------------------------------------
  10. class ESLPINVOKE {
  11. protected class SWIGExceptionHelper {
  12. public delegate void ExceptionDelegate(string message);
  13. public delegate void ExceptionArgumentDelegate(string message, string paramName);
  14. static ExceptionDelegate applicationDelegate = new ExceptionDelegate(SetPendingApplicationException);
  15. static ExceptionDelegate arithmeticDelegate = new ExceptionDelegate(SetPendingArithmeticException);
  16. static ExceptionDelegate divideByZeroDelegate = new ExceptionDelegate(SetPendingDivideByZeroException);
  17. static ExceptionDelegate indexOutOfRangeDelegate = new ExceptionDelegate(SetPendingIndexOutOfRangeException);
  18. static ExceptionDelegate invalidCastDelegate = new ExceptionDelegate(SetPendingInvalidCastException);
  19. static ExceptionDelegate invalidOperationDelegate = new ExceptionDelegate(SetPendingInvalidOperationException);
  20. static ExceptionDelegate ioDelegate = new ExceptionDelegate(SetPendingIOException);
  21. static ExceptionDelegate nullReferenceDelegate = new ExceptionDelegate(SetPendingNullReferenceException);
  22. static ExceptionDelegate outOfMemoryDelegate = new ExceptionDelegate(SetPendingOutOfMemoryException);
  23. static ExceptionDelegate overflowDelegate = new ExceptionDelegate(SetPendingOverflowException);
  24. static ExceptionDelegate systemDelegate = new ExceptionDelegate(SetPendingSystemException);
  25. static ExceptionArgumentDelegate argumentDelegate = new ExceptionArgumentDelegate(SetPendingArgumentException);
  26. static ExceptionArgumentDelegate argumentNullDelegate = new ExceptionArgumentDelegate(SetPendingArgumentNullException);
  27. static ExceptionArgumentDelegate argumentOutOfRangeDelegate = new ExceptionArgumentDelegate(SetPendingArgumentOutOfRangeException);
  28. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="SWIGRegisterExceptionCallbacks_ESL")]
  29. public static extern void SWIGRegisterExceptionCallbacks_ESL(
  30. ExceptionDelegate applicationDelegate,
  31. ExceptionDelegate arithmeticDelegate,
  32. ExceptionDelegate divideByZeroDelegate,
  33. ExceptionDelegate indexOutOfRangeDelegate,
  34. ExceptionDelegate invalidCastDelegate,
  35. ExceptionDelegate invalidOperationDelegate,
  36. ExceptionDelegate ioDelegate,
  37. ExceptionDelegate nullReferenceDelegate,
  38. ExceptionDelegate outOfMemoryDelegate,
  39. ExceptionDelegate overflowDelegate,
  40. ExceptionDelegate systemExceptionDelegate);
  41. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="SWIGRegisterExceptionArgumentCallbacks_ESL")]
  42. public static extern void SWIGRegisterExceptionCallbacksArgument_ESL(
  43. ExceptionArgumentDelegate argumentDelegate,
  44. ExceptionArgumentDelegate argumentNullDelegate,
  45. ExceptionArgumentDelegate argumentOutOfRangeDelegate);
  46. static void SetPendingApplicationException(string message) {
  47. SWIGPendingException.Set(new global::System.ApplicationException(message, SWIGPendingException.Retrieve()));
  48. }
  49. static void SetPendingArithmeticException(string message) {
  50. SWIGPendingException.Set(new global::System.ArithmeticException(message, SWIGPendingException.Retrieve()));
  51. }
  52. static void SetPendingDivideByZeroException(string message) {
  53. SWIGPendingException.Set(new global::System.DivideByZeroException(message, SWIGPendingException.Retrieve()));
  54. }
  55. static void SetPendingIndexOutOfRangeException(string message) {
  56. SWIGPendingException.Set(new global::System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve()));
  57. }
  58. static void SetPendingInvalidCastException(string message) {
  59. SWIGPendingException.Set(new global::System.InvalidCastException(message, SWIGPendingException.Retrieve()));
  60. }
  61. static void SetPendingInvalidOperationException(string message) {
  62. SWIGPendingException.Set(new global::System.InvalidOperationException(message, SWIGPendingException.Retrieve()));
  63. }
  64. static void SetPendingIOException(string message) {
  65. SWIGPendingException.Set(new global::System.IO.IOException(message, SWIGPendingException.Retrieve()));
  66. }
  67. static void SetPendingNullReferenceException(string message) {
  68. SWIGPendingException.Set(new global::System.NullReferenceException(message, SWIGPendingException.Retrieve()));
  69. }
  70. static void SetPendingOutOfMemoryException(string message) {
  71. SWIGPendingException.Set(new global::System.OutOfMemoryException(message, SWIGPendingException.Retrieve()));
  72. }
  73. static void SetPendingOverflowException(string message) {
  74. SWIGPendingException.Set(new global::System.OverflowException(message, SWIGPendingException.Retrieve()));
  75. }
  76. static void SetPendingSystemException(string message) {
  77. SWIGPendingException.Set(new global::System.SystemException(message, SWIGPendingException.Retrieve()));
  78. }
  79. static void SetPendingArgumentException(string message, string paramName) {
  80. SWIGPendingException.Set(new global::System.ArgumentException(message, paramName, SWIGPendingException.Retrieve()));
  81. }
  82. static void SetPendingArgumentNullException(string message, string paramName) {
  83. global::System.Exception e = SWIGPendingException.Retrieve();
  84. if (e != null) message = message + " Inner Exception: " + e.Message;
  85. SWIGPendingException.Set(new global::System.ArgumentNullException(paramName, message));
  86. }
  87. static void SetPendingArgumentOutOfRangeException(string message, string paramName) {
  88. global::System.Exception e = SWIGPendingException.Retrieve();
  89. if (e != null) message = message + " Inner Exception: " + e.Message;
  90. SWIGPendingException.Set(new global::System.ArgumentOutOfRangeException(paramName, message));
  91. }
  92. static SWIGExceptionHelper() {
  93. SWIGRegisterExceptionCallbacks_ESL(
  94. applicationDelegate,
  95. arithmeticDelegate,
  96. divideByZeroDelegate,
  97. indexOutOfRangeDelegate,
  98. invalidCastDelegate,
  99. invalidOperationDelegate,
  100. ioDelegate,
  101. nullReferenceDelegate,
  102. outOfMemoryDelegate,
  103. overflowDelegate,
  104. systemDelegate);
  105. SWIGRegisterExceptionCallbacksArgument_ESL(
  106. argumentDelegate,
  107. argumentNullDelegate,
  108. argumentOutOfRangeDelegate);
  109. }
  110. }
  111. protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper();
  112. public class SWIGPendingException {
  113. [global::System.ThreadStatic]
  114. private static global::System.Exception pendingException = null;
  115. private static int numExceptionsPending = 0;
  116. public static bool Pending {
  117. get {
  118. bool pending = false;
  119. if (numExceptionsPending > 0)
  120. if (pendingException != null)
  121. pending = true;
  122. return pending;
  123. }
  124. }
  125. public static void Set(global::System.Exception e) {
  126. if (pendingException != null)
  127. throw new global::System.ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e);
  128. pendingException = e;
  129. lock(typeof(ESLPINVOKE)) {
  130. numExceptionsPending++;
  131. }
  132. }
  133. public static global::System.Exception Retrieve() {
  134. global::System.Exception e = null;
  135. if (numExceptionsPending > 0) {
  136. if (pendingException != null) {
  137. e = pendingException;
  138. pendingException = null;
  139. lock(typeof(ESLPINVOKE)) {
  140. numExceptionsPending--;
  141. }
  142. }
  143. }
  144. return e;
  145. }
  146. }
  147. protected class SWIGStringHelper {
  148. public delegate string SWIGStringDelegate(string message);
  149. static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString);
  150. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="SWIGRegisterStringCallback_ESL")]
  151. public static extern void SWIGRegisterStringCallback_ESL(SWIGStringDelegate stringDelegate);
  152. static string CreateString(string cString) {
  153. return cString;
  154. }
  155. static SWIGStringHelper() {
  156. SWIGRegisterStringCallback_ESL(stringDelegate);
  157. }
  158. }
  159. static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper();
  160. static ESLPINVOKE() {
  161. }
  162. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLevent_Event_set")]
  163. public static extern void ESLevent_Event_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
  164. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLevent_Event_get")]
  165. public static extern global::System.IntPtr ESLevent_Event_get(global::System.Runtime.InteropServices.HandleRef jarg1);
  166. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLevent_SerializedString_set")]
  167. public static extern void ESLevent_SerializedString_set(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
  168. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLevent_SerializedString_get")]
  169. public static extern string ESLevent_SerializedString_get(global::System.Runtime.InteropServices.HandleRef jarg1);
  170. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLevent_Mine_set")]
  171. public static extern void ESLevent_Mine_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
  172. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLevent_Mine_get")]
  173. public static extern int ESLevent_Mine_get(global::System.Runtime.InteropServices.HandleRef jarg1);
  174. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_new_ESLevent__SWIG_0")]
  175. public static extern global::System.IntPtr new_ESLevent__SWIG_0(string jarg1, string jarg2);
  176. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_new_ESLevent__SWIG_1")]
  177. public static extern global::System.IntPtr new_ESLevent__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
  178. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_new_ESLevent__SWIG_2")]
  179. public static extern global::System.IntPtr new_ESLevent__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1);
  180. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_delete_ESLevent")]
  181. public static extern void delete_ESLevent(global::System.Runtime.InteropServices.HandleRef jarg1);
  182. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLevent_Serialize")]
  183. public static extern string ESLevent_Serialize(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
  184. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLevent_SetPriority")]
  185. public static extern bool ESLevent_SetPriority(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
  186. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLevent_GetHeader")]
  187. public static extern string ESLevent_GetHeader(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, int jarg3);
  188. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLevent_GetBody")]
  189. public static extern string ESLevent_GetBody(global::System.Runtime.InteropServices.HandleRef jarg1);
  190. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLevent_getType")]
  191. public static extern string ESLevent_getType(global::System.Runtime.InteropServices.HandleRef jarg1);
  192. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLevent_AddBody")]
  193. public static extern bool ESLevent_AddBody(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
  194. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLevent_AddHeader")]
  195. public static extern bool ESLevent_AddHeader(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3);
  196. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLevent_pushHeader")]
  197. public static extern bool ESLevent_pushHeader(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3);
  198. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLevent_unshiftHeader")]
  199. public static extern bool ESLevent_unshiftHeader(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3);
  200. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLevent_DelHeader")]
  201. public static extern bool ESLevent_DelHeader(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
  202. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLevent_FirstHeader")]
  203. public static extern string ESLevent_FirstHeader(global::System.Runtime.InteropServices.HandleRef jarg1);
  204. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLevent_NextHeader")]
  205. public static extern string ESLevent_NextHeader(global::System.Runtime.InteropServices.HandleRef jarg1);
  206. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_new_ESLconnection__SWIG_0")]
  207. public static extern global::System.IntPtr new_ESLconnection__SWIG_0(string jarg1, int jarg2, string jarg3, string jarg4);
  208. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_new_ESLconnection__SWIG_1")]
  209. public static extern global::System.IntPtr new_ESLconnection__SWIG_1(string jarg1, int jarg2, string jarg3);
  210. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_new_ESLconnection__SWIG_2")]
  211. public static extern global::System.IntPtr new_ESLconnection__SWIG_2(string jarg1, string jarg2, string jarg3, string jarg4);
  212. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_new_ESLconnection__SWIG_3")]
  213. public static extern global::System.IntPtr new_ESLconnection__SWIG_3(string jarg1, string jarg2, string jarg3);
  214. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_new_ESLconnection__SWIG_4")]
  215. public static extern global::System.IntPtr new_ESLconnection__SWIG_4(int jarg1);
  216. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_delete_ESLconnection")]
  217. public static extern void delete_ESLconnection(global::System.Runtime.InteropServices.HandleRef jarg1);
  218. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLconnection_SocketDescriptor")]
  219. public static extern int ESLconnection_SocketDescriptor(global::System.Runtime.InteropServices.HandleRef jarg1);
  220. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLconnection_Connected")]
  221. public static extern int ESLconnection_Connected(global::System.Runtime.InteropServices.HandleRef jarg1);
  222. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLconnection_GetInfo")]
  223. public static extern global::System.IntPtr ESLconnection_GetInfo(global::System.Runtime.InteropServices.HandleRef jarg1);
  224. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLconnection_Send")]
  225. public static extern int ESLconnection_Send(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
  226. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLconnection_SendRecv")]
  227. public static extern global::System.IntPtr ESLconnection_SendRecv(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
  228. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLconnection_Api")]
  229. public static extern global::System.IntPtr ESLconnection_Api(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3);
  230. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLconnection_Bgapi")]
  231. public static extern global::System.IntPtr ESLconnection_Bgapi(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, string jarg4);
  232. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLconnection_SendEvent")]
  233. public static extern global::System.IntPtr ESLconnection_SendEvent(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
  234. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLconnection_sendMSG")]
  235. public static extern int ESLconnection_sendMSG(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3);
  236. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLconnection_RecvEvent")]
  237. public static extern global::System.IntPtr ESLconnection_RecvEvent(global::System.Runtime.InteropServices.HandleRef jarg1);
  238. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLconnection_RecvEventTimed")]
  239. public static extern global::System.IntPtr ESLconnection_RecvEventTimed(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
  240. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLconnection_Filter")]
  241. public static extern global::System.IntPtr ESLconnection_Filter(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3);
  242. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLconnection_Events")]
  243. public static extern int ESLconnection_Events(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3);
  244. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLconnection_Execute")]
  245. public static extern global::System.IntPtr ESLconnection_Execute(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, string jarg4);
  246. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLconnection_ExecuteAsync")]
  247. public static extern global::System.IntPtr ESLconnection_ExecuteAsync(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, string jarg4);
  248. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLconnection_SetAsyncExecute")]
  249. public static extern int ESLconnection_SetAsyncExecute(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
  250. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLconnection_SetEventLock")]
  251. public static extern int ESLconnection_SetEventLock(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
  252. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_ESLconnection_Disconnect")]
  253. public static extern int ESLconnection_Disconnect(global::System.Runtime.InteropServices.HandleRef jarg1);
  254. [global::System.Runtime.InteropServices.DllImport("ESL", EntryPoint="CSharp_eslSetLogLevel")]
  255. public static extern void eslSetLogLevel(int jarg1);
  256. }