Class: Ctp::CThostFtdcQryCombInstrumentGuardField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



93689
93690
93691
93692
93693
93694
93695
93696
93697
93698
93699
93700
93701
93702
# File 'ext/ctp/ctp.cxx', line 93689

SWIGINTERN VALUE
_wrap_new_CThostFtdcQryCombInstrumentGuardField(int argc, VALUE *argv, VALUE self) {
  const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryCombInstrumentGuardField";
  CThostFtdcQryCombInstrumentGuardField *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (CThostFtdcQryCombInstrumentGuardField *)new CThostFtdcQryCombInstrumentGuardField();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}

Instance Method Details

#BrokerID(*args) ⇒ Object



93584
93585
93586
93587
93588
93589
93590
93591
93592
93593
93594
93595
93596
93597
93598
93599
93600
93601
93602
93603
93604
93605
93606
93607
93608
93609
93610
93611
# File 'ext/ctp/ctp.cxx', line 93584

SWIGINTERN VALUE
_wrap_CThostFtdcQryCombInstrumentGuardField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcQryCombInstrumentGuardField *arg1 = (CThostFtdcQryCombInstrumentGuardField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  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_CThostFtdcQryCombInstrumentGuardField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombInstrumentGuardField *","BrokerID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcQryCombInstrumentGuardField * >(argp1);
  result = (char *) ((arg1)->BrokerID);
  {
    size_t size = SWIG_strnlen(result, 11);
    
    
    
    vresult = SWIG_FromCharPtrAndSize(result, size);
  }
  return vresult;
fail:
  return Qnil;
}

#BrokerID=(*args) ⇒ Object



93554
93555
93556
93557
93558
93559
93560
93561
93562
93563
93564
93565
93566
93567
93568
93569
93570
93571
93572
93573
93574
93575
93576
93577
93578
93579
93580
93581
# File 'ext/ctp/ctp.cxx', line 93554

SWIGINTERN VALUE
_wrap_CThostFtdcQryCombInstrumentGuardField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcQryCombInstrumentGuardField *arg1 = (CThostFtdcQryCombInstrumentGuardField *) 0 ;
  char *arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char temp2[11] ;
  int res2 ;
  
  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_CThostFtdcQryCombInstrumentGuardField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombInstrumentGuardField *","BrokerID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcQryCombInstrumentGuardField * >(argp1);
  res2 = SWIG_AsCharArray(argv[0], temp2, 11);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","BrokerID", 2, argv[0] ));
  }
  arg2 = reinterpret_cast< char * >(temp2);
  if (arg2) memcpy(arg1->BrokerID,arg2,11*sizeof(char));
  else memset(arg1->BrokerID,0,11*sizeof(char));
  return Qnil;
fail:
  return Qnil;
}

#InstrumentID(*args) ⇒ Object



93644
93645
93646
93647
93648
93649
93650
93651
93652
93653
93654
93655
93656
93657
93658
93659
93660
93661
93662
93663
93664
93665
93666
93667
93668
93669
93670
93671
# File 'ext/ctp/ctp.cxx', line 93644

SWIGINTERN VALUE
_wrap_CThostFtdcQryCombInstrumentGuardField_InstrumentID_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcQryCombInstrumentGuardField *arg1 = (CThostFtdcQryCombInstrumentGuardField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  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_CThostFtdcQryCombInstrumentGuardField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombInstrumentGuardField *","InstrumentID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcQryCombInstrumentGuardField * >(argp1);
  result = (char *) ((arg1)->InstrumentID);
  {
    size_t size = SWIG_strnlen(result, 31);
    
    
    
    vresult = SWIG_FromCharPtrAndSize(result, size);
  }
  return vresult;
fail:
  return Qnil;
}

#InstrumentID=(*args) ⇒ Object



93614
93615
93616
93617
93618
93619
93620
93621
93622
93623
93624
93625
93626
93627
93628
93629
93630
93631
93632
93633
93634
93635
93636
93637
93638
93639
93640
93641
# File 'ext/ctp/ctp.cxx', line 93614

SWIGINTERN VALUE
_wrap_CThostFtdcQryCombInstrumentGuardField_InstrumentID_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcQryCombInstrumentGuardField *arg1 = (CThostFtdcQryCombInstrumentGuardField *) 0 ;
  char *arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char temp2[31] ;
  int res2 ;
  
  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_CThostFtdcQryCombInstrumentGuardField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombInstrumentGuardField *","InstrumentID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcQryCombInstrumentGuardField * >(argp1);
  res2 = SWIG_AsCharArray(argv[0], temp2, 31);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] ));
  }
  arg2 = reinterpret_cast< char * >(temp2);
  if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char));
  else memset(arg1->InstrumentID,0,31*sizeof(char));
  return Qnil;
fail:
  return Qnil;
}