Class: OpalKelly::OkCFrontPanelDevices

Inherits:
Object
  • Object
show all
Defined in:
ext/OpalKelly/FrontPanelDLL_wrap.cxx

Instance Method Summary collapse

Constructor Details

#initialize(*args, self) ⇒ Object



25764
25765
25766
25767
25768
25769
25770
25771
25772
25773
25774
25775
25776
25777
25778
25779
25780
25781
25782
25783
25784
25785
25786
25787
25788
25789
25790
25791
25792
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 25764

SWIGINTERN VALUE _wrap_new_okCFrontPanelDevices(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[1];
  int ii;
  
  argc = nargs;
  if (argc > 1) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap_new_okCFrontPanelDevices__SWIG_1(nargs, args, self);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_okCFrontPanelDevices__SWIG_0(nargs, args, self);
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 1, "FrontPanelDevices.new", 
    "    FrontPanelDevices.new(std::string const &realm)\n"
    "    FrontPanelDevices.new()\n");
  
  return Qnil;
}

Instance Method Details

#GetCount(*args) ⇒ Object



25795
25796
25797
25798
25799
25800
25801
25802
25803
25804
25805
25806
25807
25808
25809
25810
25811
25812
25813
25814
25815
25816
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 25795

SWIGINTERN VALUE
_wrap_okCFrontPanelDevices_GetCount(int argc, VALUE *argv, VALUE self) {
  OpalKelly::FrontPanelDevices *arg1 = (OpalKelly::FrontPanelDevices *) 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_OpalKelly__FrontPanelDevices, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKelly::FrontPanelDevices const *","GetCount", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKelly::FrontPanelDevices * >(argp1);
  result = (int)((OpalKelly::FrontPanelDevices const *)arg1)->GetCount();
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}

#GetSerial(*args) ⇒ Object



25819
25820
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 25819

SWIGINTERN VALUE
_wrap_okCFrontPanelDevices_GetSerial(int argc, VALUE *argv, VALUE self) {
  OpalKelly::FrontPanelDevices *arg1 = (OpalKelly::FrontPanelDevices *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  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_OpalKelly__FrontPanelDevices, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKelly::FrontPanelDevices const *","GetSerial", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKelly::FrontPanelDevices * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetSerial", 2, argv[0] ));
  } 
  arg2 = static_cast< int >(val2);
  result = ((OpalKelly::FrontPanelDevices const *)arg1)->GetSerial(arg2);
  vresult = SWIG_From_std_string(static_cast< std::string >(result));
  return vresult;
fail:
  return Qnil;
}

#Open(*args, self) ⇒ Object



25918
25919
25920
25921
25922
25923
25924
25925
25926
25927
25928
25929
25930
25931
25932
25933
25934
25935
25936
25937
25938
25939
25940
25941
25942
25943
25944
25945
25946
25947
25948
25949
25950
25951
25952
25953
25954
25955
25956
25957
25958
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 25918

SWIGINTERN VALUE _wrap_okCFrontPanelDevices_Open(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 3) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKelly__FrontPanelDevices, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_okCFrontPanelDevices_Open__SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKelly__FrontPanelDevices, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_okCFrontPanelDevices_Open__SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "okCFrontPanelDevices.Open", 
    "    OpalKelly::FrontPanelPtr okCFrontPanelDevices.Open(std::string const &serial)\n"
    "    OpalKelly::FrontPanelPtr okCFrontPanelDevices.Open()\n");
  
  return Qnil;
}