Source file
src/oneml/alpr/alprAPI.go
1
10
11
12
13 package alpr
14
15
182 import "C"
183
184 import "unsafe"
185 import _ "runtime/cgo"
186 import "sync"
187
188
189 type _ unsafe.Pointer
190
191
192
193 var Swig_escape_always_false bool
194 var Swig_escape_val interface{}
195
196
197 type _swig_fnptr *byte
198 type _swig_memberptr *byte
199
200
201 type _ sync.Mutex
202
203
204 type swig_gostring struct { p uintptr; n int }
205 func swigCopyString(s string) string {
206 p := *(*swig_gostring)(unsafe.Pointer(&s))
207 r := string((*[0x7fffffff]byte)(unsafe.Pointer(p.p))[:p.n])
208 Swig_free(p.p)
209 return r
210 }
211
212 func Swig_free(arg1 uintptr) {
213 _swig_i_0 := arg1
214 C._wrap_Swig_free_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))
215 }
216
217 func Swig_malloc(arg1 int) (_swig_ret uintptr) {
218 var swig_r uintptr
219 _swig_i_0 := arg1
220 swig_r = (uintptr)(C._wrap_Swig_malloc_alpr_7074c9342a7bdf4a(C.swig_intgo(_swig_i_0)))
221 return swig_r
222 }
223
224 type SwigcptrMultiImage uintptr
225
226 func (p SwigcptrMultiImage) Swigcptr() uintptr {
227 return (uintptr)(p)
228 }
229
230 func (p SwigcptrMultiImage) SwigIsMultiImage() {
231 }
232
233 func NewMultiImage__SWIG_0() (_swig_ret MultiImage) {
234 var swig_r MultiImage
235 swig_r = (MultiImage)(SwigcptrMultiImage(C._wrap_new_MultiImage__SWIG_0_alpr_7074c9342a7bdf4a()))
236 return swig_r
237 }
238
239 func NewMultiImage__SWIG_1(arg1 int64) (_swig_ret MultiImage) {
240 var swig_r MultiImage
241 _swig_i_0 := arg1
242 swig_r = (MultiImage)(SwigcptrMultiImage(C._wrap_new_MultiImage__SWIG_1_alpr_7074c9342a7bdf4a(C.swig_type_1(_swig_i_0))))
243 return swig_r
244 }
245
246 func NewMultiImage__SWIG_2(arg1 MultiImage) (_swig_ret MultiImage) {
247 var swig_r MultiImage
248 _swig_i_0 := arg1.Swigcptr()
249 swig_r = (MultiImage)(SwigcptrMultiImage(C._wrap_new_MultiImage__SWIG_2_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))))
250 return swig_r
251 }
252
253 func NewMultiImage(a ...interface{}) MultiImage {
254 argc := len(a)
255 if argc == 0 {
256 return NewMultiImage__SWIG_0()
257 }
258 if argc == 1 {
259 if _, ok := a[0].(int64); !ok {
260 goto check_2
261 }
262 return NewMultiImage__SWIG_1(a[0].(int64))
263 }
264 check_2:
265 if argc == 1 {
266 return NewMultiImage__SWIG_2(a[0].(MultiImage))
267 }
268 panic("No match for overloaded function call")
269 }
270
271 func (arg1 SwigcptrMultiImage) Size() (_swig_ret int64) {
272 var swig_r int64
273 _swig_i_0 := arg1
274 swig_r = (int64)(C._wrap_MultiImage_size_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
275 return swig_r
276 }
277
278 func (arg1 SwigcptrMultiImage) Capacity() (_swig_ret int64) {
279 var swig_r int64
280 _swig_i_0 := arg1
281 swig_r = (int64)(C._wrap_MultiImage_capacity_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
282 return swig_r
283 }
284
285 func (arg1 SwigcptrMultiImage) Reserve(arg2 int64) {
286 _swig_i_0 := arg1
287 _swig_i_1 := arg2
288 C._wrap_MultiImage_reserve_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.swig_type_4(_swig_i_1))
289 }
290
291 func (arg1 SwigcptrMultiImage) IsEmpty() (_swig_ret bool) {
292 var swig_r bool
293 _swig_i_0 := arg1
294 swig_r = (bool)(C._wrap_MultiImage_isEmpty_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
295 return swig_r
296 }
297
298 func (arg1 SwigcptrMultiImage) Clear() {
299 _swig_i_0 := arg1
300 C._wrap_MultiImage_clear_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))
301 }
302
303 func (arg1 SwigcptrMultiImage) Add(arg2 Image) {
304 _swig_i_0 := arg1
305 _swig_i_1 := arg2.Swigcptr()
306 C._wrap_MultiImage_add_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.uintptr_t(_swig_i_1))
307 }
308
309 func (arg1 SwigcptrMultiImage) Get(arg2 int) (_swig_ret Image) {
310 var swig_r Image
311 _swig_i_0 := arg1
312 _swig_i_1 := arg2
313 swig_r = (Image)(SwigcptrImage(C._wrap_MultiImage_get_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.swig_intgo(_swig_i_1))))
314 return swig_r
315 }
316
317 func (arg1 SwigcptrMultiImage) Set(arg2 int, arg3 Image) {
318 _swig_i_0 := arg1
319 _swig_i_1 := arg2
320 _swig_i_2 := arg3.Swigcptr()
321 C._wrap_MultiImage_set_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.swig_intgo(_swig_i_1), C.uintptr_t(_swig_i_2))
322 }
323
324 func DeleteMultiImage(arg1 MultiImage) {
325 _swig_i_0 := arg1.Swigcptr()
326 C._wrap_delete_MultiImage_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))
327 }
328
329 type MultiImage interface {
330 Swigcptr() uintptr
331 SwigIsMultiImage()
332 Size() (_swig_ret int64)
333 Capacity() (_swig_ret int64)
334 Reserve(arg2 int64)
335 IsEmpty() (_swig_ret bool)
336 Clear()
337 Add(arg2 Image)
338 Get(arg2 int) (_swig_ret Image)
339 Set(arg2 int, arg3 Image)
340 }
341
342 type SwigcptrImage uintptr
343
344 func (p SwigcptrImage) Swigcptr() uintptr {
345 return (uintptr)(p)
346 }
347
348 func (p SwigcptrImage) SwigIsImage() {
349 }
350
351 func NewImage__SWIG_0() (_swig_ret Image) {
352 var swig_r Image
353 swig_r = (Image)(SwigcptrImage(C._wrap_new_Image__SWIG_0_alpr_7074c9342a7bdf4a()))
354 return swig_r
355 }
356
357 func (arg1 SwigcptrImage) Size() (_swig_ret int64) {
358 var swig_r int64
359 _swig_i_0 := arg1
360 swig_r = (int64)(C._wrap_Image_size_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
361 return swig_r
362 }
363
364 func (arg1 SwigcptrImage) SetWidth(arg2 uint16) {
365 _swig_i_0 := arg1
366 _swig_i_1 := arg2
367 C._wrap_Image_SetWidth_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.short(_swig_i_1))
368 }
369
370 func (arg1 SwigcptrImage) SetHeight(arg2 uint16) {
371 _swig_i_0 := arg1
372 _swig_i_1 := arg2
373 C._wrap_Image_SetHeight_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.short(_swig_i_1))
374 }
375
376 func (arg1 SwigcptrImage) SetDepth(arg2 uint16) {
377 _swig_i_0 := arg1
378 _swig_i_1 := arg2
379 C._wrap_Image_SetDepth_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.short(_swig_i_1))
380 }
381
382 func (arg1 SwigcptrImage) GetWidth() (_swig_ret uint16) {
383 var swig_r uint16
384 _swig_i_0 := arg1
385 swig_r = (uint16)(C._wrap_Image_GetWidth_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
386 return swig_r
387 }
388
389 func (arg1 SwigcptrImage) GetHeight() (_swig_ret uint16) {
390 var swig_r uint16
391 _swig_i_0 := arg1
392 swig_r = (uint16)(C._wrap_Image_GetHeight_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
393 return swig_r
394 }
395
396 func (arg1 SwigcptrImage) GetDepth() (_swig_ret uint16) {
397 var swig_r uint16
398 _swig_i_0 := arg1
399 swig_r = (uint16)(C._wrap_Image_GetDepth_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
400 return swig_r
401 }
402
403 func NewImage__SWIG_1(arg1 int, arg2 int, arg3 int, arg4 []byte) (_swig_ret Image) {
404 var swig_r Image
405 _swig_i_0 := arg1
406 _swig_i_1 := arg2
407 _swig_i_2 := arg3
408 _swig_i_3 := arg4
409 swig_r = (Image)(SwigcptrImage(C._wrap_new_Image__SWIG_1_alpr_7074c9342a7bdf4a(C.swig_intgo(_swig_i_0), C.swig_intgo(_swig_i_1), C.swig_intgo(_swig_i_2), *(*C.swig_type_6)(unsafe.Pointer(&_swig_i_3)))))
410 if Swig_escape_always_false {
411 Swig_escape_val = arg4
412 }
413 return swig_r
414 }
415
416 func NewImage(a ...interface{}) Image {
417 argc := len(a)
418 if argc == 0 {
419 return NewImage__SWIG_0()
420 }
421 if argc == 4 {
422 return NewImage__SWIG_1(a[0].(int), a[1].(int), a[2].(int), a[3].([]byte))
423 }
424 panic("No match for overloaded function call")
425 }
426
427 func (arg1 SwigcptrImage) SetData(arg2 []byte) {
428 _swig_i_0 := arg1
429 _swig_i_1 := arg2
430 C._wrap_Image_SetData_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), *(*C.swig_type_7)(unsafe.Pointer(&_swig_i_1)))
431 if Swig_escape_always_false {
432 Swig_escape_val = arg2
433 }
434 }
435
436 func (arg1 SwigcptrImage) GetData() (_swig_ret *byte) {
437 var swig_r *byte
438 _swig_i_0 := arg1
439 swig_r = (*byte)(C._wrap_Image_GetData_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
440 return swig_r
441 }
442
443 func DeleteImage(arg1 Image) {
444 _swig_i_0 := arg1.Swigcptr()
445 C._wrap_delete_Image_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))
446 }
447
448 type Image interface {
449 Swigcptr() uintptr
450 SwigIsImage()
451 Size() (_swig_ret int64)
452 SetWidth(arg2 uint16)
453 SetHeight(arg2 uint16)
454 SetDepth(arg2 uint16)
455 GetWidth() (_swig_ret uint16)
456 GetHeight() (_swig_ret uint16)
457 GetDepth() (_swig_ret uint16)
458 SetData(arg2 []byte)
459 GetData() (_swig_ret *byte)
460 }
461
462 type SwigcptrBBox uintptr
463
464 func (p SwigcptrBBox) Swigcptr() uintptr {
465 return (uintptr)(p)
466 }
467
468 func (p SwigcptrBBox) SwigIsBBox() {
469 }
470
471 func (arg1 SwigcptrBBox) SetTop(arg2 float32) {
472 _swig_i_0 := arg1
473 _swig_i_1 := arg2
474 C._wrap_BBox_top_set_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.float(_swig_i_1))
475 }
476
477 func (arg1 SwigcptrBBox) GetTop() (_swig_ret float32) {
478 var swig_r float32
479 _swig_i_0 := arg1
480 swig_r = (float32)(C._wrap_BBox_top_get_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
481 return swig_r
482 }
483
484 func (arg1 SwigcptrBBox) SetLeft(arg2 float32) {
485 _swig_i_0 := arg1
486 _swig_i_1 := arg2
487 C._wrap_BBox_left_set_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.float(_swig_i_1))
488 }
489
490 func (arg1 SwigcptrBBox) GetLeft() (_swig_ret float32) {
491 var swig_r float32
492 _swig_i_0 := arg1
493 swig_r = (float32)(C._wrap_BBox_left_get_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
494 return swig_r
495 }
496
497 func (arg1 SwigcptrBBox) SetBottom(arg2 float32) {
498 _swig_i_0 := arg1
499 _swig_i_1 := arg2
500 C._wrap_BBox_bottom_set_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.float(_swig_i_1))
501 }
502
503 func (arg1 SwigcptrBBox) GetBottom() (_swig_ret float32) {
504 var swig_r float32
505 _swig_i_0 := arg1
506 swig_r = (float32)(C._wrap_BBox_bottom_get_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
507 return swig_r
508 }
509
510 func (arg1 SwigcptrBBox) SetRight(arg2 float32) {
511 _swig_i_0 := arg1
512 _swig_i_1 := arg2
513 C._wrap_BBox_right_set_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.float(_swig_i_1))
514 }
515
516 func (arg1 SwigcptrBBox) GetRight() (_swig_ret float32) {
517 var swig_r float32
518 _swig_i_0 := arg1
519 swig_r = (float32)(C._wrap_BBox_right_get_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
520 return swig_r
521 }
522
523 func NewBBox() (_swig_ret BBox) {
524 var swig_r BBox
525 swig_r = (BBox)(SwigcptrBBox(C._wrap_new_BBox_alpr_7074c9342a7bdf4a()))
526 return swig_r
527 }
528
529 func DeleteBBox(arg1 BBox) {
530 _swig_i_0 := arg1.Swigcptr()
531 C._wrap_delete_BBox_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))
532 }
533
534 type BBox interface {
535 Swigcptr() uintptr
536 SwigIsBBox()
537 SetTop(arg2 float32)
538 GetTop() (_swig_ret float32)
539 SetLeft(arg2 float32)
540 GetLeft() (_swig_ret float32)
541 SetBottom(arg2 float32)
542 GetBottom() (_swig_ret float32)
543 SetRight(arg2 float32)
544 GetRight() (_swig_ret float32)
545 }
546
547 type SwigcptrFloatVector uintptr
548
549 func (p SwigcptrFloatVector) Swigcptr() uintptr {
550 return (uintptr)(p)
551 }
552
553 func (p SwigcptrFloatVector) SwigIsFloatVector() {
554 }
555
556 func NewFloatVector__SWIG_0() (_swig_ret FloatVector) {
557 var swig_r FloatVector
558 swig_r = (FloatVector)(SwigcptrFloatVector(C._wrap_new_FloatVector__SWIG_0_alpr_7074c9342a7bdf4a()))
559 return swig_r
560 }
561
562 func NewFloatVector__SWIG_1(arg1 int64) (_swig_ret FloatVector) {
563 var swig_r FloatVector
564 _swig_i_0 := arg1
565 swig_r = (FloatVector)(SwigcptrFloatVector(C._wrap_new_FloatVector__SWIG_1_alpr_7074c9342a7bdf4a(C.swig_type_8(_swig_i_0))))
566 return swig_r
567 }
568
569 func NewFloatVector__SWIG_2(arg1 FloatVector) (_swig_ret FloatVector) {
570 var swig_r FloatVector
571 _swig_i_0 := arg1.Swigcptr()
572 swig_r = (FloatVector)(SwigcptrFloatVector(C._wrap_new_FloatVector__SWIG_2_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))))
573 return swig_r
574 }
575
576 func NewFloatVector(a ...interface{}) FloatVector {
577 argc := len(a)
578 if argc == 0 {
579 return NewFloatVector__SWIG_0()
580 }
581 if argc == 1 {
582 if _, ok := a[0].(int64); !ok {
583 goto check_2
584 }
585 return NewFloatVector__SWIG_1(a[0].(int64))
586 }
587 check_2:
588 if argc == 1 {
589 return NewFloatVector__SWIG_2(a[0].(FloatVector))
590 }
591 panic("No match for overloaded function call")
592 }
593
594 func (arg1 SwigcptrFloatVector) Size() (_swig_ret int64) {
595 var swig_r int64
596 _swig_i_0 := arg1
597 swig_r = (int64)(C._wrap_FloatVector_size_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
598 return swig_r
599 }
600
601 func (arg1 SwigcptrFloatVector) Capacity() (_swig_ret int64) {
602 var swig_r int64
603 _swig_i_0 := arg1
604 swig_r = (int64)(C._wrap_FloatVector_capacity_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
605 return swig_r
606 }
607
608 func (arg1 SwigcptrFloatVector) Reserve(arg2 int64) {
609 _swig_i_0 := arg1
610 _swig_i_1 := arg2
611 C._wrap_FloatVector_reserve_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.swig_type_11(_swig_i_1))
612 }
613
614 func (arg1 SwigcptrFloatVector) IsEmpty() (_swig_ret bool) {
615 var swig_r bool
616 _swig_i_0 := arg1
617 swig_r = (bool)(C._wrap_FloatVector_isEmpty_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
618 return swig_r
619 }
620
621 func (arg1 SwigcptrFloatVector) Clear() {
622 _swig_i_0 := arg1
623 C._wrap_FloatVector_clear_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))
624 }
625
626 func (arg1 SwigcptrFloatVector) Add(arg2 float32) {
627 _swig_i_0 := arg1
628 _swig_i_1 := arg2
629 C._wrap_FloatVector_add_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.float(_swig_i_1))
630 }
631
632 func (arg1 SwigcptrFloatVector) Get(arg2 int) (_swig_ret float32) {
633 var swig_r float32
634 _swig_i_0 := arg1
635 _swig_i_1 := arg2
636 swig_r = (float32)(C._wrap_FloatVector_get_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.swig_intgo(_swig_i_1)))
637 return swig_r
638 }
639
640 func (arg1 SwigcptrFloatVector) Set(arg2 int, arg3 float32) {
641 _swig_i_0 := arg1
642 _swig_i_1 := arg2
643 _swig_i_2 := arg3
644 C._wrap_FloatVector_set_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.swig_intgo(_swig_i_1), C.float(_swig_i_2))
645 }
646
647 func DeleteFloatVector(arg1 FloatVector) {
648 _swig_i_0 := arg1.Swigcptr()
649 C._wrap_delete_FloatVector_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))
650 }
651
652 type FloatVector interface {
653 Swigcptr() uintptr
654 SwigIsFloatVector()
655 Size() (_swig_ret int64)
656 Capacity() (_swig_ret int64)
657 Reserve(arg2 int64)
658 IsEmpty() (_swig_ret bool)
659 Clear()
660 Add(arg2 float32)
661 Get(arg2 int) (_swig_ret float32)
662 Set(arg2 int, arg3 float32)
663 }
664
665 type SwigcptrIntVector uintptr
666
667 func (p SwigcptrIntVector) Swigcptr() uintptr {
668 return (uintptr)(p)
669 }
670
671 func (p SwigcptrIntVector) SwigIsIntVector() {
672 }
673
674 func NewIntVector__SWIG_0() (_swig_ret IntVector) {
675 var swig_r IntVector
676 swig_r = (IntVector)(SwigcptrIntVector(C._wrap_new_IntVector__SWIG_0_alpr_7074c9342a7bdf4a()))
677 return swig_r
678 }
679
680 func NewIntVector__SWIG_1(arg1 int64) (_swig_ret IntVector) {
681 var swig_r IntVector
682 _swig_i_0 := arg1
683 swig_r = (IntVector)(SwigcptrIntVector(C._wrap_new_IntVector__SWIG_1_alpr_7074c9342a7bdf4a(C.swig_type_12(_swig_i_0))))
684 return swig_r
685 }
686
687 func NewIntVector__SWIG_2(arg1 IntVector) (_swig_ret IntVector) {
688 var swig_r IntVector
689 _swig_i_0 := arg1.Swigcptr()
690 swig_r = (IntVector)(SwigcptrIntVector(C._wrap_new_IntVector__SWIG_2_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))))
691 return swig_r
692 }
693
694 func NewIntVector(a ...interface{}) IntVector {
695 argc := len(a)
696 if argc == 0 {
697 return NewIntVector__SWIG_0()
698 }
699 if argc == 1 {
700 if _, ok := a[0].(int64); !ok {
701 goto check_2
702 }
703 return NewIntVector__SWIG_1(a[0].(int64))
704 }
705 check_2:
706 if argc == 1 {
707 return NewIntVector__SWIG_2(a[0].(IntVector))
708 }
709 panic("No match for overloaded function call")
710 }
711
712 func (arg1 SwigcptrIntVector) Size() (_swig_ret int64) {
713 var swig_r int64
714 _swig_i_0 := arg1
715 swig_r = (int64)(C._wrap_IntVector_size_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
716 return swig_r
717 }
718
719 func (arg1 SwigcptrIntVector) Capacity() (_swig_ret int64) {
720 var swig_r int64
721 _swig_i_0 := arg1
722 swig_r = (int64)(C._wrap_IntVector_capacity_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
723 return swig_r
724 }
725
726 func (arg1 SwigcptrIntVector) Reserve(arg2 int64) {
727 _swig_i_0 := arg1
728 _swig_i_1 := arg2
729 C._wrap_IntVector_reserve_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.swig_type_15(_swig_i_1))
730 }
731
732 func (arg1 SwigcptrIntVector) IsEmpty() (_swig_ret bool) {
733 var swig_r bool
734 _swig_i_0 := arg1
735 swig_r = (bool)(C._wrap_IntVector_isEmpty_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
736 return swig_r
737 }
738
739 func (arg1 SwigcptrIntVector) Clear() {
740 _swig_i_0 := arg1
741 C._wrap_IntVector_clear_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))
742 }
743
744 func (arg1 SwigcptrIntVector) Add(arg2 int) {
745 _swig_i_0 := arg1
746 _swig_i_1 := arg2
747 C._wrap_IntVector_add_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.swig_intgo(_swig_i_1))
748 }
749
750 func (arg1 SwigcptrIntVector) Get(arg2 int) (_swig_ret int) {
751 var swig_r int
752 _swig_i_0 := arg1
753 _swig_i_1 := arg2
754 swig_r = (int)(C._wrap_IntVector_get_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.swig_intgo(_swig_i_1)))
755 return swig_r
756 }
757
758 func (arg1 SwigcptrIntVector) Set(arg2 int, arg3 int) {
759 _swig_i_0 := arg1
760 _swig_i_1 := arg2
761 _swig_i_2 := arg3
762 C._wrap_IntVector_set_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.swig_intgo(_swig_i_1), C.swig_intgo(_swig_i_2))
763 }
764
765 func DeleteIntVector(arg1 IntVector) {
766 _swig_i_0 := arg1.Swigcptr()
767 C._wrap_delete_IntVector_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))
768 }
769
770 type IntVector interface {
771 Swigcptr() uintptr
772 SwigIsIntVector()
773 Size() (_swig_ret int64)
774 Capacity() (_swig_ret int64)
775 Reserve(arg2 int64)
776 IsEmpty() (_swig_ret bool)
777 Clear()
778 Add(arg2 int)
779 Get(arg2 int) (_swig_ret int)
780 Set(arg2 int, arg3 int)
781 }
782
783 type SwigcptrBBoxVector uintptr
784
785 func (p SwigcptrBBoxVector) Swigcptr() uintptr {
786 return (uintptr)(p)
787 }
788
789 func (p SwigcptrBBoxVector) SwigIsBBoxVector() {
790 }
791
792 func NewBBoxVector__SWIG_0() (_swig_ret BBoxVector) {
793 var swig_r BBoxVector
794 swig_r = (BBoxVector)(SwigcptrBBoxVector(C._wrap_new_BBoxVector__SWIG_0_alpr_7074c9342a7bdf4a()))
795 return swig_r
796 }
797
798 func NewBBoxVector__SWIG_1(arg1 int64) (_swig_ret BBoxVector) {
799 var swig_r BBoxVector
800 _swig_i_0 := arg1
801 swig_r = (BBoxVector)(SwigcptrBBoxVector(C._wrap_new_BBoxVector__SWIG_1_alpr_7074c9342a7bdf4a(C.swig_type_16(_swig_i_0))))
802 return swig_r
803 }
804
805 func NewBBoxVector__SWIG_2(arg1 BBoxVector) (_swig_ret BBoxVector) {
806 var swig_r BBoxVector
807 _swig_i_0 := arg1.Swigcptr()
808 swig_r = (BBoxVector)(SwigcptrBBoxVector(C._wrap_new_BBoxVector__SWIG_2_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))))
809 return swig_r
810 }
811
812 func NewBBoxVector(a ...interface{}) BBoxVector {
813 argc := len(a)
814 if argc == 0 {
815 return NewBBoxVector__SWIG_0()
816 }
817 if argc == 1 {
818 if _, ok := a[0].(int64); !ok {
819 goto check_2
820 }
821 return NewBBoxVector__SWIG_1(a[0].(int64))
822 }
823 check_2:
824 if argc == 1 {
825 return NewBBoxVector__SWIG_2(a[0].(BBoxVector))
826 }
827 panic("No match for overloaded function call")
828 }
829
830 func (arg1 SwigcptrBBoxVector) Size() (_swig_ret int64) {
831 var swig_r int64
832 _swig_i_0 := arg1
833 swig_r = (int64)(C._wrap_BBoxVector_size_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
834 return swig_r
835 }
836
837 func (arg1 SwigcptrBBoxVector) Capacity() (_swig_ret int64) {
838 var swig_r int64
839 _swig_i_0 := arg1
840 swig_r = (int64)(C._wrap_BBoxVector_capacity_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
841 return swig_r
842 }
843
844 func (arg1 SwigcptrBBoxVector) Reserve(arg2 int64) {
845 _swig_i_0 := arg1
846 _swig_i_1 := arg2
847 C._wrap_BBoxVector_reserve_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.swig_type_19(_swig_i_1))
848 }
849
850 func (arg1 SwigcptrBBoxVector) IsEmpty() (_swig_ret bool) {
851 var swig_r bool
852 _swig_i_0 := arg1
853 swig_r = (bool)(C._wrap_BBoxVector_isEmpty_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
854 return swig_r
855 }
856
857 func (arg1 SwigcptrBBoxVector) Clear() {
858 _swig_i_0 := arg1
859 C._wrap_BBoxVector_clear_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))
860 }
861
862 func (arg1 SwigcptrBBoxVector) Add(arg2 BBox) {
863 _swig_i_0 := arg1
864 _swig_i_1 := arg2.Swigcptr()
865 C._wrap_BBoxVector_add_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.uintptr_t(_swig_i_1))
866 }
867
868 func (arg1 SwigcptrBBoxVector) Get(arg2 int) (_swig_ret BBox) {
869 var swig_r BBox
870 _swig_i_0 := arg1
871 _swig_i_1 := arg2
872 swig_r = (BBox)(SwigcptrBBox(C._wrap_BBoxVector_get_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.swig_intgo(_swig_i_1))))
873 return swig_r
874 }
875
876 func (arg1 SwigcptrBBoxVector) Set(arg2 int, arg3 BBox) {
877 _swig_i_0 := arg1
878 _swig_i_1 := arg2
879 _swig_i_2 := arg3.Swigcptr()
880 C._wrap_BBoxVector_set_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.swig_intgo(_swig_i_1), C.uintptr_t(_swig_i_2))
881 }
882
883 func DeleteBBoxVector(arg1 BBoxVector) {
884 _swig_i_0 := arg1.Swigcptr()
885 C._wrap_delete_BBoxVector_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))
886 }
887
888 type BBoxVector interface {
889 Swigcptr() uintptr
890 SwigIsBBoxVector()
891 Size() (_swig_ret int64)
892 Capacity() (_swig_ret int64)
893 Reserve(arg2 int64)
894 IsEmpty() (_swig_ret bool)
895 Clear()
896 Add(arg2 BBox)
897 Get(arg2 int) (_swig_ret BBox)
898 Set(arg2 int, arg3 BBox)
899 }
900
901 type SwigcptrVehicleDetectorResultVector uintptr
902
903 func (p SwigcptrVehicleDetectorResultVector) Swigcptr() uintptr {
904 return (uintptr)(p)
905 }
906
907 func (p SwigcptrVehicleDetectorResultVector) SwigIsVehicleDetectorResultVector() {
908 }
909
910 func NewVehicleDetectorResultVector__SWIG_0() (_swig_ret VehicleDetectorResultVector) {
911 var swig_r VehicleDetectorResultVector
912 swig_r = (VehicleDetectorResultVector)(SwigcptrVehicleDetectorResultVector(C._wrap_new_VehicleDetectorResultVector__SWIG_0_alpr_7074c9342a7bdf4a()))
913 return swig_r
914 }
915
916 func NewVehicleDetectorResultVector__SWIG_1(arg1 int64) (_swig_ret VehicleDetectorResultVector) {
917 var swig_r VehicleDetectorResultVector
918 _swig_i_0 := arg1
919 swig_r = (VehicleDetectorResultVector)(SwigcptrVehicleDetectorResultVector(C._wrap_new_VehicleDetectorResultVector__SWIG_1_alpr_7074c9342a7bdf4a(C.swig_type_20(_swig_i_0))))
920 return swig_r
921 }
922
923 func NewVehicleDetectorResultVector__SWIG_2(arg1 VehicleDetectorResultVector) (_swig_ret VehicleDetectorResultVector) {
924 var swig_r VehicleDetectorResultVector
925 _swig_i_0 := arg1.Swigcptr()
926 swig_r = (VehicleDetectorResultVector)(SwigcptrVehicleDetectorResultVector(C._wrap_new_VehicleDetectorResultVector__SWIG_2_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))))
927 return swig_r
928 }
929
930 func NewVehicleDetectorResultVector(a ...interface{}) VehicleDetectorResultVector {
931 argc := len(a)
932 if argc == 0 {
933 return NewVehicleDetectorResultVector__SWIG_0()
934 }
935 if argc == 1 {
936 if _, ok := a[0].(int64); !ok {
937 goto check_2
938 }
939 return NewVehicleDetectorResultVector__SWIG_1(a[0].(int64))
940 }
941 check_2:
942 if argc == 1 {
943 return NewVehicleDetectorResultVector__SWIG_2(a[0].(VehicleDetectorResultVector))
944 }
945 panic("No match for overloaded function call")
946 }
947
948 func (arg1 SwigcptrVehicleDetectorResultVector) Size() (_swig_ret int64) {
949 var swig_r int64
950 _swig_i_0 := arg1
951 swig_r = (int64)(C._wrap_VehicleDetectorResultVector_size_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
952 return swig_r
953 }
954
955 func (arg1 SwigcptrVehicleDetectorResultVector) Capacity() (_swig_ret int64) {
956 var swig_r int64
957 _swig_i_0 := arg1
958 swig_r = (int64)(C._wrap_VehicleDetectorResultVector_capacity_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
959 return swig_r
960 }
961
962 func (arg1 SwigcptrVehicleDetectorResultVector) Reserve(arg2 int64) {
963 _swig_i_0 := arg1
964 _swig_i_1 := arg2
965 C._wrap_VehicleDetectorResultVector_reserve_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.swig_type_23(_swig_i_1))
966 }
967
968 func (arg1 SwigcptrVehicleDetectorResultVector) IsEmpty() (_swig_ret bool) {
969 var swig_r bool
970 _swig_i_0 := arg1
971 swig_r = (bool)(C._wrap_VehicleDetectorResultVector_isEmpty_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
972 return swig_r
973 }
974
975 func (arg1 SwigcptrVehicleDetectorResultVector) Clear() {
976 _swig_i_0 := arg1
977 C._wrap_VehicleDetectorResultVector_clear_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))
978 }
979
980 func (arg1 SwigcptrVehicleDetectorResultVector) Add(arg2 VehicleDetectorResult) {
981 _swig_i_0 := arg1
982 _swig_i_1 := arg2.Swigcptr()
983 C._wrap_VehicleDetectorResultVector_add_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.uintptr_t(_swig_i_1))
984 }
985
986 func (arg1 SwigcptrVehicleDetectorResultVector) Get(arg2 int) (_swig_ret VehicleDetectorResult) {
987 var swig_r VehicleDetectorResult
988 _swig_i_0 := arg1
989 _swig_i_1 := arg2
990 swig_r = (VehicleDetectorResult)(SwigcptrVehicleDetectorResult(C._wrap_VehicleDetectorResultVector_get_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.swig_intgo(_swig_i_1))))
991 return swig_r
992 }
993
994 func (arg1 SwigcptrVehicleDetectorResultVector) Set(arg2 int, arg3 VehicleDetectorResult) {
995 _swig_i_0 := arg1
996 _swig_i_1 := arg2
997 _swig_i_2 := arg3.Swigcptr()
998 C._wrap_VehicleDetectorResultVector_set_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.swig_intgo(_swig_i_1), C.uintptr_t(_swig_i_2))
999 }
1000
1001 func DeleteVehicleDetectorResultVector(arg1 VehicleDetectorResultVector) {
1002 _swig_i_0 := arg1.Swigcptr()
1003 C._wrap_delete_VehicleDetectorResultVector_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))
1004 }
1005
1006 type VehicleDetectorResultVector interface {
1007 Swigcptr() uintptr
1008 SwigIsVehicleDetectorResultVector()
1009 Size() (_swig_ret int64)
1010 Capacity() (_swig_ret int64)
1011 Reserve(arg2 int64)
1012 IsEmpty() (_swig_ret bool)
1013 Clear()
1014 Add(arg2 VehicleDetectorResult)
1015 Get(arg2 int) (_swig_ret VehicleDetectorResult)
1016 Set(arg2 int, arg3 VehicleDetectorResult)
1017 }
1018
1019 type SwigcptrVehicleDetectorResult uintptr
1020
1021 func (p SwigcptrVehicleDetectorResult) Swigcptr() uintptr {
1022 return (uintptr)(p)
1023 }
1024
1025 func (p SwigcptrVehicleDetectorResult) SwigIsVehicleDetectorResult() {
1026 }
1027
1028 func NewVehicleDetectorResult() (_swig_ret VehicleDetectorResult) {
1029 var swig_r VehicleDetectorResult
1030 swig_r = (VehicleDetectorResult)(SwigcptrVehicleDetectorResult(C._wrap_new_VehicleDetectorResult_alpr_7074c9342a7bdf4a()))
1031 return swig_r
1032 }
1033
1034 func (arg1 SwigcptrVehicleDetectorResult) GetSize() (_swig_ret int) {
1035 var swig_r int
1036 _swig_i_0 := arg1
1037 swig_r = (int)(C._wrap_VehicleDetectorResult_GetSize_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
1038 return swig_r
1039 }
1040
1041 func (arg1 SwigcptrVehicleDetectorResult) GetScores() (_swig_ret FloatVector) {
1042 var swig_r FloatVector
1043 _swig_i_0 := arg1
1044 swig_r = (FloatVector)(SwigcptrFloatVector(C._wrap_VehicleDetectorResult_GetScores_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))))
1045 return swig_r
1046 }
1047
1048 func (arg1 SwigcptrVehicleDetectorResult) GetBboxes() (_swig_ret BBoxVector) {
1049 var swig_r BBoxVector
1050 _swig_i_0 := arg1
1051 swig_r = (BBoxVector)(SwigcptrBBoxVector(C._wrap_VehicleDetectorResult_GetBboxes_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))))
1052 return swig_r
1053 }
1054
1055 func (arg1 SwigcptrVehicleDetectorResult) GetReturnStatus() (_swig_ret IntVector) {
1056 var swig_r IntVector
1057 _swig_i_0 := arg1
1058 swig_r = (IntVector)(SwigcptrIntVector(C._wrap_VehicleDetectorResult_GetReturnStatus_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))))
1059 return swig_r
1060 }
1061
1062 func DeleteVehicleDetectorResult(arg1 VehicleDetectorResult) {
1063 _swig_i_0 := arg1.Swigcptr()
1064 C._wrap_delete_VehicleDetectorResult_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))
1065 }
1066
1067 type VehicleDetectorResult interface {
1068 Swigcptr() uintptr
1069 SwigIsVehicleDetectorResult()
1070 GetSize() (_swig_ret int)
1071 GetScores() (_swig_ret FloatVector)
1072 GetBboxes() (_swig_ret BBoxVector)
1073 GetReturnStatus() (_swig_ret IntVector)
1074 }
1075
1076 type SwigcptrVehicleDetector uintptr
1077
1078 func (p SwigcptrVehicleDetector) Swigcptr() uintptr {
1079 return (uintptr)(p)
1080 }
1081
1082 func (p SwigcptrVehicleDetector) SwigIsVehicleDetector() {
1083 }
1084
1085 func NewVehicleDetector(arg1 LicenseManager) (_swig_ret VehicleDetector) {
1086 var swig_r VehicleDetector
1087 _swig_i_0 := arg1.Swigcptr()
1088 swig_r = (VehicleDetector)(SwigcptrVehicleDetector(C._wrap_new_VehicleDetector_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))))
1089 return swig_r
1090 }
1091
1092 func (arg1 SwigcptrVehicleDetector) Detect(arg2 Image) (_swig_ret VehicleDetectorResult) {
1093 var swig_r VehicleDetectorResult
1094 _swig_i_0 := arg1
1095 _swig_i_1 := arg2.Swigcptr()
1096 swig_r = (VehicleDetectorResult)(SwigcptrVehicleDetectorResult(C._wrap_VehicleDetector_Detect_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.uintptr_t(_swig_i_1))))
1097 return swig_r
1098 }
1099
1100 func (arg1 SwigcptrVehicleDetector) DetectBatch(arg2 MultiImage) (_swig_ret VehicleDetectorResultVector) {
1101 var swig_r VehicleDetectorResultVector
1102 _swig_i_0 := arg1
1103 _swig_i_1 := arg2.Swigcptr()
1104 swig_r = (VehicleDetectorResultVector)(SwigcptrVehicleDetectorResultVector(C._wrap_VehicleDetector_DetectBatch_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), C.uintptr_t(_swig_i_1))))
1105 return swig_r
1106 }
1107
1108 func DeleteVehicleDetector(arg1 VehicleDetector) {
1109 _swig_i_0 := arg1.Swigcptr()
1110 C._wrap_delete_VehicleDetector_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))
1111 }
1112
1113 type VehicleDetector interface {
1114 Swigcptr() uintptr
1115 SwigIsVehicleDetector()
1116 Detect(arg2 Image) (_swig_ret VehicleDetectorResult)
1117 DetectBatch(arg2 MultiImage) (_swig_ret VehicleDetectorResultVector)
1118 }
1119
1120 type OneMLAlprVehicleDetectorStatus int
1121 func _swig_getVehicleDetectorStatus_Empty() (_swig_ret OneMLAlprVehicleDetectorStatus) {
1122 var swig_r OneMLAlprVehicleDetectorStatus
1123 swig_r = (OneMLAlprVehicleDetectorStatus)(C._wrap_VehicleDetectorStatus_Empty_alpr_7074c9342a7bdf4a())
1124 return swig_r
1125 }
1126
1127 var VehicleDetectorStatus_Empty OneMLAlprVehicleDetectorStatus = _swig_getVehicleDetectorStatus_Empty()
1128 func _swig_getVehicleDetectorStatus_Success() (_swig_ret OneMLAlprVehicleDetectorStatus) {
1129 var swig_r OneMLAlprVehicleDetectorStatus
1130 swig_r = (OneMLAlprVehicleDetectorStatus)(C._wrap_VehicleDetectorStatus_Success_alpr_7074c9342a7bdf4a())
1131 return swig_r
1132 }
1133
1134 var VehicleDetectorStatus_Success OneMLAlprVehicleDetectorStatus = _swig_getVehicleDetectorStatus_Success()
1135 func _swig_getVehicleDetectorStatus_Fail() (_swig_ret OneMLAlprVehicleDetectorStatus) {
1136 var swig_r OneMLAlprVehicleDetectorStatus
1137 swig_r = (OneMLAlprVehicleDetectorStatus)(C._wrap_VehicleDetectorStatus_Fail_alpr_7074c9342a7bdf4a())
1138 return swig_r
1139 }
1140
1141 var VehicleDetectorStatus_Fail OneMLAlprVehicleDetectorStatus = _swig_getVehicleDetectorStatus_Fail()
1142 type SwigcptrUtils uintptr
1143
1144 func (p SwigcptrUtils) Swigcptr() uintptr {
1145 return (uintptr)(p)
1146 }
1147
1148 func (p SwigcptrUtils) SwigIsUtils() {
1149 }
1150
1151 func NewUtils(arg1 LicenseManager) (_swig_ret Utils) {
1152 var swig_r Utils
1153 _swig_i_0 := arg1.Swigcptr()
1154 swig_r = (Utils)(SwigcptrUtils(C._wrap_new_Utils_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))))
1155 return swig_r
1156 }
1157
1158 func (arg1 SwigcptrUtils) ReadImageCV(arg2 string) (_swig_ret Image) {
1159 var swig_r Image
1160 _swig_i_0 := arg1
1161 _swig_i_1 := arg2
1162 swig_r = (Image)(SwigcptrImage(C._wrap_Utils_ReadImageCV_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), *(*C.swig_type_24)(unsafe.Pointer(&_swig_i_1)))))
1163 if Swig_escape_always_false {
1164 Swig_escape_val = arg2
1165 }
1166 return swig_r
1167 }
1168
1169 func DeleteUtils(arg1 Utils) {
1170 _swig_i_0 := arg1.Swigcptr()
1171 C._wrap_delete_Utils_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))
1172 }
1173
1174 type Utils interface {
1175 Swigcptr() uintptr
1176 SwigIsUtils()
1177 ReadImageCV(arg2 string) (_swig_ret Image)
1178 }
1179
1180 type OneMLLicenseActivationType int
1181 func _swig_getLicenseActivationType_NotFound() (_swig_ret OneMLLicenseActivationType) {
1182 var swig_r OneMLLicenseActivationType
1183 swig_r = (OneMLLicenseActivationType)(C._wrap_LicenseActivationType_NotFound_alpr_7074c9342a7bdf4a())
1184 return swig_r
1185 }
1186
1187 var LicenseActivationType_NotFound OneMLLicenseActivationType = _swig_getLicenseActivationType_NotFound()
1188 func _swig_getLicenseActivationType_KeyOnline() (_swig_ret OneMLLicenseActivationType) {
1189 var swig_r OneMLLicenseActivationType
1190 swig_r = (OneMLLicenseActivationType)(C._wrap_LicenseActivationType_KeyOnline_alpr_7074c9342a7bdf4a())
1191 return swig_r
1192 }
1193
1194 var LicenseActivationType_KeyOnline OneMLLicenseActivationType = _swig_getLicenseActivationType_KeyOnline()
1195 func _swig_getLicenseActivationType_TrialOnline() (_swig_ret OneMLLicenseActivationType) {
1196 var swig_r OneMLLicenseActivationType
1197 swig_r = (OneMLLicenseActivationType)(C._wrap_LicenseActivationType_TrialOnline_alpr_7074c9342a7bdf4a())
1198 return swig_r
1199 }
1200
1201 var LicenseActivationType_TrialOnline OneMLLicenseActivationType = _swig_getLicenseActivationType_TrialOnline()
1202 type OneMLLicenseStatus int
1203 func _swig_getLicenseStatus_Ok() (_swig_ret OneMLLicenseStatus) {
1204 var swig_r OneMLLicenseStatus
1205 swig_r = (OneMLLicenseStatus)(C._wrap_LicenseStatus_Ok_alpr_7074c9342a7bdf4a())
1206 return swig_r
1207 }
1208
1209 var LicenseStatus_Ok OneMLLicenseStatus = _swig_getLicenseStatus_Ok()
1210 func _swig_getLicenseStatus_Error() (_swig_ret OneMLLicenseStatus) {
1211 var swig_r OneMLLicenseStatus
1212 swig_r = (OneMLLicenseStatus)(C._wrap_LicenseStatus_Error_alpr_7074c9342a7bdf4a())
1213 return swig_r
1214 }
1215
1216 var LicenseStatus_Error OneMLLicenseStatus = _swig_getLicenseStatus_Error()
1217 func _swig_getLicenseStatus_Expired() (_swig_ret OneMLLicenseStatus) {
1218 var swig_r OneMLLicenseStatus
1219 swig_r = (OneMLLicenseStatus)(C._wrap_LicenseStatus_Expired_alpr_7074c9342a7bdf4a())
1220 return swig_r
1221 }
1222
1223 var LicenseStatus_Expired OneMLLicenseStatus = _swig_getLicenseStatus_Expired()
1224 func _swig_getLicenseStatus_Suspended() (_swig_ret OneMLLicenseStatus) {
1225 var swig_r OneMLLicenseStatus
1226 swig_r = (OneMLLicenseStatus)(C._wrap_LicenseStatus_Suspended_alpr_7074c9342a7bdf4a())
1227 return swig_r
1228 }
1229
1230 var LicenseStatus_Suspended OneMLLicenseStatus = _swig_getLicenseStatus_Suspended()
1231 type SwigcptrLicenseManager uintptr
1232
1233 func (p SwigcptrLicenseManager) Swigcptr() uintptr {
1234 return (uintptr)(p)
1235 }
1236
1237 func (p SwigcptrLicenseManager) SwigIsLicenseManager() {
1238 }
1239
1240 func NewLicenseManager__SWIG_0() (_swig_ret LicenseManager) {
1241 var swig_r LicenseManager
1242 swig_r = (LicenseManager)(SwigcptrLicenseManager(C._wrap_new_LicenseManager__SWIG_0_alpr_7074c9342a7bdf4a()))
1243 return swig_r
1244 }
1245
1246 func DeleteLicenseManager(arg1 LicenseManager) {
1247 _swig_i_0 := arg1.Swigcptr()
1248 C._wrap_delete_LicenseManager_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))
1249 }
1250
1251 func NewLicenseManager__SWIG_1(arg1 LicenseManager) (_swig_ret LicenseManager) {
1252 var swig_r LicenseManager
1253 _swig_i_0 := arg1.Swigcptr()
1254 swig_r = (LicenseManager)(SwigcptrLicenseManager(C._wrap_new_LicenseManager__SWIG_1_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))))
1255 return swig_r
1256 }
1257
1258 func NewLicenseManager(a ...interface{}) LicenseManager {
1259 argc := len(a)
1260 if argc == 0 {
1261 return NewLicenseManager__SWIG_0()
1262 }
1263 if argc == 1 {
1264 return NewLicenseManager__SWIG_1(a[0].(LicenseManager))
1265 }
1266 panic("No match for overloaded function call")
1267 }
1268
1269 func (arg1 SwigcptrLicenseManager) SetKey(arg2 string) {
1270 _swig_i_0 := arg1
1271 _swig_i_1 := arg2
1272 C._wrap_LicenseManager_SetKey_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0), *(*C.swig_type_25)(unsafe.Pointer(&_swig_i_1)))
1273 if Swig_escape_always_false {
1274 Swig_escape_val = arg2
1275 }
1276 }
1277
1278 func (arg1 SwigcptrLicenseManager) GetKey() (_swig_ret string) {
1279 var swig_r string
1280 _swig_i_0 := arg1
1281 swig_r_p := C._wrap_LicenseManager_GetKey_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))
1282 swig_r = *(*string)(unsafe.Pointer(&swig_r_p))
1283 var swig_r_1 string
1284 swig_r_1 = swigCopyString(swig_r)
1285 return swig_r_1
1286 }
1287
1288 func (arg1 SwigcptrLicenseManager) ActivateKey() (_swig_ret OneMLLicenseStatus) {
1289 var swig_r OneMLLicenseStatus
1290 _swig_i_0 := arg1
1291 swig_r = (OneMLLicenseStatus)(C._wrap_LicenseManager_ActivateKey_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
1292 return swig_r
1293 }
1294
1295 func (arg1 SwigcptrLicenseManager) ActivateTrial() (_swig_ret OneMLLicenseStatus) {
1296 var swig_r OneMLLicenseStatus
1297 _swig_i_0 := arg1
1298 swig_r = (OneMLLicenseStatus)(C._wrap_LicenseManager_ActivateTrial_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
1299 return swig_r
1300 }
1301
1302 func (arg1 SwigcptrLicenseManager) GetMachineCode() (_swig_ret string) {
1303 var swig_r string
1304 _swig_i_0 := arg1
1305 swig_r_p := C._wrap_LicenseManager_GetMachineCode_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0))
1306 swig_r = *(*string)(unsafe.Pointer(&swig_r_p))
1307 var swig_r_1 string
1308 swig_r_1 = swigCopyString(swig_r)
1309 return swig_r_1
1310 }
1311
1312 func (arg1 SwigcptrLicenseManager) IsTrial() (_swig_ret bool) {
1313 var swig_r bool
1314 _swig_i_0 := arg1
1315 swig_r = (bool)(C._wrap_LicenseManager_IsTrial_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
1316 return swig_r
1317 }
1318
1319 func (arg1 SwigcptrLicenseManager) ValidateActivation() (_swig_ret OneMLLicenseStatus) {
1320 var swig_r OneMLLicenseStatus
1321 _swig_i_0 := arg1
1322 swig_r = (OneMLLicenseStatus)(C._wrap_LicenseManager_ValidateActivation_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
1323 return swig_r
1324 }
1325
1326 func (arg1 SwigcptrLicenseManager) GetActivationType() (_swig_ret OneMLLicenseActivationType) {
1327 var swig_r OneMLLicenseActivationType
1328 _swig_i_0 := arg1
1329 swig_r = (OneMLLicenseActivationType)(C._wrap_LicenseManager_GetActivationType_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
1330 return swig_r
1331 }
1332
1333 func (arg1 SwigcptrLicenseManager) GetActivationExpiryDate() (_swig_ret uint64) {
1334 var swig_r uint64
1335 _swig_i_0 := arg1
1336 swig_r = (uint64)(C._wrap_LicenseManager_GetActivationExpiryDate_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
1337 return swig_r
1338 }
1339
1340 func (arg1 SwigcptrLicenseManager) GetActivationSuspendedDate() (_swig_ret uint64) {
1341 var swig_r uint64
1342 _swig_i_0 := arg1
1343 swig_r = (uint64)(C._wrap_LicenseManager_GetActivationSuspendedDate_alpr_7074c9342a7bdf4a(C.uintptr_t(_swig_i_0)))
1344 return swig_r
1345 }
1346
1347 type LicenseManager interface {
1348 Swigcptr() uintptr
1349 SwigIsLicenseManager()
1350 SetKey(arg2 string)
1351 GetKey() (_swig_ret string)
1352 ActivateKey() (_swig_ret OneMLLicenseStatus)
1353 ActivateTrial() (_swig_ret OneMLLicenseStatus)
1354 GetMachineCode() (_swig_ret string)
1355 IsTrial() (_swig_ret bool)
1356 ValidateActivation() (_swig_ret OneMLLicenseStatus)
1357 GetActivationType() (_swig_ret OneMLLicenseActivationType)
1358 GetActivationExpiryDate() (_swig_ret uint64)
1359 GetActivationSuspendedDate() (_swig_ret uint64)
1360 }
1361
1362
1363
View as plain text