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



25722
25723
25724
25725
25726
25727
25728
25729
25730
25731
25732
25733
25734
25735
25736
25737
25738
25739
25740
25741
25742
25743
25744
25745
25746
25747
25748
25749
25750
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 25722

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



25753
25754
25755
25756
25757
25758
25759
25760
25761
25762
25763
25764
25765
25766
25767
25768
25769
25770
25771
25772
25773
25774
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 25753

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



25777
25778
25779
25780
25781
25782
25783
25784
25785
25786
25787
25788
25789
25790
25791
25792
25793
25794
25795
25796
25797
25798
25799
25800
25801
25802
25803
25804
25805
25806
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 25777

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



25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887
25888
25889
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900
25901
25902
25903
25904
25905
25906
25907
25908
25909
25910
25911
25912
25913
25914
25915
25916
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 25876

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;
}