Class: OpalKelly::OkTDeviceSensor
- Inherits:
-
Object
- Object
- OpalKelly::OkTDeviceSensor
- Defined in:
- ext/OpalKelly/FrontPanelDLL_wrap.cxx
Instance Method Summary collapse
- #description(*args) ⇒ Object
- #description=(*args) ⇒ Object
- #id(*args) ⇒ Object
- #id=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #max(*args) ⇒ Object
- #max=(*args) ⇒ Object
- #min(*args) ⇒ Object
- #min=(*args) ⇒ Object
- #name(*args) ⇒ Object
- #name=(*args) ⇒ Object
- #step(*args) ⇒ Object
- #step=(*args) ⇒ Object
- #type(*args) ⇒ Object
- #type=(*args) ⇒ Object
- #value(*args) ⇒ Object
- #value=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
19723 19724 19725 19726 19727 19728 19729 19730 19731 19732 19733 19734 19735 19736 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19723 SWIGINTERN VALUE _wrap_new_okTDeviceSensor(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "OpalKelly::okTDeviceSensor"; okTDeviceSensor *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (okTDeviceSensor *)new okTDeviceSensor(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#description(*args) ⇒ Object
19472 19473 19474 19475 19476 19477 19478 19479 19480 19481 19482 19483 19484 19485 19486 19487 19488 19489 19490 19491 19492 19493 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19472 SWIGINTERN VALUE _wrap_okTDeviceSensor_description_get(int argc, VALUE *argv, VALUE self) { okTDeviceSensor *arg1 = (okTDeviceSensor *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceSensor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceSensor *","description", 1, self )); } arg1 = reinterpret_cast< okTDeviceSensor * >(argp1); result = (char *)(char *) ((arg1)->description); vresult = SWIG_FromCharPtrAndSize(result, strlen(result)); return vresult; fail: return Qnil; } |
#description=(*args) ⇒ Object
19442 19443 19444 19445 19446 19447 19448 19449 19450 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468 19469 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19442 SWIGINTERN VALUE _wrap_okTDeviceSensor_description_set(int argc, VALUE *argv, VALUE self) { okTDeviceSensor *arg1 = (okTDeviceSensor *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[(256)] ; int res2 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceSensor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceSensor *","description", 1, self )); } arg1 = reinterpret_cast< okTDeviceSensor * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, (256)); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [(256)]","description", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->description,arg2,(256)*sizeof(char)); else memset(arg1->description,0,(256)*sizeof(char)); return Qnil; fail: return Qnil; } |
#id(*args) ⇒ Object
19311 19312 19313 19314 19315 19316 19317 19318 19319 19320 19321 19322 19323 19324 19325 19326 19327 19328 19329 19330 19331 19332 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19311 SWIGINTERN VALUE _wrap_okTDeviceSensor_id_get(int argc, VALUE *argv, VALUE self) { okTDeviceSensor *arg1 = (okTDeviceSensor *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceSensor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceSensor *","id", 1, self )); } arg1 = reinterpret_cast< okTDeviceSensor * >(argp1); result = (int) ((arg1)->id); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#id=(*args) ⇒ Object
19282 19283 19284 19285 19286 19287 19288 19289 19290 19291 19292 19293 19294 19295 19296 19297 19298 19299 19300 19301 19302 19303 19304 19305 19306 19307 19308 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19282 SWIGINTERN VALUE _wrap_okTDeviceSensor_id_set(int argc, VALUE *argv, VALUE self) { okTDeviceSensor *arg1 = (okTDeviceSensor *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceSensor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceSensor *","id", 1, self )); } arg1 = reinterpret_cast< okTDeviceSensor * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","id", 2, argv[0] )); } arg2 = static_cast< int >(val2); if (arg1) (arg1)->id = arg2; return Qnil; fail: return Qnil; } |
#max(*args) ⇒ Object
19578 19579 19580 19581 19582 19583 19584 19585 19586 19587 19588 19589 19590 19591 19592 19593 19594 19595 19596 19597 19598 19599 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19578 SWIGINTERN VALUE _wrap_okTDeviceSensor_max_get(int argc, VALUE *argv, VALUE self) { okTDeviceSensor *arg1 = (okTDeviceSensor *) 0 ; void *argp1 = 0 ; int res1 = 0 ; double result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceSensor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceSensor *","max", 1, self )); } arg1 = reinterpret_cast< okTDeviceSensor * >(argp1); result = (double) ((arg1)->max); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } |
#max=(*args) ⇒ Object
19549 19550 19551 19552 19553 19554 19555 19556 19557 19558 19559 19560 19561 19562 19563 19564 19565 19566 19567 19568 19569 19570 19571 19572 19573 19574 19575 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19549 SWIGINTERN VALUE _wrap_okTDeviceSensor_max_set(int argc, VALUE *argv, VALUE self) { okTDeviceSensor *arg1 = (okTDeviceSensor *) 0 ; double arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceSensor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceSensor *","max", 1, self )); } arg1 = reinterpret_cast< okTDeviceSensor * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","max", 2, argv[0] )); } arg2 = static_cast< double >(val2); if (arg1) (arg1)->max = arg2; return Qnil; fail: return Qnil; } |
#min(*args) ⇒ Object
19525 19526 19527 19528 19529 19530 19531 19532 19533 19534 19535 19536 19537 19538 19539 19540 19541 19542 19543 19544 19545 19546 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19525 SWIGINTERN VALUE _wrap_okTDeviceSensor_min_get(int argc, VALUE *argv, VALUE self) { okTDeviceSensor *arg1 = (okTDeviceSensor *) 0 ; void *argp1 = 0 ; int res1 = 0 ; double result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceSensor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceSensor *","min", 1, self )); } arg1 = reinterpret_cast< okTDeviceSensor * >(argp1); result = (double) ((arg1)->min); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } |
#min=(*args) ⇒ Object
19496 19497 19498 19499 19500 19501 19502 19503 19504 19505 19506 19507 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 19522 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19496 SWIGINTERN VALUE _wrap_okTDeviceSensor_min_set(int argc, VALUE *argv, VALUE self) { okTDeviceSensor *arg1 = (okTDeviceSensor *) 0 ; double arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceSensor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceSensor *","min", 1, self )); } arg1 = reinterpret_cast< okTDeviceSensor * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","min", 2, argv[0] )); } arg2 = static_cast< double >(val2); if (arg1) (arg1)->min = arg2; return Qnil; fail: return Qnil; } |
#name(*args) ⇒ Object
19418 19419 19420 19421 19422 19423 19424 19425 19426 19427 19428 19429 19430 19431 19432 19433 19434 19435 19436 19437 19438 19439 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19418 SWIGINTERN VALUE _wrap_okTDeviceSensor_name_get(int argc, VALUE *argv, VALUE self) { okTDeviceSensor *arg1 = (okTDeviceSensor *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceSensor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceSensor *","name", 1, self )); } arg1 = reinterpret_cast< okTDeviceSensor * >(argp1); result = (char *)(char *) ((arg1)->name); vresult = SWIG_FromCharPtrAndSize(result, strlen(result)); return vresult; fail: return Qnil; } |
#name=(*args) ⇒ Object
19388 19389 19390 19391 19392 19393 19394 19395 19396 19397 19398 19399 19400 19401 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413 19414 19415 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19388 SWIGINTERN VALUE _wrap_okTDeviceSensor_name_set(int argc, VALUE *argv, VALUE self) { okTDeviceSensor *arg1 = (okTDeviceSensor *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[(64)] ; int res2 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceSensor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceSensor *","name", 1, self )); } arg1 = reinterpret_cast< okTDeviceSensor * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, (64)); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [(64)]","name", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->name,arg2,(64)*sizeof(char)); else memset(arg1->name,0,(64)*sizeof(char)); return Qnil; fail: return Qnil; } |
#step(*args) ⇒ Object
19631 19632 19633 19634 19635 19636 19637 19638 19639 19640 19641 19642 19643 19644 19645 19646 19647 19648 19649 19650 19651 19652 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19631 SWIGINTERN VALUE _wrap_okTDeviceSensor_step_get(int argc, VALUE *argv, VALUE self) { okTDeviceSensor *arg1 = (okTDeviceSensor *) 0 ; void *argp1 = 0 ; int res1 = 0 ; double result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceSensor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceSensor *","step", 1, self )); } arg1 = reinterpret_cast< okTDeviceSensor * >(argp1); result = (double) ((arg1)->step); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } |
#step=(*args) ⇒ Object
19602 19603 19604 19605 19606 19607 19608 19609 19610 19611 19612 19613 19614 19615 19616 19617 19618 19619 19620 19621 19622 19623 19624 19625 19626 19627 19628 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19602 SWIGINTERN VALUE _wrap_okTDeviceSensor_step_set(int argc, VALUE *argv, VALUE self) { okTDeviceSensor *arg1 = (okTDeviceSensor *) 0 ; double arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceSensor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceSensor *","step", 1, self )); } arg1 = reinterpret_cast< okTDeviceSensor * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","step", 2, argv[0] )); } arg2 = static_cast< double >(val2); if (arg1) (arg1)->step = arg2; return Qnil; fail: return Qnil; } |
#type(*args) ⇒ Object
19364 19365 19366 19367 19368 19369 19370 19371 19372 19373 19374 19375 19376 19377 19378 19379 19380 19381 19382 19383 19384 19385 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19364 SWIGINTERN VALUE _wrap_okTDeviceSensor_type_get(int argc, VALUE *argv, VALUE self) { okTDeviceSensor *arg1 = (okTDeviceSensor *) 0 ; void *argp1 = 0 ; int res1 = 0 ; okEDeviceSensorType result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceSensor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceSensor *","type", 1, self )); } arg1 = reinterpret_cast< okTDeviceSensor * >(argp1); result = (okEDeviceSensorType) ((arg1)->type); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#type=(*args) ⇒ Object
19335 19336 19337 19338 19339 19340 19341 19342 19343 19344 19345 19346 19347 19348 19349 19350 19351 19352 19353 19354 19355 19356 19357 19358 19359 19360 19361 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19335 SWIGINTERN VALUE _wrap_okTDeviceSensor_type_set(int argc, VALUE *argv, VALUE self) { okTDeviceSensor *arg1 = (okTDeviceSensor *) 0 ; okEDeviceSensorType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceSensor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceSensor *","type", 1, self )); } arg1 = reinterpret_cast< okTDeviceSensor * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "okEDeviceSensorType","type", 2, argv[0] )); } arg2 = static_cast< okEDeviceSensorType >(val2); if (arg1) (arg1)->type = arg2; return Qnil; fail: return Qnil; } |
#value(*args) ⇒ Object
19684 19685 19686 19687 19688 19689 19690 19691 19692 19693 19694 19695 19696 19697 19698 19699 19700 19701 19702 19703 19704 19705 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19684 SWIGINTERN VALUE _wrap_okTDeviceSensor_value_get(int argc, VALUE *argv, VALUE self) { okTDeviceSensor *arg1 = (okTDeviceSensor *) 0 ; void *argp1 = 0 ; int res1 = 0 ; double result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceSensor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceSensor *","value", 1, self )); } arg1 = reinterpret_cast< okTDeviceSensor * >(argp1); result = (double) ((arg1)->value); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } |
#value=(*args) ⇒ Object
19655 19656 19657 19658 19659 19660 19661 19662 19663 19664 19665 19666 19667 19668 19669 19670 19671 19672 19673 19674 19675 19676 19677 19678 19679 19680 19681 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19655 SWIGINTERN VALUE _wrap_okTDeviceSensor_value_set(int argc, VALUE *argv, VALUE self) { okTDeviceSensor *arg1 = (okTDeviceSensor *) 0 ; double arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceSensor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceSensor *","value", 1, self )); } arg1 = reinterpret_cast< okTDeviceSensor * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","value", 2, argv[0] )); } arg2 = static_cast< double >(val2); if (arg1) (arg1)->value = arg2; return Qnil; fail: return Qnil; } |