Class: OpalKelly::OkCDeviceSettings
- Inherits:
-
Object
- Object
- OpalKelly::OkCDeviceSettings
- Defined in:
- ext/OpalKelly/FrontPanelDLL_wrap.cxx
Instance Method Summary collapse
- #Delete(*args) ⇒ Object
- #GetInt(*args) ⇒ Object
- #GetString(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #List(*args) ⇒ Object
- #Save(*args) ⇒ Object
- #SetInt(*args) ⇒ Object
- #SetString(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
23512 23513 23514 23515 23516 23517 23518 23519 23520 23521 23522 23523 23524 23525 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 23512
SWIGINTERN VALUE
_wrap_new_okCDeviceSettings(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "OpalKelly::okCDeviceSettings";
OpalKellyLegacy::okCDeviceSettings *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (OpalKellyLegacy::okCDeviceSettings *)new OpalKellyLegacy::okCDeviceSettings();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#Delete(*args) ⇒ Object
23771 23772 23773 23774 23775 23776 23777 23778 23779 23780 23781 23782 23783 23784 23785 23786 23787 23788 23789 23790 23791 23792 23793 23794 23795 23796 23797 23798 23799 23800 23801 23802 23803 23804 23805 23806 23807 23808 23809 23810 23811 23812 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 23771
SWIGINTERN VALUE
_wrap_okCDeviceSettings_Delete(int argc, VALUE *argv, VALUE self) {
OpalKellyLegacy::okCDeviceSettings *arg1 = (OpalKellyLegacy::okCDeviceSettings *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
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_OpalKellyLegacy__okCDeviceSettings, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCDeviceSettings *","Delete", 1, self ));
}
arg1 = reinterpret_cast< OpalKellyLegacy::okCDeviceSettings * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(argv[0], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::string const &","Delete", 2, argv[0] ));
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","Delete", 2, argv[0]));
}
arg2 = ptr;
}
{
/*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,71,okExceptionHandlingCode@*/ try {
OpalKellyLegacy_okCDeviceSettings_Delete(arg1,(std::string const &)*arg2);
} catch (const std::exception& e) {
SWIG_Error(SWIG_RuntimeError, e.what());
goto fail;
}
/*@SWIG@*/
}
if (SWIG_IsNewObj(res2)) delete arg2;
return Qnil;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
return Qnil;
}
|
#GetInt(*args) ⇒ Object
23581 23582 23583 23584 23585 23586 23587 23588 23589 23590 23591 23592 23593 23594 23595 23596 23597 23598 23599 23600 23601 23602 23603 23604 23605 23606 23607 23608 23609 23610 23611 23612 23613 23614 23615 23616 23617 23618 23619 23620 23621 23622 23623 23624 23625 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 23581
SWIGINTERN VALUE
_wrap_okCDeviceSettings_GetInt(int argc, VALUE *argv, VALUE self) {
OpalKellyLegacy::okCDeviceSettings *arg1 = (OpalKellyLegacy::okCDeviceSettings *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
UINT32 result;
VALUE vresult = Qnil;
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_OpalKellyLegacy__okCDeviceSettings, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCDeviceSettings *","GetInt", 1, self ));
}
arg1 = reinterpret_cast< OpalKellyLegacy::okCDeviceSettings * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(argv[0], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::string const &","GetInt", 2, argv[0] ));
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","GetInt", 2, argv[0]));
}
arg2 = ptr;
}
{
/*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,71,okExceptionHandlingCode@*/ try {
result = (UINT32)OpalKellyLegacy_okCDeviceSettings_GetInt(arg1,(std::string const &)*arg2);
} catch (const std::exception& e) {
SWIG_Error(SWIG_RuntimeError, e.what());
goto fail;
}
/*@SWIG@*/
}
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
if (SWIG_IsNewObj(res2)) delete arg2;
return vresult;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
return Qnil;
}
|
#GetString(*args) ⇒ Object
23534 23535 23536 23537 23538 23539 23540 23541 23542 23543 23544 23545 23546 23547 23548 23549 23550 23551 23552 23553 23554 23555 23556 23557 23558 23559 23560 23561 23562 23563 23564 23565 23566 23567 23568 23569 23570 23571 23572 23573 23574 23575 23576 23577 23578 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 23534
SWIGINTERN VALUE
_wrap_okCDeviceSettings_GetString(int argc, VALUE *argv, VALUE self) {
OpalKellyLegacy::okCDeviceSettings *arg1 = (OpalKellyLegacy::okCDeviceSettings *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
std::string result;
VALUE vresult = Qnil;
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_OpalKellyLegacy__okCDeviceSettings, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCDeviceSettings *","GetString", 1, self ));
}
arg1 = reinterpret_cast< OpalKellyLegacy::okCDeviceSettings * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(argv[0], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::string const &","GetString", 2, argv[0] ));
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","GetString", 2, argv[0]));
}
arg2 = ptr;
}
{
/*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,71,okExceptionHandlingCode@*/ try {
result = OpalKellyLegacy_okCDeviceSettings_GetString(arg1,(std::string const &)*arg2);
} catch (const std::exception& e) {
SWIG_Error(SWIG_RuntimeError, e.what());
goto fail;
}
/*@SWIG@*/
}
vresult = SWIG_From_std_string(static_cast< std::string >(result));
if (SWIG_IsNewObj(res2)) delete arg2;
return vresult;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
return Qnil;
}
|
#List(*args) ⇒ Object
23739 23740 23741 23742 23743 23744 23745 23746 23747 23748 23749 23750 23751 23752 23753 23754 23755 23756 23757 23758 23759 23760 23761 23762 23763 23764 23765 23766 23767 23768 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 23739
SWIGINTERN VALUE
_wrap_okCDeviceSettings_List(int argc, VALUE *argv, VALUE self) {
OpalKellyLegacy::okCDeviceSettings *arg1 = (OpalKellyLegacy::okCDeviceSettings *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::vector< std::string,std::allocator< std::string > > 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_OpalKellyLegacy__okCDeviceSettings, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCDeviceSettings *","List", 1, self ));
}
arg1 = reinterpret_cast< OpalKellyLegacy::okCDeviceSettings * >(argp1);
{
/*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,71,okExceptionHandlingCode@*/ try {
result = OpalKellyLegacy_okCDeviceSettings_List(arg1);
} catch (const std::exception& e) {
SWIG_Error(SWIG_RuntimeError, e.what());
goto fail;
}
/*@SWIG@*/
}
vresult = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result));
return vresult;
fail:
return Qnil;
}
|
#Save(*args) ⇒ Object
23815 23816 23817 23818 23819 23820 23821 23822 23823 23824 23825 23826 23827 23828 23829 23830 23831 23832 23833 23834 23835 23836 23837 23838 23839 23840 23841 23842 23843 23844 23845 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 23815
SWIGINTERN VALUE
_wrap_okCDeviceSettings_Save(int argc, VALUE *argv, VALUE self) {
OpalKellyLegacy::okCDeviceSettings *arg1 = (OpalKellyLegacy::okCDeviceSettings *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
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_OpalKellyLegacy__okCDeviceSettings, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCDeviceSettings *","Save", 1, self ));
}
arg1 = reinterpret_cast< OpalKellyLegacy::okCDeviceSettings * >(argp1);
{
/*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,71,okExceptionHandlingCode@*/ try {
try {
OpalKellyLegacy_okCDeviceSettings_Save(arg1);
} catch(std::runtime_error &_e) {
SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
}
} catch (const std::exception& e) {
SWIG_Error(SWIG_RuntimeError, e.what());
goto fail;
}
/*@SWIG@*/
}
return Qnil;
fail:
return Qnil;
}
|
#SetInt(*args) ⇒ Object
23687 23688 23689 23690 23691 23692 23693 23694 23695 23696 23697 23698 23699 23700 23701 23702 23703 23704 23705 23706 23707 23708 23709 23710 23711 23712 23713 23714 23715 23716 23717 23718 23719 23720 23721 23722 23723 23724 23725 23726 23727 23728 23729 23730 23731 23732 23733 23734 23735 23736 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 23687
SWIGINTERN VALUE
_wrap_okCDeviceSettings_SetInt(int argc, VALUE *argv, VALUE self) {
OpalKellyLegacy::okCDeviceSettings *arg1 = (OpalKellyLegacy::okCDeviceSettings *) 0 ;
std::string *arg2 = 0 ;
UINT32 arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
unsigned int val3 ;
int ecode3 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCDeviceSettings, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCDeviceSettings *","SetInt", 1, self ));
}
arg1 = reinterpret_cast< OpalKellyLegacy::okCDeviceSettings * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(argv[0], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::string const &","SetInt", 2, argv[0] ));
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","SetInt", 2, argv[0]));
}
arg2 = ptr;
}
ecode3 = SWIG_AsVal_unsigned_SS_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "UINT32","SetInt", 3, argv[1] ));
}
arg3 = static_cast< UINT32 >(val3);
{
/*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,71,okExceptionHandlingCode@*/ try {
OpalKellyLegacy_okCDeviceSettings_SetInt(arg1,(std::string const &)*arg2,arg3);
} catch (const std::exception& e) {
SWIG_Error(SWIG_RuntimeError, e.what());
goto fail;
}
/*@SWIG@*/
}
if (SWIG_IsNewObj(res2)) delete arg2;
return Qnil;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
return Qnil;
}
|
#SetString(*args) ⇒ Object
23628 23629 23630 23631 23632 23633 23634 23635 23636 23637 23638 23639 23640 23641 23642 23643 23644 23645 23646 23647 23648 23649 23650 23651 23652 23653 23654 23655 23656 23657 23658 23659 23660 23661 23662 23663 23664 23665 23666 23667 23668 23669 23670 23671 23672 23673 23674 23675 23676 23677 23678 23679 23680 23681 23682 23683 23684 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 23628
SWIGINTERN VALUE
_wrap_okCDeviceSettings_SetString(int argc, VALUE *argv, VALUE self) {
OpalKellyLegacy::okCDeviceSettings *arg1 = (OpalKellyLegacy::okCDeviceSettings *) 0 ;
std::string *arg2 = 0 ;
std::string *arg3 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
int res3 = SWIG_OLDOBJ ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCDeviceSettings, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCDeviceSettings *","SetString", 1, self ));
}
arg1 = reinterpret_cast< OpalKellyLegacy::okCDeviceSettings * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(argv[0], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::string const &","SetString", 2, argv[0] ));
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","SetString", 2, argv[0]));
}
arg2 = ptr;
}
{
std::string *ptr = (std::string *)0;
res3 = SWIG_AsPtr_std_string(argv[1], &ptr);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "std::string const &","SetString", 3, argv[1] ));
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","SetString", 3, argv[1]));
}
arg3 = ptr;
}
{
/*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,71,okExceptionHandlingCode@*/ try {
OpalKellyLegacy_okCDeviceSettings_SetString(arg1,(std::string const &)*arg2,(std::string const &)*arg3);
} catch (const std::exception& e) {
SWIG_Error(SWIG_RuntimeError, e.what());
goto fail;
}
/*@SWIG@*/
}
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
return Qnil;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
if (SWIG_IsNewObj(res3)) delete arg3;
return Qnil;
}
|