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



25699
25700
25701
25702
25703
25704
25705
25706
25707
25708
25709
25710
25711
25712
25713
25714
25715
25716
25717
25718
25719
25720
25721
25722
25723
25724
25725
25726
25727
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 25699

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



25730
25731
25732
25733
25734
25735
25736
25737
25738
25739
25740
25741
25742
25743
25744
25745
25746
25747
25748
25749
25750
25751
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 25730

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



25754
25755
25756
25757
25758
25759
25760
25761
25762
25763
25764
25765
25766
25767
25768
25769
25770
25771
25772
25773
25774
25775
25776
25777
25778
25779
25780
25781
25782
25783
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 25754

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



25853
25854
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
25866
25867
25868
25869
25870
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887
25888
25889
25890
25891
25892
25893
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 25853

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