ESL.pm 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. # This file was automatically generated by SWIG (http://www.swig.org).
  2. # Version 1.3.35
  3. #
  4. # Don't modify this file, modify the SWIG interface instead.
  5. package ESL;
  6. require Exporter;
  7. require DynaLoader;
  8. @ISA = qw(Exporter DynaLoader);
  9. package ESLc;
  10. bootstrap ESL;
  11. package ESL;
  12. @EXPORT = qw( );
  13. # ---------- BASE METHODS -------------
  14. package ESL;
  15. sub TIEHASH {
  16. my ($classname,$obj) = @_;
  17. return bless $obj, $classname;
  18. }
  19. sub CLEAR { }
  20. sub FIRSTKEY { }
  21. sub NEXTKEY { }
  22. sub FETCH {
  23. my ($self,$field) = @_;
  24. my $member_func = "swig_${field}_get";
  25. $self->$member_func();
  26. }
  27. sub STORE {
  28. my ($self,$field,$newval) = @_;
  29. my $member_func = "swig_${field}_set";
  30. $self->$member_func($newval);
  31. }
  32. sub this {
  33. my $ptr = shift;
  34. return tied(%$ptr);
  35. }
  36. # ------- FUNCTION WRAPPERS --------
  37. package ESL;
  38. *eslSetLogLevel = *ESLc::eslSetLogLevel;
  39. ############# Class : ESL::ESLevent ##############
  40. package ESL::ESLevent;
  41. use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
  42. @ISA = qw( ESL );
  43. %OWNER = ();
  44. %ITERATORS = ();
  45. *swig_event_get = *ESLc::ESLevent_event_get;
  46. *swig_event_set = *ESLc::ESLevent_event_set;
  47. *swig_serialized_string_get = *ESLc::ESLevent_serialized_string_get;
  48. *swig_serialized_string_set = *ESLc::ESLevent_serialized_string_set;
  49. *swig_mine_get = *ESLc::ESLevent_mine_get;
  50. *swig_mine_set = *ESLc::ESLevent_mine_set;
  51. sub new {
  52. my $pkg = shift;
  53. my $self = ESLc::new_ESLevent(@_);
  54. bless $self, $pkg if defined($self);
  55. }
  56. sub DESTROY {
  57. return unless $_[0]->isa('HASH');
  58. my $self = tied(%{$_[0]});
  59. return unless defined $self;
  60. delete $ITERATORS{$self};
  61. if (exists $OWNER{$self}) {
  62. ESLc::delete_ESLevent($self);
  63. delete $OWNER{$self};
  64. }
  65. }
  66. *serialize = *ESLc::ESLevent_serialize;
  67. *setPriority = *ESLc::ESLevent_setPriority;
  68. *getHeader = *ESLc::ESLevent_getHeader;
  69. *getBody = *ESLc::ESLevent_getBody;
  70. *getType = *ESLc::ESLevent_getType;
  71. *addBody = *ESLc::ESLevent_addBody;
  72. *addHeader = *ESLc::ESLevent_addHeader;
  73. *pushHeader = *ESLc::ESLevent_pushHeader;
  74. *unshiftHeader = *ESLc::ESLevent_unshiftHeader;
  75. *delHeader = *ESLc::ESLevent_delHeader;
  76. *firstHeader = *ESLc::ESLevent_firstHeader;
  77. *nextHeader = *ESLc::ESLevent_nextHeader;
  78. sub DISOWN {
  79. my $self = shift;
  80. my $ptr = tied(%$self);
  81. delete $OWNER{$ptr};
  82. }
  83. sub ACQUIRE {
  84. my $self = shift;
  85. my $ptr = tied(%$self);
  86. $OWNER{$ptr} = 1;
  87. }
  88. ############# Class : ESL::ESLconnection ##############
  89. package ESL::ESLconnection;
  90. use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
  91. @ISA = qw( ESL );
  92. %OWNER = ();
  93. %ITERATORS = ();
  94. sub new {
  95. my $pkg = shift;
  96. my $self = ESLc::new_ESLconnection(@_);
  97. bless $self, $pkg if defined($self);
  98. }
  99. sub DESTROY {
  100. return unless $_[0]->isa('HASH');
  101. my $self = tied(%{$_[0]});
  102. return unless defined $self;
  103. delete $ITERATORS{$self};
  104. if (exists $OWNER{$self}) {
  105. ESLc::delete_ESLconnection($self);
  106. delete $OWNER{$self};
  107. }
  108. }
  109. *socketDescriptor = *ESLc::ESLconnection_socketDescriptor;
  110. *connected = *ESLc::ESLconnection_connected;
  111. *getInfo = *ESLc::ESLconnection_getInfo;
  112. *send = *ESLc::ESLconnection_send;
  113. *sendRecv = *ESLc::ESLconnection_sendRecv;
  114. *api = *ESLc::ESLconnection_api;
  115. *bgapi = *ESLc::ESLconnection_bgapi;
  116. *sendEvent = *ESLc::ESLconnection_sendEvent;
  117. *sendMSG = *ESLc::ESLconnection_sendMSG;
  118. *recvEvent = *ESLc::ESLconnection_recvEvent;
  119. *recvEventTimed = *ESLc::ESLconnection_recvEventTimed;
  120. *filter = *ESLc::ESLconnection_filter;
  121. *events = *ESLc::ESLconnection_events;
  122. *execute = *ESLc::ESLconnection_execute;
  123. *executeAsync = *ESLc::ESLconnection_executeAsync;
  124. *setAsyncExecute = *ESLc::ESLconnection_setAsyncExecute;
  125. *setEventLock = *ESLc::ESLconnection_setEventLock;
  126. *disconnect = *ESLc::ESLconnection_disconnect;
  127. sub DISOWN {
  128. my $self = shift;
  129. my $ptr = tied(%$self);
  130. delete $OWNER{$ptr};
  131. }
  132. sub ACQUIRE {
  133. my $self = shift;
  134. my $ptr = tied(%$self);
  135. $OWNER{$ptr} = 1;
  136. }
  137. # ------- VARIABLE STUBS --------
  138. package ESL;
  139. 1;