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
19730 19731 19732 19733 19734 19735 19736 19737 19738 19739 19740 19741 19742 19743 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19730
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
19479 19480 19481 19482 19483 19484 19485 19486 19487 19488 19489 19490 19491 19492 19493 19494 19495 19496 19497 19498 19499 19500 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19479
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
19449 19450 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468 19469 19470 19471 19472 19473 19474 19475 19476 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19449
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
19318 19319 19320 19321 19322 19323 19324 19325 19326 19327 19328 19329 19330 19331 19332 19333 19334 19335 19336 19337 19338 19339 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19318
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
19289 19290 19291 19292 19293 19294 19295 19296 19297 19298 19299 19300 19301 19302 19303 19304 19305 19306 19307 19308 19309 19310 19311 19312 19313 19314 19315 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19289
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
19585 19586 19587 19588 19589 19590 19591 19592 19593 19594 19595 19596 19597 19598 19599 19600 19601 19602 19603 19604 19605 19606 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19585
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
19556 19557 19558 19559 19560 19561 19562 19563 19564 19565 19566 19567 19568 19569 19570 19571 19572 19573 19574 19575 19576 19577 19578 19579 19580 19581 19582 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19556
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
19532 19533 19534 19535 19536 19537 19538 19539 19540 19541 19542 19543 19544 19545 19546 19547 19548 19549 19550 19551 19552 19553 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19532
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
19503 19504 19505 19506 19507 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 19522 19523 19524 19525 19526 19527 19528 19529 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19503
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
19425 19426 19427 19428 19429 19430 19431 19432 19433 19434 19435 19436 19437 19438 19439 19440 19441 19442 19443 19444 19445 19446 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19425
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
19395 19396 19397 19398 19399 19400 19401 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413 19414 19415 19416 19417 19418 19419 19420 19421 19422 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19395
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
19638 19639 19640 19641 19642 19643 19644 19645 19646 19647 19648 19649 19650 19651 19652 19653 19654 19655 19656 19657 19658 19659 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19638
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
19609 19610 19611 19612 19613 19614 19615 19616 19617 19618 19619 19620 19621 19622 19623 19624 19625 19626 19627 19628 19629 19630 19631 19632 19633 19634 19635 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19609
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
19371 19372 19373 19374 19375 19376 19377 19378 19379 19380 19381 19382 19383 19384 19385 19386 19387 19388 19389 19390 19391 19392 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19371
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
19342 19343 19344 19345 19346 19347 19348 19349 19350 19351 19352 19353 19354 19355 19356 19357 19358 19359 19360 19361 19362 19363 19364 19365 19366 19367 19368 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19342
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
19691 19692 19693 19694 19695 19696 19697 19698 19699 19700 19701 19702 19703 19704 19705 19706 19707 19708 19709 19710 19711 19712 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19691
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
19662 19663 19664 19665 19666 19667 19668 19669 19670 19671 19672 19673 19674 19675 19676 19677 19678 19679 19680 19681 19682 19683 19684 19685 19686 19687 19688 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19662
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;
}
|