2
0

ESLevent.2017.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. public class ESLevent : global::System.IDisposable {
  11. private global::System.Runtime.InteropServices.HandleRef swigCPtr;
  12. protected bool swigCMemOwn;
  13. internal ESLevent(global::System.IntPtr cPtr, bool cMemoryOwn) {
  14. swigCMemOwn = cMemoryOwn;
  15. swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
  16. }
  17. internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ESLevent obj) {
  18. return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
  19. }
  20. ~ESLevent() {
  21. Dispose();
  22. }
  23. public virtual void Dispose() {
  24. lock(this) {
  25. if (swigCPtr.Handle != global::System.IntPtr.Zero) {
  26. if (swigCMemOwn) {
  27. swigCMemOwn = false;
  28. ESLPINVOKE.delete_ESLevent(swigCPtr);
  29. }
  30. swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
  31. }
  32. global::System.GC.SuppressFinalize(this);
  33. }
  34. }
  35. public SWIGTYPE_p_esl_event_t Event {
  36. set {
  37. ESLPINVOKE.ESLevent_Event_set(swigCPtr, SWIGTYPE_p_esl_event_t.getCPtr(value));
  38. }
  39. get {
  40. global::System.IntPtr cPtr = ESLPINVOKE.ESLevent_Event_get(swigCPtr);
  41. SWIGTYPE_p_esl_event_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_esl_event_t(cPtr, false);
  42. return ret;
  43. }
  44. }
  45. public string SerializedString {
  46. set {
  47. ESLPINVOKE.ESLevent_SerializedString_set(swigCPtr, value);
  48. }
  49. get {
  50. string ret = ESLPINVOKE.ESLevent_SerializedString_get(swigCPtr);
  51. return ret;
  52. }
  53. }
  54. public int Mine {
  55. set {
  56. ESLPINVOKE.ESLevent_Mine_set(swigCPtr, value);
  57. }
  58. get {
  59. int ret = ESLPINVOKE.ESLevent_Mine_get(swigCPtr);
  60. return ret;
  61. }
  62. }
  63. public ESLevent(string type, string subclass_name) : this(ESLPINVOKE.new_ESLevent__SWIG_0(type, subclass_name), true) {
  64. }
  65. public ESLevent(SWIGTYPE_p_esl_event_t wrap_me, int free_me) : this(ESLPINVOKE.new_ESLevent__SWIG_1(SWIGTYPE_p_esl_event_t.getCPtr(wrap_me), free_me), true) {
  66. }
  67. public ESLevent(ESLevent me) : this(ESLPINVOKE.new_ESLevent__SWIG_2(ESLevent.getCPtr(me)), true) {
  68. }
  69. public string Serialize(string format) {
  70. string ret = ESLPINVOKE.ESLevent_Serialize(swigCPtr, format);
  71. return ret;
  72. }
  73. public bool SetPriority(SWIGTYPE_p_esl_priority_t priority) {
  74. bool ret = ESLPINVOKE.ESLevent_SetPriority(swigCPtr, SWIGTYPE_p_esl_priority_t.getCPtr(priority));
  75. if (ESLPINVOKE.SWIGPendingException.Pending) throw ESLPINVOKE.SWIGPendingException.Retrieve();
  76. return ret;
  77. }
  78. public string GetHeader(string header_name, int idx) {
  79. string ret = ESLPINVOKE.ESLevent_GetHeader(swigCPtr, header_name, idx);
  80. return ret;
  81. }
  82. public string GetBody() {
  83. string ret = ESLPINVOKE.ESLevent_GetBody(swigCPtr);
  84. return ret;
  85. }
  86. public string getType() {
  87. string ret = ESLPINVOKE.ESLevent_getType(swigCPtr);
  88. return ret;
  89. }
  90. public bool AddBody(string value) {
  91. bool ret = ESLPINVOKE.ESLevent_AddBody(swigCPtr, value);
  92. return ret;
  93. }
  94. public bool AddHeader(string header_name, string value) {
  95. bool ret = ESLPINVOKE.ESLevent_AddHeader(swigCPtr, header_name, value);
  96. return ret;
  97. }
  98. public bool pushHeader(string header_name, string value) {
  99. bool ret = ESLPINVOKE.ESLevent_pushHeader(swigCPtr, header_name, value);
  100. return ret;
  101. }
  102. public bool unshiftHeader(string header_name, string value) {
  103. bool ret = ESLPINVOKE.ESLevent_unshiftHeader(swigCPtr, header_name, value);
  104. return ret;
  105. }
  106. public bool DelHeader(string header_name) {
  107. bool ret = ESLPINVOKE.ESLevent_DelHeader(swigCPtr, header_name);
  108. return ret;
  109. }
  110. public string FirstHeader() {
  111. string ret = ESLPINVOKE.ESLevent_FirstHeader(swigCPtr);
  112. return ret;
  113. }
  114. public string NextHeader() {
  115. string ret = ESLPINVOKE.ESLevent_NextHeader(swigCPtr);
  116. return ret;
  117. }
  118. }