adding LICENSE
[lwes-python/github-mirror.git] / lwes.py
blobe08b2d490fd556179cdc0beb832f00665c1e11eb
1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
3 # This file is compatible with both classic and new-style classes.
5 import _lwes
7 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
8 if (name == "this"):
9 if isinstance(value, class_type):
10 self.__dict__[name] = value.this
11 if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
12 del value.thisown
13 return
14 method = class_type.__swig_setmethods__.get(name,None)
15 if method: return method(self,value)
16 if (not static) or hasattr(self,name) or (name == "thisown"):
17 self.__dict__[name] = value
18 else:
19 raise AttributeError("You cannot add attributes to %s" % self)
21 def _swig_setattr(self,class_type,name,value):
22 return _swig_setattr_nondynamic(self,class_type,name,value,0)
24 def _swig_getattr(self,class_type,name):
25 method = class_type.__swig_getmethods__.get(name,None)
26 if method: return method(self)
27 raise AttributeError,name
29 import types
30 try:
31 _object = types.ObjectType
32 _newclass = 1
33 except AttributeError:
34 class _object : pass
35 _newclass = 0
36 del types
40 lwes_event_type_db_create = _lwes.lwes_event_type_db_create
42 lwes_event_type_db_destroy = _lwes.lwes_event_type_db_destroy
44 lwes_emitter_create = _lwes.lwes_emitter_create
46 lwes_emitter_create_with_ttl = _lwes.lwes_emitter_create_with_ttl
48 lwes_emitter_emit = _lwes.lwes_emitter_emit
50 lwes_emitter_emitto = _lwes.lwes_emitter_emitto
52 lwes_emitter_destroy = _lwes.lwes_emitter_destroy
54 lwes_event_create = _lwes.lwes_event_create
56 lwes_event_create_with_encoding = _lwes.lwes_event_create_with_encoding
58 lwes_event_set_U_INT_16 = _lwes.lwes_event_set_U_INT_16
60 lwes_event_get_U_INT_16 = _lwes.lwes_event_get_U_INT_16
62 lwes_event_set_INT_16 = _lwes.lwes_event_set_INT_16
64 lwes_event_get_INT_16 = _lwes.lwes_event_get_INT_16
66 lwes_event_set_U_INT_32 = _lwes.lwes_event_set_U_INT_32
68 lwes_event_get_U_INT_32 = _lwes.lwes_event_get_U_INT_32
70 lwes_event_set_INT_32 = _lwes.lwes_event_set_INT_32
72 lwes_event_get_INT_32 = _lwes.lwes_event_get_INT_32
74 lwes_event_set_U_INT_64 = _lwes.lwes_event_set_U_INT_64
76 lwes_event_get_U_INT_64 = _lwes.lwes_event_get_U_INT_64
78 lwes_event_set_INT_64 = _lwes.lwes_event_set_INT_64
80 lwes_event_get_INT_64 = _lwes.lwes_event_get_INT_64
82 lwes_event_set_STRING = _lwes.lwes_event_set_STRING
84 lwes_event_get_STRING = _lwes.lwes_event_get_STRING
86 lwes_event_set_IP_ADDR_w_string = _lwes.lwes_event_set_IP_ADDR_w_string
88 lwes_event_get_IP_ADDR = _lwes.lwes_event_get_IP_ADDR
90 lwes_event_set_BOOLEAN = _lwes.lwes_event_set_BOOLEAN
92 lwes_event_get_BOOLEAN = _lwes.lwes_event_get_BOOLEAN
94 lwes_event_destroy = _lwes.lwes_event_destroy