Class: OpalKelly::FrontPanelManager

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

Instance Method Summary collapse

Constructor Details

#initialize(*args, self) ⇒ Object



24967
24968
24969
24970
24971
24972
24973
24974
24975
24976
24977
24978
24979
24980
24981
24982
24983
24984
24985
24986
24987
24988
24989
24990
24991
24992
24993
24994
24995
24996
24997
24998
24999
25000
25001
25002
25003
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 24967

SWIGINTERN VALUE _wrap_new_FrontPanelManager(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;
    _v = (argv[0] != 0);
    if (_v) {
      return _wrap_new_FrontPanelManager__SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    _v = (argv[0] != 0);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_FrontPanelManager__SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "FrontPanelManager.new", 
    "    FrontPanelManager.new(std::string const &realm)\n"
    "    FrontPanelManager.new()\n");
  
  return Qnil;
}

Instance Method Details

#EnterMonitorLoop(*args, self) ⇒ Object



25223
25224
25225
25226
25227
25228
25229
25230
25231
25232
25233
25234
25235
25236
25237
25238
25239
25240
25241
25242
25243
25244
25245
25246
25247
25248
25249
25250
25251
25252
25253
25254
25255
25256
25257
25258
25259
25260
25261
25262
25263
25264
25265
25266
25267
25268
25269
25270
25271
25272
25273
25274
25275
25276
25277
25278
25279
25280
25281
25282
25283
25284
25285
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 25223

SWIGINTERN VALUE _wrap_FrontPanelManager_EnterMonitorLoop(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 4) 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__FrontPanelManager, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_FrontPanelManager_EnterMonitorLoop__SWIG_2(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKelly__FrontPanelManager, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_OpalKelly__FrontPanelManager__CallbackInfo, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_FrontPanelManager_EnterMonitorLoop__SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKelly__FrontPanelManager, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_OpalKelly__FrontPanelManager__CallbackInfo, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_FrontPanelManager_EnterMonitorLoop__SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "FrontPanelManager.EnterMonitorLoop", 
    "    int FrontPanelManager.EnterMonitorLoop(OpalKelly::FrontPanelManager::CallbackInfo const *cbInfo, int millisecondsTimeout)\n"
    "    int FrontPanelManager.EnterMonitorLoop(OpalKelly::FrontPanelManager::CallbackInfo const *cbInfo)\n"
    "    int FrontPanelManager.EnterMonitorLoop()\n");
  
  return Qnil;
}

#ExitMonitorLoop(*args, self) ⇒ Object



25338
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348
25349
25350
25351
25352
25353
25354
25355
25356
25357
25358
25359
25360
25361
25362
25363
25364
25365
25366
25367
25368
25369
25370
25371
25372
25373
25374
25375
25376
25377
25378
25379
25380
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 25338

SWIGINTERN VALUE _wrap_FrontPanelManager_ExitMonitorLoop(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__FrontPanelManager, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_FrontPanelManager_ExitMonitorLoop__SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKelly__FrontPanelManager, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_FrontPanelManager_ExitMonitorLoop__SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "FrontPanelManager.ExitMonitorLoop", 
    "    void FrontPanelManager.ExitMonitorLoop(int exitCode)\n"
    "    void FrontPanelManager.ExitMonitorLoop()\n");
  
  return Qnil;
}

#OnDeviceAdded(*args) ⇒ Object



25383
25384
25385
25386
25387
25388
25389
25390
25391
25392
25393
25394
25395
25396
25397
25398
25399
25400
25401
25402
25403
25404
25405
25406
25407
25408
25409
25410
25411
25412
25413
25414
25415
25416
25417
25418
25419
25420
25421
25422
25423
25424
25425
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 25383

SWIGINTERN VALUE
_wrap_FrontPanelManager_OnDeviceAdded(int argc, VALUE *argv, VALUE self) {
  OpalKelly::FrontPanelManager *arg1 = (OpalKelly::FrontPanelManager *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  Swig::Director *director = 0;
  bool upcall = false;
  
  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__FrontPanelManager, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKelly::FrontPanelManager *","OnDeviceAdded", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKelly::FrontPanelManager * >(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","OnDeviceAdded", 2, argv[0] ));
  }
  arg2 = reinterpret_cast< char * >(buf2);
  director = dynamic_cast<Swig::Director *>(arg1);
  upcall = (director && (director->swig_get_self() == self));
  try {
    if (upcall) {
      Swig::DirectorPureVirtualException::raise("OpalKelly::FrontPanelManager::OnDeviceAdded");
    } else {
      (arg1)->OnDeviceAdded((char const *)arg2);
    }
  } catch (Swig::DirectorException& e) {
    rb_exc_raise(e.getError());
    SWIG_fail;
  }
  if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  return Qnil;
fail:
  if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  return Qnil;
}

#OnDeviceRemoved(*args) ⇒ Object



25428
25429
25430
25431
25432
25433
25434
25435
25436
25437
25438
25439
25440
25441
25442
25443
25444
25445
25446
25447
25448
25449
25450
25451
25452
25453
25454
25455
25456
25457
25458
25459
25460
25461
25462
25463
25464
25465
25466
25467
25468
25469
25470
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 25428

SWIGINTERN VALUE
_wrap_FrontPanelManager_OnDeviceRemoved(int argc, VALUE *argv, VALUE self) {
  OpalKelly::FrontPanelManager *arg1 = (OpalKelly::FrontPanelManager *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  Swig::Director *director = 0;
  bool upcall = false;
  
  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__FrontPanelManager, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKelly::FrontPanelManager *","OnDeviceRemoved", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKelly::FrontPanelManager * >(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","OnDeviceRemoved", 2, argv[0] ));
  }
  arg2 = reinterpret_cast< char * >(buf2);
  director = dynamic_cast<Swig::Director *>(arg1);
  upcall = (director && (director->swig_get_self() == self));
  try {
    if (upcall) {
      Swig::DirectorPureVirtualException::raise("OpalKelly::FrontPanelManager::OnDeviceRemoved");
    } else {
      (arg1)->OnDeviceRemoved((char const *)arg2);
    }
  } catch (Swig::DirectorException& e) {
    rb_exc_raise(e.getError());
    SWIG_fail;
  }
  if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  return Qnil;
fail:
  if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  return Qnil;
}

#Open(*args) ⇒ Object



25473
25474
25475
25476
25477
25478
25479
25480
25481
25482
25483
25484
25485
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
25497
25498
25499
25500
25501
25502
25503
25504
25505
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 25473

SWIGINTERN VALUE
_wrap_FrontPanelManager_Open(int argc, VALUE *argv, VALUE self) {
  OpalKelly::FrontPanelManager *arg1 = (OpalKelly::FrontPanelManager *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  OpalKellyLegacy::okCFrontPanel *result = 0 ;
  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__FrontPanelManager, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKelly::FrontPanelManager *","Open", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKelly::FrontPanelManager * >(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","Open", 2, argv[0] ));
  }
  arg2 = reinterpret_cast< char * >(buf2);
  result = (OpalKellyLegacy::okCFrontPanel *)(arg1)->Open((char const *)arg2);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OpalKellyLegacy__okCFrontPanel, 0 |  0 );
  if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
  return Qnil;
}

#StartMonitoring(*args, self) ⇒ Object



25062
25063
25064
25065
25066
25067
25068
25069
25070
25071
25072
25073
25074
25075
25076
25077
25078
25079
25080
25081
25082
25083
25084
25085
25086
25087
25088
25089
25090
25091
25092
25093
25094
25095
25096
25097
25098
25099
25100
25101
25102
25103
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 25062

SWIGINTERN VALUE _wrap_FrontPanelManager_StartMonitoring(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__FrontPanelManager, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_FrontPanelManager_StartMonitoring__SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKelly__FrontPanelManager, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_OpalKelly__FrontPanelManager__CallbackInfo, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_FrontPanelManager_StartMonitoring__SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "FrontPanelManager.StartMonitoring", 
    "    void FrontPanelManager.StartMonitoring(OpalKelly::FrontPanelManager::CallbackInfo *cbInfo)\n"
    "    void FrontPanelManager.StartMonitoring()\n");
  
  return Qnil;
}

#StopMonitoring(*args) ⇒ Object



25106
25107
25108
25109
25110
25111
25112
25113
25114
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 25106

SWIGINTERN VALUE
_wrap_FrontPanelManager_StopMonitoring(int argc, VALUE *argv, VALUE self) {
  OpalKelly::FrontPanelManager *arg1 = (OpalKelly::FrontPanelManager *) 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_OpalKelly__FrontPanelManager, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKelly::FrontPanelManager *","StopMonitoring", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKelly::FrontPanelManager * >(argp1);
  (arg1)->StopMonitoring();
  return Qnil;
fail:
  return Qnil;
}