11 from sys
import version_info
12 if version_info >= (2, 6, 0):
13 def swig_import_helper():
14 from os.path
import dirname
18 fp, pathname, description = imp.find_module(
'_NetMsgsCore', [dirname(__file__)])
24 _mod = imp.load_module(
'_NetMsgsCore', fp, pathname, description)
28 _NetMsgsCore = swig_import_helper()
29 del swig_import_helper
34 _swig_property = property
39 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
40 if (name ==
"thisown"):
41 return self.this.own(value)
43 if type(value).__name__ ==
'SwigPyObject':
44 self.__dict__[name] = value
46 method = class_type.__swig_setmethods__.get(name,
None)
48 return method(self, value)
51 object.__setattr__(self, name, value)
53 self.__dict__[name] = value
55 raise AttributeError(
"You cannot add attributes to %s" % self)
58 def _swig_setattr(self, class_type, name, value):
59 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
62 def _swig_getattr_nondynamic(self, class_type, name, static=1):
63 if (name ==
"thisown"):
64 return self.this.own()
65 method = class_type.__swig_getmethods__.get(name,
None)
69 return object.__getattr__(self, name)
71 raise AttributeError(name)
73 def _swig_getattr(self, class_type, name):
74 return _swig_getattr_nondynamic(self, class_type, name, 0)
79 strthis =
"proxy of " + self.this.__repr__()
82 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
87 except AttributeError:
94 _NetMsgsCore.NM_OK_swigconstant(_NetMsgsCore)
95 NM_OK = _NetMsgsCore.NM_OK
97 _NetMsgsCore.NM_ECODE_GEN_swigconstant(_NetMsgsCore)
98 NM_ECODE_GEN = _NetMsgsCore.NM_ECODE_GEN
100 _NetMsgsCore.NM_ECODE_NOMEM_swigconstant(_NetMsgsCore)
101 NM_ECODE_NOMEM = _NetMsgsCore.NM_ECODE_NOMEM
103 _NetMsgsCore.NM_ECODE_ARCH_NOTSUP_swigconstant(_NetMsgsCore)
104 NM_ECODE_ARCH_NOTSUP = _NetMsgsCore.NM_ECODE_ARCH_NOTSUP
106 _NetMsgsCore.NM_ECODE_RANGE_swigconstant(_NetMsgsCore)
107 NM_ECODE_RANGE = _NetMsgsCore.NM_ECODE_RANGE
109 _NetMsgsCore.NM_ECODE_FTYPE_swigconstant(_NetMsgsCore)
110 NM_ECODE_FTYPE = _NetMsgsCore.NM_ECODE_FTYPE
112 _NetMsgsCore.NM_ECODE_EMSG_swigconstant(_NetMsgsCore)
113 NM_ECODE_EMSG = _NetMsgsCore.NM_ECODE_EMSG
115 _NetMsgsCore.NM_ECODE_MSGID_swigconstant(_NetMsgsCore)
116 NM_ECODE_MSGID = _NetMsgsCore.NM_ECODE_MSGID
118 _NetMsgsCore.NM_ECODE_INTERNAL_swigconstant(_NetMsgsCore)
119 NM_ECODE_INTERNAL = _NetMsgsCore.NM_ECODE_INTERNAL
121 _NetMsgsCore.NM_ECODE_BADEC_swigconstant(_NetMsgsCore)
122 NM_ECODE_BADEC = _NetMsgsCore.NM_ECODE_BADEC
124 _NetMsgsCore.NM_ECODE_NUMOF_swigconstant(_NetMsgsCore)
125 NM_ECODE_NUMOF = _NetMsgsCore.NM_ECODE_NUMOF
127 _NetMsgsCore.NMEncodingFlat_swigconstant(_NetMsgsCore)
128 NMEncodingFlat = _NetMsgsCore.NMEncodingFlat
130 _NetMsgsCore.NMEncodingITV_swigconstant(_NetMsgsCore)
131 NMEncodingITV = _NetMsgsCore.NMEncodingITV
133 _NetMsgsCore.NMEncodingCLI_swigconstant(_NetMsgsCore)
134 NMEncodingCLI = _NetMsgsCore.NMEncodingCLI
136 _NetMsgsCore.NMEncodingNumOf_swigconstant(_NetMsgsCore)
137 NMEncodingNumOf = _NetMsgsCore.NMEncodingNumOf
139 _NetMsgsCore.NMEndianBig_swigconstant(_NetMsgsCore)
140 NMEndianBig = _NetMsgsCore.NMEndianBig
142 _NetMsgsCore.NMEndianLittle_swigconstant(_NetMsgsCore)
143 NMEndianLittle = _NetMsgsCore.NMEndianLittle
145 _NetMsgsCore.NMEndianNative_swigconstant(_NetMsgsCore)
146 NMEndianNative = _NetMsgsCore.NMEndianNative
148 _NetMsgsCore.NMFTypeNone_swigconstant(_NetMsgsCore)
149 NMFTypeNone = _NetMsgsCore.NMFTypeNone
151 _NetMsgsCore.NMFTypePadTr_swigconstant(_NetMsgsCore)
152 NMFTypePadTr = _NetMsgsCore.NMFTypePadTr
154 _NetMsgsCore.NMFTypeBool_swigconstant(_NetMsgsCore)
155 NMFTypeBool = _NetMsgsCore.NMFTypeBool
157 _NetMsgsCore.NMFTypeU8_swigconstant(_NetMsgsCore)
158 NMFTypeU8 = _NetMsgsCore.NMFTypeU8
160 _NetMsgsCore.NMFTypeByte_swigconstant(_NetMsgsCore)
161 NMFTypeByte = _NetMsgsCore.NMFTypeByte
163 _NetMsgsCore.NMFTypeF64_swigconstant(_NetMsgsCore)
164 NMFTypeF64 = _NetMsgsCore.NMFTypeF64
166 _NetMsgsCore.NMFTypeDouble_swigconstant(_NetMsgsCore)
167 NMFTypeDouble = _NetMsgsCore.NMFTypeDouble
169 _NetMsgsCore.NMFTypeU16_swigconstant(_NetMsgsCore)
170 NMFTypeU16 = _NetMsgsCore.NMFTypeU16
172 _NetMsgsCore.NMFTypeUShort_swigconstant(_NetMsgsCore)
173 NMFTypeUShort = _NetMsgsCore.NMFTypeUShort
175 _NetMsgsCore.NMFTypeU32_swigconstant(_NetMsgsCore)
176 NMFTypeU32 = _NetMsgsCore.NMFTypeU32
178 _NetMsgsCore.NMFTypeUInt_swigconstant(_NetMsgsCore)
179 NMFTypeUInt = _NetMsgsCore.NMFTypeUInt
181 _NetMsgsCore.NMFTypeP64_swigconstant(_NetMsgsCore)
182 NMFTypeP64 = _NetMsgsCore.NMFTypeP64
184 _NetMsgsCore.NMFTypeLongPointer_swigconstant(_NetMsgsCore)
185 NMFTypeLongPointer = _NetMsgsCore.NMFTypeLongPointer
187 _NetMsgsCore.NMFTypeU64_swigconstant(_NetMsgsCore)
188 NMFTypeU64 = _NetMsgsCore.NMFTypeU64
190 _NetMsgsCore.NMFTypeULongLong_swigconstant(_NetMsgsCore)
191 NMFTypeULongLong = _NetMsgsCore.NMFTypeULongLong
193 _NetMsgsCore.NMFTypeVector_swigconstant(_NetMsgsCore)
194 NMFTypeVector = _NetMsgsCore.NMFTypeVector
196 _NetMsgsCore.NMFTypeS8_swigconstant(_NetMsgsCore)
197 NMFTypeS8 = _NetMsgsCore.NMFTypeS8
199 _NetMsgsCore.NMFTypeSChar_swigconstant(_NetMsgsCore)
200 NMFTypeSChar = _NetMsgsCore.NMFTypeSChar
202 _NetMsgsCore.NMFTypeChar_swigconstant(_NetMsgsCore)
203 NMFTypeChar = _NetMsgsCore.NMFTypeChar
205 _NetMsgsCore.NMFTypeF32_swigconstant(_NetMsgsCore)
206 NMFTypeF32 = _NetMsgsCore.NMFTypeF32
208 _NetMsgsCore.NMFTypeFloat_swigconstant(_NetMsgsCore)
209 NMFTypeFloat = _NetMsgsCore.NMFTypeFloat
211 _NetMsgsCore.NMFTypeS16_swigconstant(_NetMsgsCore)
212 NMFTypeS16 = _NetMsgsCore.NMFTypeS16
214 _NetMsgsCore.NMFTypeShort_swigconstant(_NetMsgsCore)
215 NMFTypeShort = _NetMsgsCore.NMFTypeShort
217 _NetMsgsCore.NMFTypeS32_swigconstant(_NetMsgsCore)
218 NMFTypeS32 = _NetMsgsCore.NMFTypeS32
220 _NetMsgsCore.NMFTypeInt_swigconstant(_NetMsgsCore)
221 NMFTypeInt = _NetMsgsCore.NMFTypeInt
223 _NetMsgsCore.NMFTypeP32_swigconstant(_NetMsgsCore)
224 NMFTypeP32 = _NetMsgsCore.NMFTypeP32
226 _NetMsgsCore.NMFTypePointer_swigconstant(_NetMsgsCore)
227 NMFTypePointer = _NetMsgsCore.NMFTypePointer
229 _NetMsgsCore.NMFTypeS64_swigconstant(_NetMsgsCore)
230 NMFTypeS64 = _NetMsgsCore.NMFTypeS64
232 _NetMsgsCore.NMFTypeLongLong_swigconstant(_NetMsgsCore)
233 NMFTypeLongLong = _NetMsgsCore.NMFTypeLongLong
235 _NetMsgsCore.NMFTypeString_swigconstant(_NetMsgsCore)
236 NMFTypeString = _NetMsgsCore.NMFTypeString
238 _NetMsgsCore.NMFTypePad_swigconstant(_NetMsgsCore)
239 NMFTypePad = _NetMsgsCore.NMFTypePad
241 _NetMsgsCore.NMFTypeStruct_swigconstant(_NetMsgsCore)
242 NMFTypeStruct = _NetMsgsCore.NMFTypeStruct
244 _NetMsgsCore.NMFTypeNumOf_swigconstant(_NetMsgsCore)
245 NMFTypeNumOf = _NetMsgsCore.NMFTypeNumOf
247 _NetMsgsCore.NMFVAL_LEN_CHAR_swigconstant(_NetMsgsCore)
248 NMFVAL_LEN_CHAR = _NetMsgsCore.NMFVAL_LEN_CHAR
250 _NetMsgsCore.NMFVAL_LEN_U8_swigconstant(_NetMsgsCore)
251 NMFVAL_LEN_U8 = _NetMsgsCore.NMFVAL_LEN_U8
253 _NetMsgsCore.NMFVAL_LEN_S8_swigconstant(_NetMsgsCore)
254 NMFVAL_LEN_S8 = _NetMsgsCore.NMFVAL_LEN_S8
256 _NetMsgsCore.NMFVAL_LEN_BOOL_swigconstant(_NetMsgsCore)
257 NMFVAL_LEN_BOOL = _NetMsgsCore.NMFVAL_LEN_BOOL
259 _NetMsgsCore.NMFVAL_LEN_U16_swigconstant(_NetMsgsCore)
260 NMFVAL_LEN_U16 = _NetMsgsCore.NMFVAL_LEN_U16
262 _NetMsgsCore.NMFVAL_LEN_S16_swigconstant(_NetMsgsCore)
263 NMFVAL_LEN_S16 = _NetMsgsCore.NMFVAL_LEN_S16
265 _NetMsgsCore.NMFVAL_LEN_U32_swigconstant(_NetMsgsCore)
266 NMFVAL_LEN_U32 = _NetMsgsCore.NMFVAL_LEN_U32
268 _NetMsgsCore.NMFVAL_LEN_S32_swigconstant(_NetMsgsCore)
269 NMFVAL_LEN_S32 = _NetMsgsCore.NMFVAL_LEN_S32
271 _NetMsgsCore.NMFVAL_LEN_U64_swigconstant(_NetMsgsCore)
272 NMFVAL_LEN_U64 = _NetMsgsCore.NMFVAL_LEN_U64
274 _NetMsgsCore.NMFVAL_LEN_S64_swigconstant(_NetMsgsCore)
275 NMFVAL_LEN_S64 = _NetMsgsCore.NMFVAL_LEN_S64
277 _NetMsgsCore.NMFVAL_LEN_F32_swigconstant(_NetMsgsCore)
278 NMFVAL_LEN_F32 = _NetMsgsCore.NMFVAL_LEN_F32
280 _NetMsgsCore.NMFVAL_LEN_F64_swigconstant(_NetMsgsCore)
281 NMFVAL_LEN_F64 = _NetMsgsCore.NMFVAL_LEN_F64
283 _NetMsgsCore.NMFVAL_LEN_P32_swigconstant(_NetMsgsCore)
284 NMFVAL_LEN_P32 = _NetMsgsCore.NMFVAL_LEN_P32
286 _NetMsgsCore.NMFVAL_LEN_P64_swigconstant(_NetMsgsCore)
287 NMFVAL_LEN_P64 = _NetMsgsCore.NMFVAL_LEN_P64
289 _NetMsgsCore.NMFVAL_LEN_BYTE_swigconstant(_NetMsgsCore)
290 NMFVAL_LEN_BYTE = _NetMsgsCore.NMFVAL_LEN_BYTE
292 _NetMsgsCore.NMFVAL_LEN_SCHAR_swigconstant(_NetMsgsCore)
293 NMFVAL_LEN_SCHAR = _NetMsgsCore.NMFVAL_LEN_SCHAR
295 _NetMsgsCore.NMFVAL_LEN_USHORT_swigconstant(_NetMsgsCore)
296 NMFVAL_LEN_USHORT = _NetMsgsCore.NMFVAL_LEN_USHORT
298 _NetMsgsCore.NMFVAL_LEN_SHORT_swigconstant(_NetMsgsCore)
299 NMFVAL_LEN_SHORT = _NetMsgsCore.NMFVAL_LEN_SHORT
301 _NetMsgsCore.NMFVAL_LEN_UINT_swigconstant(_NetMsgsCore)
302 NMFVAL_LEN_UINT = _NetMsgsCore.NMFVAL_LEN_UINT
304 _NetMsgsCore.NMFVAL_LEN_INT_swigconstant(_NetMsgsCore)
305 NMFVAL_LEN_INT = _NetMsgsCore.NMFVAL_LEN_INT
307 _NetMsgsCore.NMFVAL_LEN_ULONGLONG_swigconstant(_NetMsgsCore)
308 NMFVAL_LEN_ULONGLONG = _NetMsgsCore.NMFVAL_LEN_ULONGLONG
310 _NetMsgsCore.NMFVAL_LEN_LONGLONG_swigconstant(_NetMsgsCore)
311 NMFVAL_LEN_LONGLONG = _NetMsgsCore.NMFVAL_LEN_LONGLONG
313 _NetMsgsCore.NMFVAL_LEN_FLOAT_swigconstant(_NetMsgsCore)
314 NMFVAL_LEN_FLOAT = _NetMsgsCore.NMFVAL_LEN_FLOAT
316 _NetMsgsCore.NMFVAL_LEN_DOUBLE_swigconstant(_NetMsgsCore)
317 NMFVAL_LEN_DOUBLE = _NetMsgsCore.NMFVAL_LEN_DOUBLE
319 _NetMsgsCore.NMFVAL_LEN_POINTER_swigconstant(_NetMsgsCore)
320 NMFVAL_LEN_POINTER = _NetMsgsCore.NMFVAL_LEN_POINTER
322 _NetMsgsCore.NMFVAL_LEN_LONGPOINTER_swigconstant(_NetMsgsCore)
323 NMFVAL_LEN_LONGPOINTER = _NetMsgsCore.NMFVAL_LEN_LONGPOINTER
325 _NetMsgsCore.NMFVAL_LEN_STRING_swigconstant(_NetMsgsCore)
326 NMFVAL_LEN_STRING = _NetMsgsCore.NMFVAL_LEN_STRING
328 _NetMsgsCore.NMFVAL_LEN_MAX_STRING_swigconstant(_NetMsgsCore)
329 NMFVAL_LEN_MAX_STRING = _NetMsgsCore.NMFVAL_LEN_MAX_STRING
331 _NetMsgsCore.NMFVAL_LEN_STRUCT_swigconstant(_NetMsgsCore)
332 NMFVAL_LEN_STRUCT = _NetMsgsCore.NMFVAL_LEN_STRUCT
334 _NetMsgsCore.NMFVAL_LEN_VECTOR_swigconstant(_NetMsgsCore)
335 NMFVAL_LEN_VECTOR = _NetMsgsCore.NMFVAL_LEN_VECTOR
337 _NetMsgsCore.NMFVAL_LEN_MAX_VECTOR_swigconstant(_NetMsgsCore)
338 NMFVAL_LEN_MAX_VECTOR = _NetMsgsCore.NMFVAL_LEN_MAX_VECTOR
340 _NetMsgsCore.NMMSG_ID_NONE_swigconstant(_NetMsgsCore)
341 NMMSG_ID_NONE = _NetMsgsCore.NMMSG_ID_NONE
343 _NetMsgsCore.NMFID_NONE_swigconstant(_NetMsgsCore)
344 NMFID_NONE = _NetMsgsCore.NMFID_NONE
346 _NetMsgsCore.NMITV_MSGID_SIZE_swigconstant(_NetMsgsCore)
347 NMITV_MSGID_SIZE = _NetMsgsCore.NMITV_MSGID_SIZE
349 _NetMsgsCore.NMITV_FID_SIZE_swigconstant(_NetMsgsCore)
350 NMITV_FID_SIZE = _NetMsgsCore.NMITV_FID_SIZE
352 _NetMsgsCore.NMITV_FTYPE_SIZE_swigconstant(_NetMsgsCore)
353 NMITV_FTYPE_SIZE = _NetMsgsCore.NMITV_FTYPE_SIZE
355 _NetMsgsCore.NMITV_FCOUNT_SIZE_swigconstant(_NetMsgsCore)
356 NMITV_FCOUNT_SIZE = _NetMsgsCore.NMITV_FCOUNT_SIZE
358 _NetMsgsCore.NMITV_MSGHDR_SIZE_swigconstant(_NetMsgsCore)
359 NMITV_MSGHDR_SIZE = _NetMsgsCore.NMITV_MSGHDR_SIZE
361 _NetMsgsCore.NMITV_FHDR_SIZE_BASE_swigconstant(_NetMsgsCore)
362 NMITV_FHDR_SIZE_BASE = _NetMsgsCore.NMITV_FHDR_SIZE_BASE
364 _NetMsgsCore.NMITV_FHDR_SIZE_SIMPLE_swigconstant(_NetMsgsCore)
365 NMITV_FHDR_SIZE_SIMPLE = _NetMsgsCore.NMITV_FHDR_SIZE_SIMPLE
367 _NetMsgsCore.NMITV_FHDR_SIZE_STRING_swigconstant(_NetMsgsCore)
368 NMITV_FHDR_SIZE_STRING = _NetMsgsCore.NMITV_FHDR_SIZE_STRING
370 _NetMsgsCore.NMITV_FHDR_SIZE_STRUCT_swigconstant(_NetMsgsCore)
371 NMITV_FHDR_SIZE_STRUCT = _NetMsgsCore.NMITV_FHDR_SIZE_STRUCT
373 _NetMsgsCore.NMITV_FHDR_SIZE_VECTOR_swigconstant(_NetMsgsCore)
374 NMITV_FHDR_SIZE_VECTOR = _NetMsgsCore.NMITV_FHDR_SIZE_VECTOR
376 def nmStrError(ecode):
377 return _NetMsgsCore.nmStrError(ecode)
378 nmStrError = _NetMsgsCore.nmStrError
382 NetMsgs Core Python Inline Extensions and Wrappers.